herghost Posted September 12, 2009 Share Posted September 12, 2009 Hi all, This is what i want to do, but not sure if its possible or if it is how to do it! Basically I have 2 Pages and a ajax popup, accountchoice, accountlogin(popup) and accounthome. What i want to happen is this, when a link is clicked on accountchoice the ajax popup with accountlogin appears, if login is successful then direct to accounthome.php?user=(username). However while this all works the new page appears in the popup box, how would I have it replace/change/update accountchoice with the accounthome page? Many Thanks Quote Link to comment Share on other sites More sharing options...
kickstart Posted September 12, 2009 Share Posted September 12, 2009 Hi While you could faff around trying to pass details back to the first page and then redirect from there, I would suspect the easiest way would be to use a popup div on the original page for the login. Looks a bit like a pop up page but would just be a pop up element of the current page. All the best Keith Quote Link to comment Share on other sites More sharing options...
.josh Posted September 12, 2009 Share Posted September 12, 2009 indeed. Most people have popups disabled or blocked. Best practice these days is to keep it on the same page. Simple function to append a new div with zindex set high. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.