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
New Developer
Posts: 4
Registered: ‎01-22-2010
My Device: BB 9530 Storm
My Carrier: airtel

ReferenceError: javascript function not recognizing

We are developing a web application compatible to BlackBerry models which support device OS version 4.6.0 or later. When i am verifying the application in 8350i (OS 4.6.1), i am getting an error while calling a function in javascript that is referenced in the page. I am having a script reference in the page, where i am using to load a calendar control.

 

<script src="x-javascript/calendar.js" type="text/javascript" language="JavaScript"></script>

 

I am calling a function buildCalendar() in the calendar.js file in the page onload() event. I am getting error ReferenceError: "buildCalendar" is not defined. I tried to debug using blackberry plug-in for visual studio and the javascript is loading properly but still it is throwing the error that it couldn't be able to find the function buildCalendar().

 

I see the same page is loading fine in other models (9700,8530,9530 etc)

 

Could anyone help me understand the issue and how the blackberry browser intercepts the javascript while loading the page.

 

Thanks,
Ramnadh

New Member
Posts: 1
Registered: ‎06-17-2010
My Device: NA
My Carrier: NA

Re: ReferenceError: javascript function not recognizing

did you found a solution to this issue??, i'm having the same problem with external javascripts on the same BlackBerry model.

 

Best Regards.

Sergio Ortega

New Contributor
Posts: 7
Registered: ‎12-16-2010
My Device: Not Specified

Re: ReferenceError: javascript function not recognizing

I am also having the same problem with javascript recognizing my javescript extension.

 

Did you figure it out, Sergio?

New Contributor
Posts: 2
Registered: ‎08-25-2011
My Device: Blackberry Bold 9780
My Carrier: MTN

Re: ReferenceError: javascript function not recognizing

Hello, does anyone have any insight into why this javascript call is returning ReferenceError. I even moved the function to same file but got same error.

 

This call works fine on my simulator (9930) but fails on the device

 

I am using bold 9800 with os 4.6

 

Any help will be greatly appreciated.

New Contributor
Posts: 2
Registered: ‎08-25-2011
My Device: Blackberry Bold 9780
My Carrier: MTN

Re: ReferenceError: javascript function not recognizing

Ramnadh, did you find a solution to this issue. Kindly share with us.

Thanks,
H
Developer
Posts: 300
Registered: ‎03-12-2009
My Device: Not Specified

Re: ReferenceError: javascript function not recognizing

I have this exact error - anyone fix it?

 

The call still works, but it throws this exception..