Jump to content

LoginRegister on popup, if error re-load popup


Marco Ro
 Share

Recommended Posts

Hi, I have put the LoginRegister form inside a popup. If someone inserts the data incorrectly, the page is reloaded and the error message is shown, but this is inside the popup and to see the message needs to manually reopen the popup.

Is there a way that if an error occurs when the page is reloaded open also the popup?

I try just to add the id to the URL, like mysite/page/#modal-Login but when the LoginRegister reload the page the id is deleted. What can I do?

For load inside the modal the Forgot page I use this code: 

$('.LoginRegisterLinksForgot').on('click', function (e) { 
		 $.ajax({
						 url: './', 
						 type: "get", 
						 data: 'forgot=1', 
						 beforeSend: (function () {
						 }),
				 })
				 .done(function(data){
					 $('#LoginRegister').html($(data).find('#LoginRegister').html());
				 });
		 e.preventDefault();
});

If there are an error can I use something like this?

Thank you.

 

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...