lundi 2 février 2015

Reload parent view on HttpResponse

I am trying to translate a functionality from a web page to an iPhone page.


The page contains an iFrame within it that POSTs a form to my server:


enter image description here


I am trying to reload the outer-frame. I have control of the HTTPResponse, since it is posting the form to my server. For the website, I can reload the outer frame by returning something like:



return HttpResponse('
<html>
Loading...
<script>window.parent.location.reload(false);</script>
</html>')


How would I do the equivalent of this in an iPhone app, such that the response would 'trigger' the parent view to reload?




Aucun commentaire:

Enregistrer un commentaire