Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Regular Contributor
Posts: 63
Registered: ‎10-06-2010
My Device: Not Specified
Accepted Solution

XML HTTP Request Mode as Wifi or BIS or other

I know that in normal http conntion we used to add the deviceside =true; and interface=wifi;

 

How can able to sepecifiy use the wifi interface in XMLHttpRequest .

 

XMLHttpRequest Doument(PDF)

 

How can i do for that in XMLHttpRequest can any one help me.

 

Retired
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: XML HTTP Request Mode as Wifi or BIS or other

Are you writing a Java appliction with BrowserField in it? or are you building a WebWorks application?

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Regular Contributor
Posts: 63
Registered: ‎10-06-2010
My Device: Not Specified

Re: XML HTTP Request Mode as Wifi or BIS or other

I am just making the webworks application.

Retired
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: XML HTTP Request Mode as Wifi or BIS or other

Are you looking to make your application only run if the user is connected to WiFi?  Or only have specific AJAX calls go through wifi?

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Regular Contributor
Posts: 63
Registered: ‎10-06-2010
My Device: Not Specified

Re: XML HTTP Request Mode as Wifi or BIS or other

For wifi and direct TCP it is working fine, but I want to know how to make a network call in xmlhttp specially for BIS Network. How can I specify that.

Highlighted
Retired
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: XML HTTP Request Mode as Wifi or BIS or other

The topic is a complicated one.. first we need to clarify that there is zero relationship between a physical network connection and a transport.

 

You can think of a transport as a VPN tunnel.  

 

If you set-up your transport order list to be BIS first and BES second, all communications will go through BIS first if it is available as a transport on the device.

 

The Developer Guide for WebWorks outlines how to modify your transport order in the config.xml file.

 

Some notes and words of caution

There really are only VERY specific use cases where you will want to modify these settings.  Typically the default settings produce the desired result.  Could you explain more what your intention is?  I would hate to see you go down the route of trying to configure your transports when you may not need to.

 

Also, the simulator cannot simulate transport.. you will need to test on a physical device.

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter