Ask questions and get good answers on mb.jQuery.components

hello

i use of php and jquery in my application

i want when users submit success a form in page1 , forward form page1 to page2 and show a pop-up message(same this site) "success" and when they do not submit success , dont forward and just show pop-up message "error"

how i can implement this process?

thanks?

asked Apr 07 '10 at 20:05

user1400's gravatar image

user1400
11


First you need to implement an Ajax submit of your form that should return either the login is correct or not to page 1. Once you have the response, you can redirect to page 2 in case of success (self.location.href=page2...) and show the pop-up on page load (you can use jquery.mb.containerPlus plug in if you like it); otherwise, in case log in faild, you open the pop-up directly on page 1.

Read the jquery.ajax documentation, or you can use jQuery Form Plugin to manage your form.

answered Apr 09 '10 at 09:13

Matteo%20Bicocchi's gravatar image

Matteo Bicocchi ♦♦
1776129

Your answer
toggle preview

jQuery main site - Matteo Bicocchi