How to get Javascript to work?? - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16) +--- Thread: How to get Javascript to work?? (/showthread.php?tid=836) |
How to get Javascript to work?? - eric@rosewood - 2010-10-01 I have some javascript that I have used on other websites (made with a different CMS, but not CMS specific javascript) that I have used for required fields on my contact forms. For some reason I can not get it to run in GetSimple. Is there something unique I need to do to get it to run? Here is my javascript: Code: <script type='text/javascript' language='javascript' > Then I make a form using the field names above (and others)...and call for the javascript like this: Code: <form action="registration.php" method="get" name="registrationform" onsubmit="return validate_form(this)"> I am using ScriptInjector to insert the script right before my form. (Although I have put the javascript in the head also, but that didn't work either.) Attached is an html file of the page source also. Any ideas? Thanks! How to get Javascript to work?? - Ryan - 2010-10-18 I'm no expert with JavaScript but I'm assuming that it's a problem with the code rather than GetSimple. I could be wrong, though. How to get Javascript to work?? - yojoe - 2010-10-19 Check all paths to files you are using. Not in the file you edit them, but launch the page in gs and then look at it's source in browser. It's just your script can't not be launched due to wrong path. ps. don't forget about debug mode in GS |