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: 33
Registered: ‎09-08-2009
My Device: Curve 8320
Accepted Solution

ThrownValue in ExecuteScript ReferenceError:GMap2 is not defined

The Google Map doesn't render.

My application has a "View Map" button which on click calls a web URL.

I did enable the JavaScript support in the Browser configuration

 

Device Target:Up to Bold

Blackberry JDE 4.5

 

Please provide me with a solution. Apologies if such a query has already been addressed

Highlighted
Developer
Posts: 33
Registered: ‎09-08-2009
My Device: Curve 8320

Re: ThrownValue in ExecuteScript ReferenceError:GMap2 is not defined and a NullPointerException

[ Edited ]

In my application, a call to the Web URL http:// XXXX.xxxxx.com/xxx.php?company_id=companyid must display the Google Map with company id added to it.

Earlier my test results on the Simulator did show the Google Map.(Not Static), but now it doesn't render at all.

I have checked and rechecked the Browser configuration as well for JS support. Please help me figure out a solution.

 

Now a Null Pointer Exception plagues it further.

 

ViewMap_NullPointerException.JPG

 

Thanks in advance

Developer
Posts: 33
Registered: ‎09-08-2009
My Device: Curve 8320

Re: ThrownValue in ExecuteScript ReferenceError:GMap2 is not defined and a NullPointerException

I have resolved this issue now, corrected the erroneous code.

New Contributor
Posts: 3
Registered: ‎12-21-2010
My Device: Not Specified

Re: ThrownValue in ExecuteScript ReferenceError:GMap2 is not defined and a NullPointerException

Hi,

 

Please post your solution to this problem. Are you using browserfield2 to access live domains and invoking scripts from external controls?

 

Thank you