Re: Safari: When do changes to a <textarea> show up in AppleScript "get the text..."
Re: Safari: When do changes to a <textarea> show up in AppleScript "get the text..."
- Subject: Re: Safari: When do changes to a <textarea> show up in AppleScript "get the text..."
- From: Roger Howard <email@hidden>
- Date: Tue, 20 Oct 2009 15:23:13 -0700
On Oct 20, 2009, at 3:19 PM, Mark J. Reed wrote:
Or if the textarea has an id="someid" attribute, Yup, that's what I
had in mind when I said you'd have to use JavaScript.
A couple alternatives for finding the textarea from JavaScript.
First, if it has an id="someid" attribute, this will work no matter
where it is:
"document.getElementById('someid').value"
Second, if it's the only textarea on the page:
"document.getElementsByTagName('textarea')[0].value"
Or if you're using Jquery on that page, which I greatly prefer,
$("#someid").val();
Cheers!
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden