Refreshing field problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • point

    Refreshing field problem

    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.l ocation.reload( )..

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

    any suggestions...

    thanx and respect....

    point


  • point

    #2
    Re: Refreshing field problem

    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" <lrn@hotpop.com > wrote in message
    news:k7auh1fp.f sf@hotpop.com.. .[color=blue]
    > "point" <info@caanprodu ction.com> writes:
    >[color=green]
    > > Ok...I did that with the window.opener.l ocation.reload( )..
    > >
    > > But i want only THAT one selection box to be reloaded(refres hed) not the
    > > whole form because the all the other fields are then reseted as well....[/color]
    >
    > 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 - lrn@hotpop.com
    > Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit. html>
    > 'Faith without judgement merely degrades the spirit divine.'[/color]


    Comment

    Working...