View Full Version : forcing page load on an AJAX-loaded page

10-09-2012, 11:06 AM
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:

script.onload = script.onreadystatechange = function () { // do something }

Here is the full JavaScript included file (https://services.postcodeanywhere.co.uk/js/captureplus-1.31.js?key=we84-cn95-ub48-pc25&app=4565).

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.