Hello there,
I know I'm noob but I really see nothing that would impede IE7/8 to go ahead and make the ************* ajax request already. ****!
Alright, now that I have that off my chest.
I have a silly form that should submit when a checkbox is clicked. However, even though it gets past the $.post and other crap I've tried reading on the jquery form plugin page (I know it gets past it ok because the alert triggers), IE7/8 DOES NOT MAKE the damn post. Firefox is fine, it worked with all of the different types of submission methods I could find everywhere on the net.
Any help would be appreciated. I've lost my cool hours ago.
- <form style="width:390px;position:absolute;margin-left:25px;" action="http://cant.show.form.url/form.php?form=2" id="frmSS2" method="post">
<input name="subscribename" id="subscribename" type="text" value="" hidden style="width:0; height:0; border:0; background-color:inherit; overflow:hidden;" />
<input name="subscribeemail" id="subscribeemail" type="text" value="" hidden style="width:0; height:0; border:0; background-color:inherit; overflow:hidden;" />
<script type="text/javascript">
//copy input from #name and #email inputs
function copyMe() {
var x = document.getElementById("name").value;
document.getElementById("subscribename").value = x;
enableMe();
}
function copyMyEmail() {
var x = document.getElementById("email").value;
document.getElementById("subscribeemail").value = x;
enableMe();
}
function enableMe() {
if (document.getElementById("subscribeemail").value == ""||document.getElementById("subscribename").value == "") {
$("#name_error").show();$("#email_error").show();
return 0
} else {
$("#iwantupdates,#iwantupdateslabel").show('slow');
return 1;
}
}
function submitThis() {
/*
var nameproceed = 0;
var emailproceed=0;
var subscribename = $("input#subscribename").val();
if (subscribename == "") {
$("#name_error").show();
} else { var nameproceed = 1 ;}
var subscribeemail = $("input#subscribeemail").val();
if (subscribeemail == "") {
$("#email_error").show();
} else { var emailproceed = 1 ;}
*/
/*
var subscribename = $("input#subscribename").val();
var subscribeemail = $("input#subscribeemail").val();
var dataString = 'email='+ subscribeemail + '&CustomFields[2]=' + subscribename + '&CustomFields[3]=&format=h';
$.post('http://cant.show.form.url.now/form.php?form=2', dataString);
alert(dataString +" should have posted");
return true;
};
*/
$("#iwantupdates,#iwantupdateslabel").click(function() {
$("#frmSS2").ajaxSubmit();
return false;
alert("submitted via ajax");
});
/*
$.ajax({
type: "POST",
url: "http://cant.show.url.now/form.php?form=2",
data: dataString,
success: function() {
//display message back to user here
}
});
return false;
}
};*/
</script>
<input name="iwantupdates" id="iwantupdates" type="checkbox" onmouseup="submitThis()" style="display:none;"/><label for="iwantupdates" style="display:none;" id="iwantupdateslabel" onmouseup="submitThis()">I would like to receive email specials from you</label>
</form>