开发者

Error in using AJAX in mobile browser when method is POST

开发者 https://www.devze.com 2023-03-20 10:03 出处:网络
I have a mobile website made purely in HTML-5 Javascript and CSS.This website works fine in desktop browser but in mobile browser the AJAX POST works fine at most of the places but at some places it d

I have a mobile website made purely in HTML-5 Javascript and CSS.This website works fine in desktop browser but in mobile browser the AJAX POST works fine at most of the places but at some places it doesnot ...the readystate doesnot get changed it remain 0 but at those places if I change method to GET it works.I tried using default android browser,Dolphin but the same problem persists.Kindly Help me in this regard!

PS开发者_开发百科-For posting data in AJAX request I am using formdata. I have found that the real problem is in FormData only the FormData works sometimes and it doesnot sometimes.


Every browser handles javascript slightly diffrently, on mobiles this can be very diffrent from the desktop. I recomend using a library like jquery mobile to handle the quirks for you.

0

精彩评论

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

关注公众号