[Mapbender-dev] using jquery ...

Christoph Baudson (WhereGroup) christoph.baudson at wheregroup.com
Tue May 15 06:28:10 EDT 2007


Did you already try the context parameter Marc mentioned?

imported_$('div.test a', document);

I haven't given this subject enough time for a final conclusion; maybe 
we should contact the jQuery mailing list?

Thanks for sharing

Christoph

Michael Schulz schrieb:
> 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
>>
> 
> 


--
Baudson Christoph
http://www.wheregroup.com


More information about the Mapbender_dev mailing list