Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    Senior Coder crmpicco's Avatar
    Join Date
    Jan 2005
    Location
    Mauchline, Scotland
    Posts
    1,092
    Thanks
    15
    Thanked 1 Time in 1 Post

    forcing page load on an AJAX-loaded page

    I have an issue with an third-party integration on an iPad-specific website, which has a number of pages loaded via AJAX.

    When I go to the page for the first time the functionality that is expected to be available is not, and only when I do a page refresh in Safari do I see the feature.

    In the 3rd party JavaScript there is this sort of code peppered throughout:

    Code:
    script.onload = script.onreadystatechange = function () { // do something }
    Here is the full JavaScript included file.

    Is there a way that I can either force a page load on the iPad or build in some workaround that means that when I change to the page where the JavaScript is included and fires?

    As I mentioned, this is only apparent on an iPad-specific website and the same feature has no problem on a desktop browser where the page is not loaded via AJAX.
    Last edited by crmpicco; 10-09-2012 at 10:16 AM.


 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •