http://wesdyklt:8080/toscawidgets/resources/tw.dojo/dojox/data/QueryReadStore.js
as opposed to
http://wesdyklt:8080/toscawidgets/resources/tw.dojo/static%5C1.4.1%5Cmin%5Cdojo/date/stamp.js
which succeeds.
What is the reason for this? The actual scripts are located in the
same directory structure described by the second link. For instance,
manually creating the URL:
succeeds. My javascript experience is very limited, but my
understanding is that the call
dojo.require("dojox.data.QueryReadStore") requests the script from the
server. How do I point this in the right direction?
Thanks for the assistance.
Wes
I installed TG2 on Windows ; a fresh install on a fresh python 2.7 ->
tg.devtools-2.1.2-py2.7.
I added dojo v0.9.9.
On the admin website, the dojo grid does not work. I get this instead of the
grid:
"__actions__ user_name email_address display_name created groups."
Using firebug I see that 2 js files are missing:
http://localhost:8080/toscawidgets/resources/tw.dojo/dojox/data/QueryReadStore.js
http://localhost:8080/toscawidgets/resources/tw.dojo/twdojo/data/TWDojoRestStore.js
whilst other js are found in e.g.
http://localhost:8080/toscawidgets/resources/tw.dojo/static%5C1.4.1%5Cmin%5Cdojo/parser.js
Looking in the directory tree I see that these files are actually in:
C:\tg2env\Lib\site-packages\tw.dojo-0.9.9-py2.7.egg\tw\dojo\static\1.4.1\min\dojox\data
C:\tg2env\Lib\site-packages\tw.dojo-0.9.9-py2.7.egg\tw\dojo\static\1.4.1\min\twdojo\data
looking in the html code I find mention of
<div dojoType="dojox.data.QueryReadStore" jsId="_store" id="_store"
xhrArgs="{preventCache:true}" url="../users.json"></div>
and
dojo.require("twdojo.data.TWDojoRestStore")
But I don't find why these files are not looked up in a subdirectory of
static/1.4.1/min
I tried to copy the 2 files in tw.dojo-0.9.9-py2.7.egg\tw\dojo\dojox\data
and twdojo\data with no success.
Is it something linked to the windows distribution ? Are we alone with this
problem on TG2 with Dojo ?
help welcome...
--
View this message in context: http://old.nabble.com/Two-javascript-link-errors-in-tw.dojo-tp29307685p32456968.html
Sent from the Turbogears General mailing list archive at Nabble.com.
> --
> You received this message because you are subscribed to the Google Groups "TurboGears" group.
> To post to this group, send email to turbo...@googlegroups.com.
> To unsubscribe from this group, send email to turbogears+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To post to this group, send email to turbo...@googlegroups.com.
To unsubscribe from this group, send email to turbogears+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.