Jump to content

Confirmation in separate window while page loads


chomedey

Recommended Posts

Hi there,

 

My first PHP site is almost complete, thanks in large part to the great help I've received on this forum.  Thanks very much to everyone involved - the site owners, participants etc. - for making it a really exciting and fun experience (as opposed to frustrating, which it could well have been without the support and help found here).

 

Anyway, I'm pretty happy with my site, with one exception.

 

When an action has been completed, such as updating a profile, completing an entry, changing a password etc. I echo a confirmation message along the lines of "Your password has been changed" or "Your profile was successfully updated" etc.  The problem is, once this confirmation message has been echoed, the user is left with seemingly nothing to do and nowhere to go (there are, of course, links all around, but you know what I mean).

 

I could add additional links under the confirmation message, but what's the point when the links are already there.

 

So what I would ideally like is to have a new, small window (like a javascript alert but customizable in appearance) echo the confirmation message, with an 'OK' button to make it go away (or ideally it would go away on its own after a few seconds) while the main profile, or whatever other page, loads in the background.

 

Is this possible using just php or javascript, or would that take me in to the land of AJAX, which I'm not sure I'm ready to visit just yet.

 

Any suggestions much appreciated.

 

Cheers.

 

Julian

Quick question ... after you echo the confirmation, why not use a simple meta redirect to redirect them to the page you actually want them to be on?

 

You can even time it for 2 or 3 seconds so they have enough time to read that it was successful ....

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.