Hello,

Following the open question #1 here 
http://dev.xwiki.org/xwiki/bin/view/Design/SkinExtensions#HUsage

"
Open question 1: Should $jsx.useFile("filename.js") work for files 
located on the disk? This allows the same pull process to be used with 
files located in the skin, without requiring SX documents and objects. 
I'd say yes. Then, what should the URL look like? 
/xwiki/bin/jsx/skins/albatross/somestyle.css is OK?
"

I would like to propose to go even further, and to allow injection of 
script tags referring libraries on the cloud or on a different server 
using the jsx plugin. This would allow to not have users writing scripts 
tags in the body of the document to add a library.

I would see something like :

$jsx.use("http://maps.google.com/maps?file=api&v=2&key=XXX";)

or

$jsx.useFile("http://maps.google.com/maps?file=api&v=2&key=XXX";)

What do you think ?

Regards,
Jerome.
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to