Hi,
I have tried to search on the web for few days.....can't get to something like this
i have a page which have a textbox letting user key in email addresses and there is a link beside the box which will popup another small window with addresses in the database.
I have problem putting the selected email address values back to the textbox after the user clicked Ok button.
anyone has any idea?
TQ
Insert Address from Popup window
Moderator: General Moderators
Re: Insert Address from Popup window
This would be Javascript, which is in the Client Side forum.
Thread moved.
Thread moved.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Re: Insert Address from Popup window
In Javascript, you can refer to the window.parent as a document, so I think you can do:
Code: Select all
window.parent.getElementById('id-of-field-that-holds-email-address').value = 'new-email-address';Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Re: Insert Address from Popup window
pickle wrote:In Javascript, you can refer to the window.parent as a document, so I think you can do:
Code: Select all
window.parent.getElementById('id-of-field-that-holds-email-address').value = 'new-email-address';
ohh....Thanks for the info....will try it out....