#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2001
    Location
    Westminster, CA USA
    Posts
    54
    Rep Power
    13

    javascript popup window and phplib template


    Hello,

    After clicking a button to update database, how do I use
    javascript to popup a window to say "update successful" before redirecting to another script while using phplib template?

    Thanks in advance,
    John
  2. #2
  3. No Profile Picture
    - better than hex
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2001
    Location
    Odense, Denmark
    Posts
    10
    Rep Power
    0

    Exclamation how about just


    using an alert? - if your script only redirects if the update is succesful you could just specify a javascript function in the head of the new page, this should only contain an alert-message that prompts the user for an 'OK' and then call the function in the body-tag (with the onload-command)...

    - probably not the niftiest solution but it'll work ; )
    Sv!ndel

    - And there will be such intense darkness that one can feel it
    Exodus 10:21

    - It compiles! Let's ship it!

IMN logo majestic logo threadwatch logo seochat tools logo