Is there a way to control JSLink and javascript from tw.api??

I need below inject to be at the end of all javascript code? Is that possible?

http://toscawidgets.org/hg/tw.openlayers/file/387a2f19c67a/tw/openlayers/util.py
JSLink(modname=__name__,
    filename='static/javascript/OpenStreetMap.js').inject()


Is javascript below refering to the same list as JSLink? If yes can I
access it or sort it before it goes out??
http://toscawidgets.org/hg/tw.openlayers/file/387a2f19c67a/tw/openlayers/map.py
javascript = [ol_js, map_js]

I assume these parts are from tw.api. I read the docs but I couldn't
find anything about it.
http://toscawidgets.org/documentation/ToscaWidgets/modules/api.html#jslink

Thanks,
Lucas


On Wed, Oct 22, 2008 at 9:49 PM, Lukasz Szybalski <[EMAIL PROTECTED]> wrote:
> Hello,
>
>>
>> Could you provide an example of
>> OSMMapnik and OSMRenderer
>
> so one of the examples could be:
>
> class MyLayers(WidgetsList):
>     my2 = OSMMapnik(name="Mapnik")
>
> but I think I found a bug. For some reason the openstreetmap.js gets
> added/loaded first instead of last.
> I tried looking into tw.openlayer code but I can't seem to find how to
> move it at the end.
>
> I have tried in regular html file and if I move it at the end it
> renders, but if I leave it at the beginning it does not.
>
> <head><script type="text/javascript"
> src="/toscawidgets/resources/tw.openlayers.util/static/javascript/OpenStreetMap.js"></script>
> <link rel="stylesheet" type="text/css"
> href="/toscawidgets/resources/tw.openlayers.map/static/javascript/theme/default/style.css"
> media="all" />
> <script type="text/javascript"
> src="/toscawidgets/resources/tw.openlayers.map/static/javascript/OpenLayers.js"></script>
> <script type="text/javascript"
> src="/toscawidgets/resources/tw.openlayers.map/static/javascript/map.js"></script>
>
> it should be
> <head>
> <link rel="stylesheet" type="text/css"
> href="/toscawidgets/resources/tw.openlayers.map/static/javascript/theme/default/style.css"
> media="all" />
> <script type="text/javascript"
> src="/toscawidgets/resources/tw.openlayers.map/static/javascript/OpenLayers.js"></script>
> <script type="text/javascript"
> src="/toscawidgets/resources/tw.openlayers.map/static/javascript/map.js"></script>
> <script type="text/javascript"
> src="/toscawidgets/resources/tw.openlayers.util/static/javascript/OpenStreetMap.js"></script>
>
> How can we fix this?
>
> Thanks,
> Lucas
>
>
>> for this file
>> http://toscawidgets.org/hg/tw.openlayers/file/3de8e56542c5/tw/openlayers/layer.py
>>
>> and maybe add it to:
>> http://toscawidgets.org/hg/tw.openlayers/file/3de8e56542c5/tw/openlayers/samples.py
>>
>> Thanks,
>> Lucas
>



-- 
Turbogears2 Manual
http://lucasmanual.com/mywiki/TurboGears2
Bazaar and Launchpad
http://lucasmanual.com/mywiki/bzr

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to