>
> > using YUI.Get (or similar) to load an external script resource in the
> > page head. Put all calls to OpenLayers inside the fn. that is called
> > by YUI.Get *after* the OpenLayers script object is available.
>
> I've come across YUI when I was looking through the weblocks examples
> and contrib. Could you tell me what are the advantages of using this
> compared to "pure weblocks"?
>
>
It's not YUI per se that you need, rather you need a way of dynamically
loading openlayers.js when your map widget is displayed.

yui has a Get utility that accomplishes this, but similar things are
possible via jquery or handcoded js -- it involves creating a script element
in the page head with an appropriate src attribute. This is necessary imho
because the way weblocks loads js code for dependencies does not always mesh
well with how external widgets expect to work. YMMV, but that was my
experience with simile.mit.edu and google maps.

-- 
You received this message because you are subscribed to the Google Groups 
"weblocks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/weblocks?hl=en.

Reply via email to