greasemonkey and $find and Sys.Application.findComponent

55 views
Skip to first unread message

B K

unread,
Apr 20, 2012, 3:54:27 PM4/20/12
to greasemonkey-users
I working with a page generated via asp net ajax and want to get the
selected index of a RadComboBox.
I get get at all the ids (getElementById) but cannot get at the
'components' which are accessed
through $find (which is an alias to Sys.Application.findComponent).
What do you have to have in a greasemonkey script to access
Sys.Application.findComponent from asp net ajax? Right now I;m stuck.

Anthony Lieuallen

unread,
Apr 20, 2012, 5:09:07 PM4/20/12
to greasemon...@googlegroups.com

B K

unread,
Apr 20, 2012, 10:40:10 PM4/20/12
to greasemon...@googlegroups.com
Anthony,

Thanks for your response.  I'm a relative newbie to greasemoneky and and not sure which
section on the link you provided is relevant to my question.  I have previously tried using
unsafeWindow to no avail. If you could provide some type of short example of how I
would be able to get at the Sys.Application.findComponent() function I would appreciate
that or more specific information on whether I should be looking at the Content Scope
Runner, Content Script Injection ... or Reading Content Globals in the link you provided.

e.g how do I implement: var component = Sys.Application.findComponent('my_component+name');


Bruce


On Friday, April 20, 2012 4:09:07 PM UTC-5, Anthony Lieuallen wrote:
http://wiki.greasespot.net/Category:Coding_Tips:Interacting_With_The_Page

B K

unread,
Apr 25, 2012, 2:05:57 PM4/25/12
to greasemonkey-users
SOLVED:

Use unsafeWindow.Sys.Application.findComponent()

unsafeWindow.$find doesn't seem to work.



On Apr 20, 9:40 pm, B K <upnorth...@gmail.com> wrote:
> Anthony,
>
> Thanks for your response.  I'm a relative newbie to greasemoneky and and
> not sure which
> section on the link you provided is relevant to my question.  I have
> previously tried using
> unsafeWindow to no avail. If you could provide some type of short example
> of how I
> would be able to get at the Sys.Application.findComponent() function I
> would appreciate
> that or more specific information on whether I should be looking at the
> Content Scope
> Runner, Content Script Injection ... or Reading Content Globals in the link
> you provided.
>
> e.g how do I implement: var component =
> Sys.Application.findComponent('my_component+name');
>
> Bruce
>
>
>
>
>
>
>
> On Friday, April 20, 2012 4:09:07 PM UTC-5, Anthony Lieuallen wrote:
>
> >http://wiki.greasespot.net/Category:Coding_Tips:Interacting_With_The_...
Reply all
Reply to author
Forward
0 new messages