Hi Steffen,

> Event.observe(window,'dom:loaded', ...

Isn't dom:loaded a document event, not a window event?  E.g.:

> Event.observe(document,'dom:loaded', ...

Or even better:

> document.observe('dom:loaded', ...

I don't know that you can observe elements in another document in the
frameset (I've never tried, you may well run into security
provisions), but if you did you'd need to use the document in the
other frame rather than the window...

Hope this helps,
--
T.J. Crowder
tj / crowder software / com

On Apr 26, 12:15 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> i try to observe elements from parent document but it doesn't work
> with the elements in frame.
>
> This is my try:
>
> Event.observe(window,'dom:loaded', function(){
>         $$('a.csh-link').each(function(element){
>                 // do some stuff
>         });
>
> }.bind(this));
>
> What is wrong, how can i do this for all frames too?
>
> thx, vg Steffen
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to