aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes How to pass values from child page to parent page ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How to pass values from child page to parent page ?" Watch "How to pass values from child page to parent page ?" New topic
Author

How to pass values from child page to parent page ?

Durga Kannan
Greenhorn

Joined: Mar 18, 2011
Posts: 19

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.
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Hint: google for window.opener
Durga Kannan
Greenhorn

Joined: Mar 18, 2011
Posts: 19

@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!!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to pass values from child page to parent page ?