| DEVPPL http://www.devppl.com/forum/ |
|
| function undefined error http://www.devppl.com/forum/viewtopic.php?f=49&t=13671 |
Page 1 of 1 |
| Author: | BeanNoob [ Sun Jun 07, 2009 2:13 am ] |
| Post subject: | function undefined error |
I'm pretty new to javascript and keep getting this function undefined error. I am trying to pass values into an external javascript file. I reference the file like so. Code: <script src="checkform.js" language="javascript" type="text/javascript"> </script> In the onsubmit of the form, I call this function: Code: function runCheck(){ if (document.c_order.ae.checked) { var cardnumber = document.getElementById(cnumber).value; var cardname = 'ae'; checkCreditCard (cardnumber, cardname); } CheckForm(); } If the above worked I was going to add some more if statements. However, I get the undefined error. Here is the function start in the external.js file: Code: function checkCreditCard (cardnumber, cardname) { The checkCreditCard function is what errors every time... |
|
| Page 1 of 1 | All times are UTC + 1 hour |
| Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |
|