Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

get value from function in java script in jsp

Status
Not open for further replies.

ProMaster

Programmer
Mar 19, 2011
1
Hi all i have this code
<TR id="tr1" onClick="var ret_val = clickedfun(this.id)" />

, and this javacript code

<script language="javascript">function clickedfun(tid) {var elemento = document.getElementById(tid);if(confirm("Tem a certeza que quer remover esta fila?")){elemento.style.visibility='hidden';var numero=tid.substring(2,tid.length);return numero;}}</script>;

i want to get the return value of the javascript function to use in database for deletion of that value

please help i'm usin jsp and java classes.

Thanks guys.
 
Remember that Javascript is executed at client side, you will need to submit the info to the server, for example with a form.

Cheers,
Dian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top