Hi Asiri,
Wouldn't javascript extensions help ? It let you put this code in a
XWiki object in a document, that you can force to load as a js lib in
any page using $xwiki.jsx.use("XWiki.InstallFoXWiki") for example, if
the page that contains the JSX object is indeed XWiki.InstallFoXWiki.
You can find out more about JSX here :
http://code.xwiki.org/xwiki/bin/view/Plugins/SkinExtensionsPlugin
Regards,
Jerome
Asiri Rathnayake wrote:
> Hi Devs,
>
> I'm working on integrating webdav into XWiki UI (+FoXWiki) and I kind of ran
> into a small problem.
>
> Our current xwiki-webdav-foxwiki test server is at
> http://91.121.237.216/xwiki/bin/view/Main/ (you may give this a try with
> firefox). Here in the attachments view, if a firefox user clicks on the
> "Edit" link, it should first check if the user has foxwiki installed and if
> not should trigger an installation. If the user has foxwiki installed,
> foxwiki will take care of the rest of tasks.
>
> The problem is, foxwiki install trigger code is something like this :
>
> <code>
> var params = {
> "FoXWiki": { URL: "
> http://91.121.237.216/xwiki/bin/download/Main/WebHome/foxwiki.xpi",
> IconURL: "
> http://91.121.237.216/xwiki/bin/download/Main/WebHome/foxwiki.png",
> Hash:
> "sha1:76920ec6392fec911e13b53ed8d23f64d75502c6",
> toString: function () { return this.URL; }
> }
> };
> InstallTrigger.install(params);
> </code>
>
> Currently i have put this code into /skins/albatross/scripts/webdav.js
>
> This doesn't look right for obvious reasons, but where else would i put this
> code ?
>
> Please help me out :)
>
> Thanks.
>
> - Asiri
> _______________________________________________
> devs mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs