Solved

update  text box on parent window from child window

Posted on 2007-11-20
3
559 Views
Last Modified: 2013-11-12
there is a parent window with a text box and when u click on a update  button it open another window where you can
modify the text ; the problem is when the text gets modified the text box on the parent window does not get updated; the parent window page has to be refreshed in order for the text to get updated

what is the bext way to update the text on the parent screen

thanks for all your help!!!!!!!!!!!!!!!!!!!!!!!!!!


0
Comment
Question by:royalcyber
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 11

Accepted Solution

by:
MacAnthony earned 500 total points
ID: 20321052
Give the element on the parent window a unique id something like <input type="text" id="parentTextBox" />

Then from the child window do something like:
window.opener.document.getElementById('parentTextBox').value = 'Some Text';

For that to work, the parent window needs to have called window.open to create the child window, I believe.

Hope that gets you in the right direction.
0
 
LVL 1

Expert Comment

by:Computer101
ID: 20560340
Forced accept.

Computer101
EE Admin
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The Fluent Interface Design Pattern You can use the Fluent Interface (http://en.wikipedia.org/wiki/Fluent_interface) design pattern to make your PHP code easier to read and maintain.  "Fluent Interface" is an object-oriented design pattern that r…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question