Response title
This is preview!
Not alpha Numeric Input!!
It never left your app, unless you opened the login page in the system browser. It could redirect to any local URL in your app.How is it going to redirect back to my app on the phone? There is no URL for the app on the phone.
While the details differ between iOS and Android, you can register a URL in your app that can be used to redirect from the system browser to your app. See the documentation for iOS SDKs and Android. This is almost certainly addressed in the PhoneGap documentation, and I'm sure they provide a way (perhaps with a plugin) to register a URL for the app.There is no URL for the app on the phone.
It used to be the default policy was to NOT allow access to any site. (Which makes more sense.)Cordova's default security policy allows access to any site
I'm under the impression when the submit button is clicked, I leave my application and land on the server login.php to do authentication
I am guessing you are getting the "Not alpha Numeric Input!!" cos you directly went to the url karsv.com/login.php ?
You can't Ajax to your site until you whitelist it. The browser won't allow a cross-origin Ajax request. And for Phonegap, the origin is the local filesystem in the device.PhoneGap works-around this for you, but you have to tell it which sites to allow.
© 2013 jQuery Foundation
Sponsored by and others.