• 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 pass values from child page to parent page ?

 
Greenhorn
Posts: 22
Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am new to Javascript,servlets. i need to pass some selected values from child to parent page. In main pain am having a text box. In child page, am doing some selections and those values should pass to parent page when submit button in the child page is clicked. How should i do this?

Whether this can be achieved through javascript function call? Please suggest me some ways to achieve this.

Many thanks in advance.
 
Ranch Hand
Posts: 5575
Eclipse IDE Windows XP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hint: google for window.opener
 
Durga Kannan
Greenhorn
Posts: 22
Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
@Seetharaman Venkatasamy : Thanks for your kind reply.

The thing is i managed to get the text in child page & display it in the parent page. But the thing i am trying is ,first am opening a parent page,from that iam checking a check box,so pop up window is openig.After getting input there in pop,i want to display the text in the original parent page whihc is alreay opened.
But here am getting the text displaying in the new parent page,rather in already opened page.

Please suggest me how to do this.

Any suggestions would be highly appreciated!!

//Code for my Parent.jsp




//Code for my Chile.jsp




Apologies for my long snippet. Please suggest me how to proceed this.

Thanks a ton in advance!!!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic