Richard wrote:
>   When I open the WebApp and click on a link (standard html hyperlink)
> the iphone closes the WebApp and opens the link in safari. How do I
> tell the WebApp to open hyperlinks in the WebApp.
>   

location.href = link.href;
This will load a new page without loading it in Safari.
iUI does this with target="_webapp" mode.
See http://iui-js.appspot.com/test/link-types.html for an example.


>   While I realise that AJAX loading of page is the prefered way to do
> this, the site is to large to fully re-write as AJAX.

You should be able to set location.href with JavaScript without 
rewriting your whole  site.

> Also, the site is dotNet and
> doesn't work with iUI.
>   
ASP.NET sites can work with iUI, if they are built correctly.  There's a 
short wiki page on this:
http://code.google.com/p/iui/wiki/iUIWithASPNet
See the comments in Issue #5:
http://code.google.com/p/iui/issues/detail?id=5


-- Sean



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to