|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
hi eveybody
i have 4 forms/jsp. one contains 3 buttons 2 text box and one submit button.when i click on one button i want to display a form2/jsp2 and i have to pass text box values to form2/jsp2.Depending upon which button cliked i want to call speific forms /jsp and pass the parametrs.Can anybody give me how to do this in javascript/java?i am using submit button for calling some another page Thanks nag |
|
#2
|
|||
|
|||
|
Check the following code and see whether u want the thing in a similar fashion
Wish u Success <html> <head> <script> function fun() { alert('Watch the Change'); Tab1.style.visibility='hidden'; Tab2.style.visibility='visible'; Form2.txt3.value=Form1.txt1.value; Form2.txt4.value=Form1.txt2.value; } </script> </head> <body bgcolor="#31659C" > <table border="0" cellpadding="0" cellspacing="0" width="410" name= "Tab1" id="Tab1" style= "position:absolute;left:15;top:100;visibility=visible"> <FORM name=Form1 > <tr> <td width="40%"><font size="2" face="Arial">text1 </font></td> <td><font size="2" face="Arial"><br> <input type=text name='txt1' value='Text1' > </tr> <tr> <td width="40%"><font size="2" face="Arial">text2 </font></td> <td><font size="2" face="Arial"><br> <input type=text name='txt2' value='Text2' > </tr> <tr> <td><input type=button name='But1' value='Button1' onClick='fun()'></td></tr> </form> </table> <table border="0" cellpadding="0" cellspacing="0" width="410" name= "Tab2" id="Tab2" style= "position:absolute;left:15;top:100;visibility=hidden;"> <form name=Form2> <tr> <td width="40%"><font size="2" face="Arial">text3 </font></td> <td><font size="2" face="Arial"><br> <input type=text name='txt3' value='Text3' > </tr> <tr> <td width="40%"><font size="2" face="Arial">text4 </font></td> <td><font size="2" face="Arial"><br> <input type=text name='txt4' value='Text4' > </tr> <tr> <td><input type=button name='But3' value='Button3'></td></tr> </form> </table> </html> |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > parameter passing between forms |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|