| | |
Javascript not working right on FIREFOX!
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Dec 2008
Posts: 24
Reputation:
Solved Threads: 0
Hi, as u suggested, i have done the changes... but this time round, it is the formula issue... it says form1 is undefined, and i think the onchange part u corrected me is not having problem now... Thanks
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
Sub = parseFloat(form1.txtEPM430.value) + parseFloat(form1.txtEPM400.value) + parseFloat(form1.txtBPM100.value) + parseFloat(form1. txtBPM400.value) + parseFloat(form1.txtIRBody.value) + parseFloat(form1.txtIRFore.value) + parseFloat(form1.txtIREar.value) + parseFloat(form1.txtNRSham2.value) + parseFloat(form1.txtNRSham8.value) + parseFloat(form1.txtNRWash2.value) + parseFloat(form1.txtNRWash8.value) + parseFloat(form1.txtNRBath2.value) + parseFloat(form1.txtNRBath8.value) + parseFloat(form1.txtOutdoor.value) + parseFloat(form1.txtIndoor.value) + parseFloat(form1.txtPatch.value);
Have you made the fix suggested in my previous post? Re-post the entire code and point out the line which is having problems.
Last edited by ~s.o.s~; Feb 8th, 2009 at 12:41 pm.
I don't accept change; I don't deserve to live.
Jo Tujhe Jagaaye, Nindein Teri Udaaye Khwaab Hai Sachcha Wahi.
Nindon Mein Jo Aaye Jise To Bhul Jaaye Khawab Woh Sachcha Nahi.
Khwaab Ko Raag De, Nind Ko Aag De
Jo Tujhe Jagaaye, Nindein Teri Udaaye Khwaab Hai Sachcha Wahi.
Nindon Mein Jo Aaye Jise To Bhul Jaaye Khawab Woh Sachcha Nahi.
Khwaab Ko Raag De, Nind Ko Aag De
•
•
Join Date: Dec 2008
Posts: 24
Reputation:
Solved Threads: 0
Hi, i have made those changes, below are those section which have been changed... and i uses firebug and saw this message...
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
<script type="text/JavaScript"> <!-- function MM_callJS(jsStr) { //v2.0 return eval(jsStr) } //--> </script> <script language="javascript"> function order(form1) { var Sub; var GST; var Total; Sub = parseFloat(form1.txtEPM430.value) + parseFloat(form1.txtEPM400.value) + parseFloat(form1.txtBPM100.value) + parseFloat(form1. txtBPM400.value) + parseFloat(form1.txtIRBody.value) + parseFloat(form1.txtIRFore.value) + parseFloat(form1.txtIREar.value) + parseFloat(form1.txtNRSham2.value) + parseFloat(form1.txtNRSham8.value) + parseFloat(form1.txtNRWash2.value) + parseFloat(form1.txtNRWash8.value) + parseFloat(form1.txtNRBath2.value) + parseFloat(form1.txtNRBath8.value) + parseFloat(form1.txtOutdoor.value) + parseFloat(form1.txtIndoor.value) + parseFloat(form1.txtPatch.value); form1.txtSub.value = Sub.toFixed(2); GST = Sub * 0.07; form1.txtGST.value = GST.toFixed(2); Total = Sub + GST; form1.txtTotal.value = Total.toFixed(2); } </script>
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
<select name="listEPM430" id="listEPM430" onchange="num=176.40; this.form.txtEPM430.value=(parseFloat(num) * this.form.listEPM430.value).toFixed(2); MM_callJS('order(this.form)')"> <option>Select Quantity</option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9">9</option> <option value="10">10</option> </select>
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
form1 is undefined order(undefined) eval()()(line 1) MM_callJS("order(this.form)") onchange(change )
> Hi, i have made those changes
It seems you haven't since I still see the call "MM_callJS('order(this.form)')"; re-read reply 10.
It seems you haven't since I still see the call "MM_callJS('order(this.form)')"; re-read reply 10.
I don't accept change; I don't deserve to live.
Jo Tujhe Jagaaye, Nindein Teri Udaaye Khwaab Hai Sachcha Wahi.
Nindon Mein Jo Aaye Jise To Bhul Jaaye Khawab Woh Sachcha Nahi.
Khwaab Ko Raag De, Nind Ko Aag De
Jo Tujhe Jagaaye, Nindein Teri Udaaye Khwaab Hai Sachcha Wahi.
Nindon Mein Jo Aaye Jise To Bhul Jaaye Khawab Woh Sachcha Nahi.
Khwaab Ko Raag De, Nind Ko Aag De
![]() |
Similar Threads
- javascript in mozilla firefox (JavaScript / DHTML / AJAX)
- Javascript not working in Firefox (JavaScript / DHTML / AJAX)
- Javascript is not working on Firefox (JavaScript / DHTML / AJAX)
- Why javascript does not work on firefox? (JavaScript / DHTML / AJAX)
- javascript not working for firefox! (JavaScript / DHTML / AJAX)
- Javascript not working in Firefox (JavaScript / DHTML / AJAX)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: How can I use javascript to disable a CSS-based 'tooltip'?
- Next Thread: converting drop down menu into a search field
| Thread Tools | Search this Thread |
Tag cloud for JavaScript / DHTML / AJAX
acid2 ajax ajaxcode ajaxhelp animate api automatically beta boarder box bug calendar captcha card cart checkbox class column cookies createrange() css cursor decimal design dom download dropdown editor element enter error events explorer firehose flash focus form frameworks google gwt html htmlform iframe image() images index internet java javascript javascripts jawascriptruntimeerror jquery jsf jsfile listbox matrixcaptcha menu microsoft mimic mp3 mp4 mysql object offline onmouseover parameters parent passing php player post problem progressbar prototype rating regex runtime scale search select session shopping size sql starrating stars stretch text textarea twitter validation w3c web website window windowofwords windowsxp wysiwyg xml xspf






