Dialog with included form won't submit in IE
Hi there,
I am trying to get a variable dialog fixed with some external loaded form,
but somehow the form won't submit. In FF it all works, but IE won't submit.
Even if I replace the submit button with a normal button with
this.form.submit();.
I even tried to use an ajax way to submit the form, but when I try to get
the values of the form into a datastring, it says
"name=undefined&id=undefined"... :S
This is the ajax way i tried with a normal OK button:
$("#dialog").dialog({
autoOpen: flase,
buttons: {
Ok: function() {
var name = $("input#menunaam").val();
var id = $("input#id").val();
var dataString = 'name='+ name + '&id=' + id;
$.ajax({
type: "POST",
url: "process-edit_menu.php",
data: dataString,
success: function() {
alert('SUCCESS - '+dataString);
},
error: function() {
alert(dataString);
}
});
$(this).dialog('close');
}
}
$('.edit_handler').click(function(event){
var id = event.target.id;
$("#dialog").load("dialogs.php?id=" + id);
$("#dialog").dialog("open");
});
The other way i tried is just putting the complete form in the dialogs.php
file. This is the only way the form gets submitted, although it is only in
FireFox..
I also tried using child and parent on the this.form.submit option, but no
effect..
Any ideas or suggestions?
-----
http://tutorials.bas-matthee.nl Tutorials and Scripts | PHP, jQuery, XHTML,
Javascript and more...
--
View this message in context: http://www.nabble.com/Dialog-with-included-form-won%27t-submit-in-IE-tp22305794s27240p22305794.html
Sent from the jQuery UI Discussion mailing list archive at Nabble.com.