开发者

Dojo send Form to php-file then get the response in a div tag

开发者 https://www.devze.com 2023-01-14 19:09 出处:网络
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, 开发者_St

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号