Jumping in late on this. This topic has piqued my interest. How can I
use stringByEvaluatingJavaSciptFromString to set form fields ? I hate
to be such a newbie but if I have a WebView which I know has a single
frame, and I have apriori knowledge of it, how can I work my
javascript magic on it ?
You can use the same JavaScript methods that any webpage can use. For
example, you can find an element using getElementById if it is labeled
with an ID attribute. Pick up a book on JavaScript, and you can expect
that most of what you find there will work.
I searched the developer docs for
stringByEvaluatingJavaSciptFromString and came up empty.
I think you just left out the "r" in "Script". This search worked for
me:
<http://developer.apple.com/cgi-bin/search.pl?
&q=stringByEvaluatingJavaScriptFromString&num=10&ie=utf8&oe=utf8&lr=lang
_en&simp=1>.
-- Darin
_______________________________________________
webkitsdk-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webkitsdk-dev
Do not post admin requests to the list. They will be ignored.