943,707 Members | Top Members by Rank

Ad:
You are currently viewing page 2 of this multi-page discussion thread; Jump to the first page
Feb 8th, 2009
0

Re: Javascript not working right on FIREFOX!

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);
Reputation Points: 10
Solved Threads: 0
Light Poster
jeffreyjs is offline Offline
28 posts
since Dec 2008
Feb 8th, 2009
0

Re: Javascript not working right on FIREFOX!

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.
Super Moderator
Featured Poster
Reputation Points: 3233
Solved Threads: 719
Failure as a human
~s.o.s~ is offline Offline
8,871 posts
since Jun 2006
Feb 8th, 2009
0

Re: Javascript not working right on FIREFOX!

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 )
Reputation Points: 10
Solved Threads: 0
Light Poster
jeffreyjs is offline Offline
28 posts
since Dec 2008
Feb 10th, 2009
0

Re: Javascript not working right on FIREFOX!

> 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.
Super Moderator
Featured Poster
Reputation Points: 3233
Solved Threads: 719
Failure as a human
~s.o.s~ is offline Offline
8,871 posts
since Jun 2006
Feb 10th, 2009
0

Re: Javascript not working right on FIREFOX!

Hi ~s.o.s~ ,

Thanks for all the hints and help.. i manage to make it work on firefox now.... =) Appreciate your help...
Reputation Points: 10
Solved Threads: 0
Light Poster
jeffreyjs is offline Offline
28 posts
since Dec 2008
Feb 12th, 2009
0

Re: Javascript not working right on FIREFOX!

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...
Reputation Points: 20
Solved Threads: 1
Newbie Poster
gurshan is offline Offline
15 posts
since Dec 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JavaScript / DHTML / AJAX Forum Timeline: How can I use javascript to disable a CSS-based 'tooltip'?
Next Thread in JavaScript / DHTML / AJAX Forum Timeline: converting drop down menu into a search field





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC