Hi,
If you are putting it in a syntax2.0 page
Are you putting the script call inside of a html macro
eg:
{{html}}
<script type="text/javascript" language='javascript'
src='js/xwiki/mail/mail.nocache.js'></script>
{{/html}}
otherwise XWiki will sanitize it to prevent js injection attacks.
When you are viewing the page where the script should be, click view->source
see search the name of your script to make sure the reference is there and
hasn't been changed.
Also Y-Slow is an excellent firebug addon for figuring out what scripts have
loaded.
Make sure you can access the file at js/xwiki/mail/mail.nocache.js (from the
web server)
eg. www.yourwiki.com/xwiki/js/wiki/mail/mail.nocache.js
XWiki has a nice system for adding java scripts:
http://platform.xwiki.org/xwiki/bin/view/DevGuide/SkinExtensionsTutorial
Thanks
Caleb James DeLisle
Leon Wang wrote:
> Hi Everyone, Hi Marius,
> I was wondering when I embed a GWT application, the Mail sample, provided
> by GWT SDK into Xwiki page like this:
>
> <script type="text/javascript" language='javascript'
> src='js/xwiki/mail/mail.nocache.js'></script>
>
> why this GWT application would not appear in the Xwiki page, nothing
> happened? I have read the
> http://code.google.com/webtoolkit/doc/1.6/DevGuideOrganizingProjects.html
>
> <http://code.google.com/webtoolkit/doc/1.6/DevGuideOrganizingProjects.html>In
> "The Bootstrap Sequence" section, it has an example
> 7. myApp/myApp.nocache.js completes, and the compiled script (
> <hashname>.cache.html) begins fetching in a hidden IFRAME (this is
> non-blocking).
> 8. <hashname>.cache.html completes. onModuleLoad() is not called yet, as
> we're still waiting on externalScriptOne.js to complete before the document
> is considered 'ready'.
> 9. externalScriptOne.js completes. The document is ready, so
> onModuleLoad() fires.
>
> Why in the Xwiki page, the onModuleLoad() seems does not work?
>
> PS: I am willing to contribute to Xwiki, what can I do for you guys? What I
> can think of is that I have poster presentation at the Graduate Research
> Forum on November 6, 2009, I will present my work on posters and I print
> and hand out some flyers about Xwiki to people to give Xwiki a advertise.
> What do you guys think of. If anything I could help please let me know.
>
> Thank you all.
>
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs