how do i refresh a page without actually reloading it-
hi everyone
how do i refresh my page without actually reloading it.
i have just built a 'login form' that logs a user in ,without actually reloading the page.
The only problem is that i actaully need to refresh the page so that the 'USER Session Variables' can kick in.
Is there a way to do that .
i enclose below my login script
- $(".buttonb").click(function(e) {
e.preventDefault();
// validate and process form
// first hide any error messages
$('.error').hide();
//get the values from teh field
var email = $("#email").val();
var password = $("#pass").val();
var dataStringing = 'email=' + email + '&pass=' + password;
$.ajax({
type: "POST",
url: "views/jobs/login_ajaxversion.php",
data: dataStringing,
success: function(data) {
$('#showerror').html("<div id='message'></div>");
$('#message').html("<h2>Contact Form Submitted!</h2>")
.append("<p>We will be in touch soon.</p>")
.hide()
.fadeIn(1500, function() {
$('#message').html(data.msg);
});
// .append("<img id='checkmark' src='images/check.png' />")
}
});
return false;
});
thank you for your kind attention.
warmest regards
Andreea 115