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

New Developer
Posts: 2
Registered: ‎02-10-2012
My Device: Bold 9900
My Carrier: MTS-RUS

Basic authentication and Ajax-requests

Hello. I'm writing an application using jQuery and jQuery Mobile frameworks. This app is calling some API on web-server, those API return data in JSON format. Some API require basic HTTP authentication.


Then I have compiled this app as WebWorks app and transferred COD-file on my smartphone. So I have two questions:


1) Why there is basic authentication dialog appears on smartphone (with fields like: username, domain, password), despite of hardcoded username/password inside my app? For example, looks like this code:

username:'user1', password:'pass1', });

is ignored.


2) Is there any way to customize (or replace) built-in basic authentication dialog. I want to add some CSS, save username/password checkbox, etc.


Thanks in advice.