Important! A new Community experience launched on September 26, 2017. Read more about it here or continue to Base Camp.
Voting: 
Vote up!
0 Votes
2 Replies

BrowserWidget rewrite URL

Dragos Triteanu on Nov 24, 2015 08:32 EST

Posted In
Vote up!
0 votes
Vote down!

Hi Dragos,

Thank you for contacting forums.

Could you please let us know the platform(Android/iOS/Windows phone/SPA/Desktopweb) and plugin version details(6.0/6.5/5.6)?

Thanks.

Replied by: Dec 02, 2015 05:33 EST
Vote up!
0 votes
Vote down!

Hi,

Just change the requestURLConfig object on your browser widget's instance like so:

frm1.browser1.requestURLConfig = {
  	"URL": "http://wikipedia.org",
  	"requestMethod": constants.BROWSER_REQUEST_METHOD_GET
  };

Note that the new url has to start with "http://"

This works for me on iOS and Android native apps.

Note that on SPA creating a browser widget just opens a new tab in the browser and this won't redirect that new tab -i.e. it won't work.

Replied by: Jan 13, 2016 08:41 EST