Jump to content

jsp function in php?


Pavlos1316

Recommended Posts

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

<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

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 :D.

 

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.