This function is used to show a remote web site in a different web view.
intel.xdk.device.showRemoteSiteExt(url, closeImagePortraitX, closeImagePortraitY, closeImageLandscapeX, closeImageLandscapeY, closeImageWidth, closeImageHeight)
Description:
This function is used to show a remote web site in a different web view. Touching the close image will shut down the web view and return the user to the normal application view.
The url parameter is for the new view’s target url. The image coordinates define the position, width, and height of the close image that the user may touch to close the web view. By default close image is set to 48x48 pixels and positioned in the upper left hand corner of the screen.
When the close button is touched, it fires an intel.xdk.device.remote.close event.
This method replaces the intel.xdk.device.showRemoteSite.
Available Platforms:
- Apple iOS
- Google Android
- Microsoft Windows 8 - BETA
- Microsoft Windows Phone 8 - BETA
Parameters:
- url: The URL for the web view to open.
- closeImagePortraitX: The position of the button to close the web view from the left edge in pixels when the device is in the portrait orientation.
- closeImagePortraitY: The position of the button to close the web view from the top edge in pixels when the device is in the portrait orientation.
- closeImageLandscapeX: The position of the button to close the web view from the left edge in pixels when the device is in the landscape orientation.
- closeImageLandscapeY: The position of the button to close the web view from the top edge in pixels when the device is in the landscape orientation.
- closeImageWidth: The width of the button to close the web view in pixels.
- closeImageHeight: The height of the button to close the web view in pixels.
Events:
- intel.xdk.device.remote.close : The event is fired once a user touches the close image and the new web view is closed down.
Example:
intel.xdk.device.showRemoteSiteExt("http://www.google.com/",280,0,50,50);
Version:
This method is available in appMobi Version 3.3.0
English