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
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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.