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

Java Development

Reply
Developer
Posts: 104
Registered: ‎07-08-2010
My Device: blackberry bold
My Carrier: developer

browserfield2 problem in some simulator

Hi friends,

i am using jde 6.o and test my application on 9800,9330,9700 .

 

my application is based on browserfield and i am using browserfield.executescript(script);

 

i am using   this script

 

final String script = "var script = document.createElement('script');"
+ "script.type = 'text/javascript';"
+ "script.text = \"if (window.binjaRedirect) binjaRedirect('"
+ url
+ "');"
+ "else window.location.href='"
+ url
+ "';\";"
+ "document.getElementsByTagName('head')[0].appendChild(script);";

 

but this code is working only in blackberry 9800 simulator not working in 9330 and other simulator.

 

in other simulator it throws  uncaught exception : null pointer exception

 

i dont understand what happent in other simultor ,

java script is  location based. and i am using gps location  in simulator.

 

so please tell me  what happen about browserfield in other simulator.

 

Regards
Vishal Patel
Developer
Posts: 104
Registered: ‎07-08-2010
My Device: blackberry bold
My Carrier: developer

Re: browserfield2 problem in some simulator

on there simulator is  thorows this type of message

 

OnMessageReceived failed with event 3074. null

 

so what does it means , i am not able to figure out yet.

Regards
Vishal Patel
Developer
Posts: 104
Registered: ‎07-08-2010
My Device: blackberry bold
My Carrier: developer

Re: browserfield2 problem in some simulator

still there is no help regarding to browserfield.executescript() in jde 6.o for 9330 and other simulatro except 9800.

 

Regards
Vishal Patel