• 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

Passing values from child to parent form

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I want to return values from child to parent form.I want to return the value in a text box, name of text box is a dynamic one.

The below is the text box where value is goint to display.



In child form



Here instead of zdist10 and zdist20 I want it should be dynamic like zdist plus lines.
for example lines is 10 then zdist10,if it 50 then zdist should zdist50..

Please help to do this.



 
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Child form? Parent form? There is no such concept. What do you mean by this? Are you nesting forms?

Also, do not show servlet code in an HTML forum. Show only the generated HTML code.
 
prriya pratheep
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Parent form and child form...what i mean is

JSP program A calls another JSP program B

In A I am calling B like this



I am calling ZSOR_zau_R.jsp and in ZSOR_zau_R.jsp I am returning values to A like this



Instead of hardcoding zdist10,zdist20 i want zdist+lines where lines is the parameter.

Thanks for quick reply
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is up with the weird spacing? lol

You should always use window, it is very bad practice to leavr it off.

window.open, window.opener

Use the form array and use a string:


Eric

 
reply
    Bookmark Topic Watch Topic
  • New Topic