Good morning fellow monday slaves..today's issue.

Discussion in 'Javascript' started by nathan, Oct 20, 2003.

  1. nathan

    nathan Guest

    I've got a page with DB data displayed, and a link beside each record
    to update the corresponding record. When the update icon is clicked, a
    popup with the data comes up, once the user is finished updating, when
    they click submit, I have the following code:

    <input type="button" onClick="opener.location.reload(); self.close()"
    value="Refresh and close">

    My problem with this is that it refreshed the parent too quickly for
    the data to have made it's way to the DB, since it requires a manual
    refresh once the child has closed to properly display the updated
    data.

    It is possible to set a timer for this? Thanks in advance for your
    help.
    nathan, Oct 20, 2003
    #1
    1. Advertising

  2. nathan

    steve stevo Guest

    <input type="button" onClick="setTimeout(opener.location.reload();
    self.close();,500)" value="Refresh and close">



    "nathan" <> wrote in message
    news:...
    > I've got a page with DB data displayed, and a link beside each record
    > to update the corresponding record. When the update icon is clicked, a
    > popup with the data comes up, once the user is finished updating, when
    > they click submit, I have the following code:
    >
    > <input type="button" onClick="opener.location.reload(); self.close()"
    > value="Refresh and close">
    >
    > My problem with this is that it refreshed the parent too quickly for
    > the data to have made it's way to the DB, since it requires a manual
    > refresh once the child has closed to properly display the updated
    > data.
    >
    > It is possible to set a timer for this? Thanks in advance for your
    > help.
    steve stevo, Oct 20, 2003
    #2
    1. Advertising

  3. "steve stevo" <> writes:

    > <input type="button" onClick="setTimeout(opener.location.reload();
    > self.close();,500)" value="Refresh and close">


    Syntax error. Try either:
    onClick="setTimeout(function(){opener.location.reload(); self.close();},500)"
    or
    onClick="setTimeout('opener.location.reload(); self.close();',500)"

    Please trim yuor quotes and reply below the quotes.
    /L
    --
    Lasse Reichstein Nielsen -
    Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit.html>
    'Faith without judgement merely degrades the spirit divine.'
    Lasse Reichstein Nielsen, Oct 20, 2003
    #3
  4. nathan

    nathan Guest

    Thank you gentlemen.


    Lasse Reichstein Nielsen <> wrote in message news:<>...
    > "steve stevo" <> writes:
    >
    > > <input type="button" onClick="setTimeout(opener.location.reload();
    > > self.close();,500)" value="Refresh and close">

    >
    > Syntax error. Try either:
    > onClick="setTimeout(function(){opener.location.reload(); self.close();},500)"
    > or
    > onClick="setTimeout('opener.location.reload(); self.close();',500)"
    >
    > Please trim yuor quotes and reply below the quotes.
    > /L
    nathan, Oct 21, 2003
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Don Tuttle
    Replies:
    2
    Views:
    453
    Don Tuttle
    Oct 13, 2003
  2. rosyn

    good morning

    rosyn, Feb 6, 2006, in forum: Java
    Replies:
    8
    Views:
    491
    megagurka
    Feb 7, 2006
  3. Don Tuttle
    Replies:
    2
    Views:
    332
    Don Tuttle
    Oct 13, 2003
  4. Frederick Gotham

    Note to fellow newsgroup posters

    Frederick Gotham, Nov 11, 2006, in forum: C Programming
    Replies:
    60
    Views:
    1,226
    Mark L Pappin
    Nov 18, 2006
  5. prassu

    Good morning...

    prassu, Jan 22, 2007, in forum: C Programming
    Replies:
    5
    Views:
    445
    Keith Thompson
    Jan 22, 2007
Loading...

Share This Page