• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to Submit one form from the Other Form

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 582
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Controls could be anything Like TextField or Label...
 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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>
 
Ranch Hand
Posts: 1061
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic