Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to Submit one form from the Other Form

 
Amar GURU
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please help me if anyone knows the Solution for the following.
I've two controls in one form and three controlls in another form. Now I want to submit only form which has 3 controlls. After submitting I want the same page to be displayed and there should not be any changes in the form which has two controlls.
 
Fisher Daniel
Ranch Hand
Posts: 582
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you explain what you mean with "controls" ?
Are those forms in a jsp page?
daniel
[ April 03, 2003: Message edited by: Fisher Daniel ]
 
Amar GURU
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Controls could be anything Like TextField or Label...
 
Ramesh Lakshmanan
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Amar,
Let me know your id so that i can send sample source code , since i am not able to paste the HTML Tages in this forum
 
Sanjay Deshpande
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<Javascript >
function submitMe(submitFlag){
if (submitFlag==1)
{
Document.form1.submit();//put appropriate names /path here
}else{
Document.form2.submit();
}
}
</script>
<form name=form1>
<input type="submit" value="2controlform" onClick>="javascript:submitMe(1);">
</form>
<form name=form2>
<input type="submit" value="2controlform" onClick>="javascript:submitMe(2);">
</form>
 
Chris Baron
Ranch Hand
Posts: 1061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
if the values in 2-form aren't prefilled and readonly you would have to write all changes with Javascript to hiddenfields in 3-form ...and then, after recalling your page... write them with jsp to 2-form again.
cb
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic