By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,381 Members | 1,641 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,381 IT Pros & Developers. It's quick & easy.

Refreshing field problem

P: n/a
Hello there....I have the following problem...

I have a form on a PARENT window with couple of text boxes and select
boxes..

One selection box is HOTELS and beside that is a link add_new_hotel which
openes in a popup window....

After entering the hotel nam in CHILD window and submiting theform i want to
see the entered hotel in PARENT window in a selection box....

Ok...I did that with the window.opener.location.reload()..

But i want only THAT one selection box to be reloaded(refreshed) not the
whole form because the all the other fields are then reseted as well....

any suggestions...

thanx and respect....

point
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hm.....thanx for the answer....

It seams that I didn't mention something important...

When the new HOTEL is added from a CHILD window it is entered(I'm a PHP
programmer) in mySQL database so actually select filed on PARENT window
should refresh the databse....

opener.document.forms['myForm'].elements['mySelectBox'].options.add(
new Option("Option Name","Option Value"));

Not just to add the <option> to parent form but also to stay in database....

any onther suggestions as I'm a bit new to Javascript on this level...

respect...

p.
"Lasse Reichstein Nielsen" <lr*@hotpop.com> wrote in message
news:k7**********@hotpop.com...
"point" <in**@caanproduction.com> writes:
Ok...I did that with the window.opener.location.reload()..

But i want only THAT one selection box to be reloaded(refreshed) not the
whole form because the all the other fields are then reseted as well....


opener.document.forms['myForm'].elements['mySelectBox'].options.add(
new Option("Option Name","Option Value"));

The "add" function is newer, and doesn't work in NS4. If necessary,
it can be simulated.
/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit.html>
'Faith without judgement merely degrades the spirit divine.'

Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.