Dojo send Form to php-file then get the response in a div tag
hallo, i would like to try a simple xmlhttprequest example to post a form to a php-file, the php-file reads the elemsnts value then give it back to a div tag, it works with a tradional code, 开发者_StackOverflowbut not with dojo, a get an error (firebug) thant sent is aborted, so this ist the content of test.html content of test.php: echo $_POST['text']; thank you.
I've got the same issue but only in one of my forms.
I suspect it is because of the vast amount of data submitted and it times out before the response.
So, to make sure it waits for the callback, I've added:
sync: true
That seems to do it.
精彩评论