Re: Automatic fill in of logins in WebViews?
Re: Automatic fill in of logins in WebViews?
- Subject: Re: Automatic fill in of logins in WebViews?
- From: Pascal Pochet <email@hidden>
- Date: Tue, 20 Feb 2007 11:49:14 +0100
Le 20-févr.-07 à 03:10, Paul Borokhov a écrit :
I'm loading a page in a webview in my app that includes a login
form for which a password is already stored in the keychain by some
other app (most likely Safari).
Since this isn't going to do it for me, what will?
Paul
DOM parsing…
when receiving the notification
- (void)webView:(WebView *)sender didFinishLoadForFrame:(WebFrame *)
frame
if the frame is the one containing the form to be prefilled call your
"prefill" method
passing it the [frame DOMDocument] as argument
in your "prefill" method parse the DOMDocument to find out the
objects to be prefilled :
use the "nodeName", "hasAttributes", "getAttribute" methods of
DOMNode to test what you are looking for…
and "setValue" to change the current value with the right data :
like getMyValueForKey of ABAddressBook and
getPasswordFromKeychainForService of KeychainHelper
Pascal Pochet
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden