Just to mention, Slick.find is optimized to get the first match it finds in
the document, so if you wanna grab the first match with lightning speed, use
it.

http://jsfiddle.net/fabiomcosta/7v858/4/


--
Fábio Miranda Costa
front...@portalpadroes
Globo.com
*github:* fabiomcosta
*twitter:* @fabiomiranda
*ramal:* 6410



On Wed, Oct 20, 2010 at 1:36 AM, cheeaun <[email protected]> wrote:

> Thanks, Thomas.
>
> Slick is definitely super slick :)
>
> Some Element generics work, however some doesn't. Hmm...
> http://jsfiddle.net/7v858/3/
>
> On Oct 20, 10:55 am, Thomas Aylott <[email protected]> wrote:
> > Unfortunately the solution we used in 1.2 was a hack and never worked
> 100% perfectly. When we discussed its long term usage an support we made the
> hard to drop support for that feature sooner rather than later.
> >
> > The workaround is to load MooTools in a script tag inside the iframe page
> itself. If you were doing something more complex where that won't work then
> you may be able to get the old hack working again yourself by looking at how
> we did it in 1.2.
> >
> > However!
> > 1.3 now includes Slick.
> > Slick allows you to use any document as a context for searching.
> > Then once you have your collection of found elements you might be able to
> use some Element generics on them.
> >
> > e.g.
> > Element.set(
> >     Slick.search(iframeDocument, 'div')[0]
> >     ,'foo', 'bar'
> > )
> >
> > — Thomas Aylott / SubtleGradient.com (from iPhone 4)
> >
> > On Oct 14, 2010, at 11:54 PM, "goker.cebeci" <[email protected]> wrote:
> >
> >
> >
> >
> >
> >
> >
> > > in mootolls 1.3
> > > " An IFrame's window and document will not be extended with MooTools
> > > methods. "
>

Reply via email to