As XWiki becomes more popular, hopefully a wide variety of scripts
will become available and easy to install thanks to the new packaging
system. I'm wondering if we need to do anything to ensure scripts
coexist peacefully.
For example, I'm considering installing the Tagging script, but I'm
concerned that its use of window.onload and maybe functions it defines
will clash with other javascript code on the site.
Also, should there be a specific Javascript library that we expect
XWiki scripts to use, so that a page doesn't have to load up several
toolkits just so that different scripts can call their Ajax functions?
Furthermore, AFAIK it's not possible to define namespaces in Velocity.
I assume it's possible several scripts will try to use the same
variable names within the same page, resulting in confusion. Not sure
what workarounds there are for this.
Any thoughts? Am I just being paranoid? How do systems like Google ig
allow many custom widgets on the same page without clashes?
Regards,
Robin.