I don't have an iPhone to test on. However, I can tell you that what you want can be done. But it's pretty complicated to modify this script to do it. On the other hand, you're already using jQuery. With jQuery it's relatively easy to do.
What I would suggest is to scrap the Ajax Content script and update to jQuery version 1.6.4. Then where you have:
Code:
ajaxpage(gridID, 'contentarea');
replace that with:
Code:
$.ajaxSetup({cache: false});
$('#contentarea').load(gridID + ' div:not("div:first"),table');
You only need to declare:
Code:
$.ajaxSetup({cache: false});
once for the page, so that could go before the function and then you could chain off of the .empty() for the #contentarea selector:
Code:
<script>
$.ajaxSetup({cache: false});
function grids()
{
var g = document.gridform.gridlist.selectedIndex;
var gridID = document.gridform.gridlist.options[g].value;
var gridID = "http://wss-live.com/grids/" + gridID + ".htm";
$("#loading").fadeIn(200);
$("#loading").css("visibility", "visible");
$('#contentarea').empty().load(gridID + ' div:not("div:first"),table');
$("#loading").fadeOut(3000);
}
</script>
The browser cache may need to be cleared and/or the page refreshed to see changes.
Bookmarks