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 Link to comment https://forums.phpfreaks.com/topic/109848-jsp-function-in-php/ 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? Link to comment https://forums.phpfreaks.com/topic/109848-jsp-function-in-php/#findComment-563699 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? Link to comment https://forums.phpfreaks.com/topic/109848-jsp-function-in-php/#findComment-563702 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. Link to comment https://forums.phpfreaks.com/topic/109848-jsp-function-in-php/#findComment-563706 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 Link to comment https://forums.phpfreaks.com/topic/109848-jsp-function-in-php/#findComment-563721 Share on other sites More sharing options...
Pavlos1316 Posted June 12, 2008 Author Share Posted June 12, 2008 I will try at jsp forums Link to comment https://forums.phpfreaks.com/topic/109848-jsp-function-in-php/#findComment-563732 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. Link to comment https://forums.phpfreaks.com/topic/109848-jsp-function-in-php/#findComment-563737 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.