tried this already

myPageClass:

@Import(library = {"context:/js/OverlappingMarkerSpiderfier.js"})

void afterRender(){

 }



myPageTML:


<t:layout xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";>



<t:googleMaps3 />


</t:layout>



myGoogleMaps3.tml:


<script type="text/javascript" src="
http://maps.googleapis.com/maps/api/js?libraries=geometry&amp;key=${googleMapsKey}&amp;sensor=false
">



 alert ('google maps');


</script>



OverlappingMarkerSpiderfier.js:


first line is alert('OverlappingMarkerSpiderfier');




alert OverlappingMarkerSpiderfier is before  alert ('google maps');




2012/9/15 Dusko Jovanovski [via Tapestry] <
ml-node+s1045711n5716312...@n5.nabble.com>

> You can use the @Import annotation on render methods. Try this:
> @Import(library = {"context:js/OverlappingMarkerSpiderfier.js"})
> void afterRender(){}
>
> On Sat, Sep 15, 2012 at 7:12 PM, sommeralex <[hidden 
> email]<http://user/SendEmail.jtp?type=node&node=5716312&i=0>>wrote:
>
>
> > Hi!
> >
> > I need to ensure that google maps api 3 is loaded before
> > OverlappingMarkerSpiderfier ( OverlappingMarkerSpiderfier is a js lib
> > helping to solve the multiple marker problem with same locations)
> >
> > The  OverlappingMarkerSpiderfier.js is in my ressources folder, and
> > normally
> > i would just inject it via @Import(library =
> > {"context:js/OverlappingMarkerSpiderfier.js",})
> >
> > the point is, that the overlapping marker is always loaded then BEFORE
> > google maps api loaded. how can i change the order, that
> > OverlappingMarkerSpiderfier.js is loaded after google maps, which is
> loaded
> > via the script tag:
> >
> >
> >
> > thx
> >
> >
> >
> > --
> > View this message in context:
> >
> http://tapestry.1045711.n5.nabble.com/loading-js-and-scripts-in-a-specific-order-tp5716309.html
> > Sent from the Tapestry - User mailing list archive at Nabble.com.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden 
> > email]<http://user/SendEmail.jtp?type=node&node=5716312&i=1>
> > For additional commands, e-mail: [hidden 
> > email]<http://user/SendEmail.jtp?type=node&node=5716312&i=2>
> >
> >
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://tapestry.1045711.n5.nabble.com/loading-js-and-scripts-in-a-specific-order-tp5716309p5716312.html
>  To unsubscribe from loading .js and <scripts> in a specific order, click
> here<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5716309&code=YWxleGFuZGVyLnNvbW1lckBnbWFpbC5jb218NTcxNjMwOXwxMDUzMzQxMzM4>
> .
> NAML<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/loading-js-and-scripts-in-a-specific-order-tp5716309p5716313.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

Reply via email to