Re: Google Chrome: Set variable to result of JavaScript
Re: Google Chrome: Set variable to result of JavaScript
- Subject: Re: Google Chrome: Set variable to result of JavaScript
- From: Christopher Stone <email@hidden>
- Date: Thu, 14 Jul 2011 15:45:19 -0500
On Jul 14, 2011, at 02:45, julifos wrote: It was just sample code for the pageloaded event and yes, it was supossed to enter "loaded!" in the search field, which does in my system under the same conditions of name="q" and not id="q" ;-)
______________________________________________________________________
Hey JJ,
It took me a couple of days to get to this, but with a minor modification it works every time on my machine:
script foo on pageloaded w callJavaScript w script "document.getElementsByName('q')[0].value = '.Page Fully Loaded.'" end pageloaded end script
It's certainly neater than my ready-state handler for Safari.
-- Best Regards, Chris
|
_______________________________________________
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