I am trying to replace the default "Authentication Required" box that comes up with authentication with a custom form for a username and password in JQuery Mobile.I am currently using HTTP Digest that I found from a tutorial (http://www.php.net/manual/en/features.http-auth.php). I am using AJAX with JQuery mobile to load up a PHP resource that logs in to the system and have got it half working. What I've tried so far is:
'http://username:password@domain/resource/'
and
data:{username:'username',password:'password'},
These both work when I am viewing the website on my desktop however when I view it on a smartphone (tried on iPhone and S4) it will instead show the default "Authentication Required" box and not take any of the details I provide in my own custom form. I wanted to know what the problem could be as I am pulling my hair out over this.
Thanks