I have a website that I developed that provides decent use of Javascript and minimal use of AJAX for a few things. The site worked fine on the iPhone until I added a function to create the HttpRequest handle , after which all Javascript on the iPhone now silently fails. So, I have a few questions.
(1) It seems that AJAX does not work at all on the iPhone. It's true? If not, how can I change the HttpRequest creation function to host the iPhone?
(2) If AJAX is really not possible on the iPhone, is there a way to change this function so that it doesn’t fail gracefully on the iPhone, and other scripts on the page still work?
(3) If this is not the case, what do I need to do on the server side (and is this even possible?), Then they detect the iPhone, so that I can completely remove the AJAX code when the iPhone requests the page?
What also works well is the ability to use CSS to detect iPhone as a display device and act accordingly, similar to what you use with Opera Show. Of course, this does not fix the AJAX problem, but that would be neat. ^ _ ^
Thanks for answers. Some of my clients regularly visit the site with the iPhone, and I want my pages to work as much as possible, so I’m ready to change my code for it, although I don’t have the opportunity to test it.
source
share