I have an application that uses stringByEvaluatingJavaScriptFromString
to modify HTML that I have no access to (like Greasemonkey). Specifically, I want to store the username and password from a login form in NSUserDefaults
when the onSubmit
event is fired from JS.
I already have a custom URL scheme and an onSubmit
handler. I can pass the URL a username and password, and it will store it. I am only having issues with the onSubmit
handler: how can I save data with my custom URL before submitting the form?
I am not using any Javascript frameworks, and my code only targets Mobile Safari.