02-10-2012 02:50 AM
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', });
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.