similar API for IOS for app.loadurl in Android

47 views
Skip to first unread message

ghostCoder

unread,
Feb 19, 2012, 7:24:55 AM2/19/12
to phonegap
I am porting android phonegap (v1.3) application to ios. but stuck on
following loadUrl api,
PhoneGap.exec(null, null, "App", "loadUrl", [url, props]);
I am not able to find out an api similar to this for IOS.
I could use window.location.href, but thats not working properly. :(
Is there a similar Api in iOS Phonegap? pls help.

Kerri Shotts

unread,
Feb 19, 2012, 3:49:49 PM2/19/12
to phon...@googlegroups.com
Depends on what you're trying to do. I'm iOS only, so not familiar with Android. Are you trying to load a webpage in your existing view, or are you trying to open it in a child browser (in which case, the childBrowser plugin is your bet). If into an external browser, just use an anchor tag with target="_blank".

ghostCoder

unread,
Feb 20, 2012, 12:53:40 AM2/20/12
to phonegap
I want to load a new html file in the same view which Phonegap has
opened.

Kerri Shotts

unread,
Feb 20, 2012, 1:04:51 AM2/20/12
to phon...@googlegroups.com
Then you can just use a regular anchor (if the user is to click on it), or the typical "window.location" object as here http://www.w3schools.com/jsref/met_loc_replace.asp
Reply all
Reply to author
Forward
0 new messages