Hi all,
I've just got an iPod touch (no iPhones in NZ!) and have created a
golf scoring application that works offline as it's saved as a data
URL.
The app records all the scores and when the game is over it shows a
scorecard on screen. I then have a link to the following javascript
function to re-render the scorecard as a new data URL so that it can
be bookmarked. This way the user can keep scorecards on their iPhone/
iPod and sync them back as bookmarks to their computer.
This code works great in Safari on my Mac but when I use it on the
iPod touch the function does nothing at all. Any suggestions would be
greatly appreciated.
function create_scorecard() {
var x=new XMLHttpRequest();
x.onreadystatechange=function()
{if(x.readyState==4)location='data:text/
html;charset=utf-8;base64,'+btoa(scorecardheader + scorecard +
scorecardfooter)};
x.open('GET',location);
x.send('');
}
Thanks, Neil
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"iPhoneWebDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/iphonewebdev?hl=en
-~----------~----~----~----~------~----~------~--~---