On Sep 2, 2:23 pm, Mojito <tokyot...@gmail.com> wrote:
> What's the Prototyped syntax equivalent of:
>
> window.frames['iFrameID'].document.getElementById
> ('elementInsideIFrame');

Current version of Prototype doesn't really support programmatic
context extension (such as that of `window.frames['iframeID']` in your
example). Instead, Prototype initialization for a given frame is
usually accomplished by inserting script referencing prototype.js
directly into that frame's document. Once loaded, parsed and executed,
that script automatically extends frame's context with all of the
prototype goodness. It's then possible to do something like -
`window.frames['iframeID'].$$('...')`.

Also, don't forget that most of the Prototype DOM abstractions do not
play well with elements originating from different documents (since
internally, Prototype practically always operates on "original"
document - that which exists in a context where Prototype was
initialized, not an actual document of an element).

--
kangax
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to