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: jeffreyjs is an unknown quantity at this point 
Solved Threads: 0
jeffreyjs jeffreyjs is offline Offline
Newbie Poster

Re: Javascript not working right on FIREFOX!

 
0
  #11
Feb 8th, 2009
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)
  1. 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);
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 7,648
Reputation: ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of 
Solved Threads: 474
Super Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Failure as a human

Re: Javascript not working right on FIREFOX!

 
0
  #12
Feb 8th, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 24
Reputation: jeffreyjs is an unknown quantity at this point 
Solved Threads: 0
jeffreyjs jeffreyjs is offline Offline
Newbie Poster

Re: Javascript not working right on FIREFOX!

 
0
  #13
Feb 8th, 2009
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)
  1. <script type="text/JavaScript">
  2. <!--
  3. function MM_callJS(jsStr) { //v2.0
  4. return eval(jsStr)
  5. }
  6. //-->
  7. </script>
  8. <script language="javascript">
  9. function order(form1) {
  10.  
  11. var Sub;
  12. var GST;
  13. var Total;
  14.  
  15. 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);
  16.  
  17. form1.txtSub.value = Sub.toFixed(2);
  18.  
  19. GST = Sub * 0.07;
  20. form1.txtGST.value = GST.toFixed(2);
  21.  
  22. Total = Sub + GST;
  23. form1.txtTotal.value = Total.toFixed(2);
  24.  
  25. }
  26.  
  27. </script>

JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. <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)')">
  2. <option>Select Quantity</option>
  3. <option value="1">1</option>
  4. <option value="2">2</option>
  5. <option value="3">3</option>
  6. <option value="4">4</option>
  7. <option value="5">5</option>
  8. <option value="6">6</option>
  9. <option value="7">7</option>
  10. <option value="8">8</option>
  11. <option value="9">9</option>
  12. <option value="10">10</option>
  13. </select>

JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. form1 is undefined
  2. order(undefined)
  3. eval()()(line 1)
  4. MM_callJS("order(this.form)")
  5. onchange(change )
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 7,648
Reputation: ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of 
Solved Threads: 474
Super Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Failure as a human

Re: Javascript not working right on FIREFOX!

 
0
  #14
Feb 10th, 2009
> 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.
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
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 24
Reputation: jeffreyjs is an unknown quantity at this point 
Solved Threads: 0
jeffreyjs jeffreyjs is offline Offline
Newbie Poster

Re: Javascript not working right on FIREFOX!

 
0
  #15
Feb 10th, 2009
Hi ~s.o.s~ ,

Thanks for all the hints and help.. i manage to make it work on firefox now.... =) Appreciate your help...
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 15
Reputation: gurshan is an unknown quantity at this point 
Solved Threads: 0
gurshan gurshan is offline Offline
Newbie Poster

Re: Javascript not working right on FIREFOX!

 
0
  #16
Feb 12th, 2009
I don't have any experience of that problem but i wanted to help you that's why i ll search the solution of this problem.wait for few time...
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum
Thread Tools Search this Thread



Tag cloud for JavaScript / DHTML / AJAX
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC