HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 6th, 2000, 05:45 PM
nag nag is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Location: LA, CA,USA
Posts: 1 nag User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old September 7th, 2000, 06:03 AM
elisabeth elisabeth is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Location: India
Posts: 18 elisabeth User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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>



Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > parameter passing between forms


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT