[Mapbender-dev] using jquery ...
Marc Jansen
jansen.marc at gmx.de
Mon May 14 12:12:51 EDT 2007
Christoph Baudson (WhereGroup) schrieb:
> I would be very interested in a solution. I use the jQuery library in
> a separate frame, but want to locate html elements in another iframe.
>
> Until now I didn't succeed. In this example
>
> > imported_$('div.test a').find('span').each(function(i) { ...
>
> the variable imported_$ only *points* to the jQuery library in the
> remote frame, so 'div.test a' will only find the div tags in the
> iframe where jQuery is loaded, and not in the intended iframe. At
> least that is my interpretation ;-)
Yepp, this might be true. yet one can pass over a context to search
within to the func:
imported_$('div.test a', document);
More information about the Mapbender_dev
mailing list