Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting Form Values



On Jun 1, 2004, at 11:39 AM, Matt Mashyna wrote:

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.


References: 
 >Re: Setting Form Values (From: Matt Mashyna <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.