Firstly hello all, new to the forum as just found out how fantastic jquery mobile is so getting a bit addicted
I am starting to put together an rss reader app but at the moment it gets the feed each time the button is pressed, what i would like to do is if there is an internet connection get the feed (And store it in local storage as well and if there is no internet go to the local storage to retreive the data
I have the live side up and running fine but need a bit of help getting the if else statement in the right place.
I think it needs to go in my refreshfeed() function but not sure how
I d like it to do
If internet available
get feed (run the code i ve got) and call fanother function (Thats going to add the feed data to local storage) else Get feed from local memory