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
Highlighted
Contributor
Posts: 25
Registered: ‎11-10-2010
My Device: Not Specified

Ajax library not working in simulator.

I have added a ajax library DataRequestor.js in widget but while hitting the URL of a web service I am getting 500 error. This error is coming while running the widget from Simulator. If I run the HTML from browser, it works fine.

In between I have added the URL in config.xml too. Any thoughts???

 

 

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

Re: Ajax library not working in simulator.

Can you post the OS version of the BlackBerry that you are using?

 

Also, have you tried accessing the website via XMLHttpRequest?  This will tell you if there is an issue with the ajax library and BlackBerry.

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

Re: Ajax library not working in simulator.

I am using Blackberry WebWorks plug in 2.5.1 and tested in all three simulators provided in it. Yes I am trying with XMLHTTPRequest.

While connecting I am getting 500 error code. Not 404 or any other. There is no activity on server side. Not able understand why is it throwing 500.