- This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- The forum ‘JavaScript’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › JavaScript › IE7 Form problem
Hey all,
I am using a form that validates and sends without a refresh via jquery and an error is being thrown when testing in IE7 :
Here is the FORM itself:
And finally here is the Jquery:
$(‘#info’).submit(function(){
var action = $(this).attr(‘action’);
$(‘#info #btn’).attr(‘disabled’,’disabled’).after(‘‘);
$(“#form”).slideUp(750,function() {
$(‘#form’).hide();
$.post(action, {
name: $(‘#name’).val(),
email: $(‘#email’).val(),
message: $(‘#message’).val(),
},
function(data){
document.getElementById(‘form’).innerHTML = data;
$(‘#form’).slideDown(‘slow’);
$(‘#info img.loader’).fadeOut(‘fast’,function(){$(this).remove()});
$(‘#info #submit’).attr(‘disabled’,”);
if(data.match(‘success’) != null) $(‘#info’).slideUp(‘slow’);
}
);
});
return false;
});
});
I did not post the PHP form processor since this is the javascript forum, but if it will help, please let me know and I will post as well.
Thanks in advance!
Bear with me on the ugly code problem. That is an artifact of conversion from the old forums. I hope to be able to clean up all those old posts. New posts should be fine, just stick all code in pre and code tags, unescaped.