I am making an app in which I get text from my server and display it in UIWebview. After some time more text is added and client(iphone) is notified about the additional-text. Now I want to inject this text into my UIWebview.
One method is to update some text file and reload the content. But I dont want to reload the page.
Another way can be to use javascript to check updates in a local file (which seems better).
Is there any known better solution?
If you are getting the data from the server, why not just use
JavaScriptand preform anAJAXrequest to update the page?This allows you to skip the middle man of updating the ‘template’ file. Just load all of your data with
AJAXin order to always have the most ‘up-to date’ data on the page.