Pavlos1316 Posted June 12, 2008 Share Posted June 12, 2008 Hi I am trying to use a jsp function in a checkbox form.php (when you check one box the others in the same row you will not be able to check them). It doesn't seem to work but I don't get any errors either. Is that another way to call jsp function inside php? Here is how I have it: <head> jsp script function validateCheck(); </head> <body> form... bla bla bla id= "checkbox".... etc onclick="validateCheck();" </body> Thank you Quote Link to comment Share on other sites More sharing options...
bluejay002 Posted June 12, 2008 Share Posted June 12, 2008 i think you are getting the wrong idea... onclick attibute will look for a javascript function. or am i getting the wrong idea? Quote Link to comment Share on other sites More sharing options...
Pavlos1316 Posted June 12, 2008 Author Share Posted June 12, 2008 Basically you are right I think.. but why isn't working and with out errors!!? Is something else I sould do? Quote Link to comment Share on other sites More sharing options...
bluejay002 Posted June 12, 2008 Share Posted June 12, 2008 <html> <head> <script language="javascript"> function validateCheck() { ... // do your stuff here } </script> </head> <body> form... bla bla bla id= "checkbox".... etc onclick="validateCheck();" </body> </html> well the coding style for javascript should be somehow the same with C so it should not be hard for you. Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted June 12, 2008 Share Posted June 12, 2008 but why isn't working and with out errors!!? Sorry, my omniscience seems to be lacking today. You could always try posting your code. Moreover, you could try posting your code in the javascript forum Quote Link to comment Share on other sites More sharing options...
Pavlos1316 Posted June 12, 2008 Author Share Posted June 12, 2008 I will try at jsp forums Quote Link to comment Share on other sites More sharing options...
bluejay002 Posted June 12, 2008 Share Posted June 12, 2008 actually Java and JavaScript are different. Java is of Sun and JavaScript is of Netscape (if i still remember it correctly). Though several web browsers have different engines for parsing these kind of scripts and i mean the browser itself. This is also the same reason you need to add tweaks whenever you do some javascript . anyway, you can always ask the Javascript forum about this matter. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.