[Mapbender-dev] using jquery ...

Michael Schulz mschulz at webgis.de
Tue May 15 05:50:25 EDT 2007


Hi,

I've been fiddling around with this subject, and I think Christoph is
right. jQuery has to be loaded in that frame you want to use it. You
can then from that frame, reference elements in another frame and
manipulate them. Not the other way round.

Cheers, Michael




2007/5/14, Marc Jansen <jansen.marc at gmx.de>:
> 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);
> _______________________________________________
> Mapbender_dev mailing list
> Mapbender_dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapbender_dev
>


-- 
-----------------------------------------------------------
Michael Schulz
mschulz at webgis.de

in medias res
Gesellschaft für Informationstechnologie mbH

In den Weihermatten 66
79108 Freiburg

Tel  +49 (0)761 556959-5
Fax +49 (0)761 556959-6

http://www.webgis.de / http://www.zopecms.de
-----------------------------------------------------------


More information about the Mapbender_dev mailing list