Hi Caleb,
Finally some good news concerning require.js and my plugin. It is working although it's only possible when I include the metrojs-code in the page itself. (<script src="...">) As soon as I refer to it as an extension inside XWiki(Velocity - JSX), I run into errors - I came to the conclusion that it has to be either a speed issue combined with the asyncronous loading that require.js does or related to the order in that XWiki handles velocity an on-page-scripts. After that I tried to register it with require.js as a shim (seems to be a functionality to include dependent scripts like plugins), but no success so far. I think I will stick with this solution until I either get used to require.js and shim or prototype gets retired J Thanks a lot for your support! Regards Ruben Von: Caleb James DeLisle-2 [via XWiki] [mailto:ml-node+s475771n7588425...@n2.nabble.com] Gesendet: Mittwoch, 18. Dezember 2013 17:32 An: Müller, Ruben Betreff: Re: jQuery plugin - Conflict with prototype.js Hi Ruben, If you're wrapping the metrojs script in a require(['jquery'], function($) { <all_metrojs_code_goes_here> }) call then I'm not sure there much else you can do other than manually searching through metrojs and hunting down the places where it uses window.$ which defeats the wrapper. Sorry I couldn't bring better news. Thanks, Caleb On 12/18/2013 02:24 PM, Ruben M. wrote: > Hi Caleb, > > After several tries i gave up on the requirejs-implementation in Xwiki. For > me, it seems like jQuery plugins also use $ for their functions, but are not > beeing connected to jQuery although inside the require-function. (in this > case: "$(...).liveTile() is not a function.") > > I saw your documentation on > http://platform.xwiki.org/xwiki/bin/view/DevGuide/JavaScriptAPI, thanks for > that. Do you (or anyone else) know a Xwiki-page where i can analyze a > working jQuery plugin with $-functions? > I'm not sure about whether to use shim, map, registrating the metrojs as a > module or none of that. > > Thanks & regards > Ruben > > > > -- > View this message in context: > http://xwiki.475771.n2.nabble.com/jQuery-plugin-Conflict-with-prototype-js-tp7588243p7588424.html > Sent from the XWiki- Users mailing list archive at Nabble.com. > EDV-Administration ------------------------------------------- Kräuterhaus Sanct Bernhard KG Helfensteinstraße 47 73342 Bad Ditzenbach http://www.kraeuterhaus.de Telefon: +49 (7334) 9654-686 Telefax: +49 (7334) 9654-96686 r.muel...@kraeuterhaus.de ---------------------------------------------------------------------------- Sitz: Bad Ditzenbach | AG Ulm/Donau HRA 541000 | Geschäftsführer: Elmar Schulz _______________________________________________ > users mailing list > [hidden email] > http://lists.xwiki.org/mailman/listinfo/users > _______________________________________________ users mailing list [hidden email] http://lists.xwiki.org/mailman/listinfo/users ________________________________ If you reply to this email, your message will be added to the discussion below: http://xwiki.475771.n2.nabble.com/jQuery-plugin-Conflict-with-prototype-js-tp7588243p7588425.html To unsubscribe from jQuery plugin - Conflict with prototype.js, click here <http://xwiki.475771.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=7588243&code=ci5tdWVsbGVyQGtyYWV1dGVyaGF1cy5kZXw3NTg4MjQzfDEwODg4MTE4MjE=> . NAML <http://xwiki.475771.n2.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> image001.picture (3K) <http://xwiki.475771.n2.nabble.com/attachment/7588555/0/image001.picture> -- View this message in context: http://xwiki.475771.n2.nabble.com/jQuery-plugin-Conflict-with-prototype-js-tp7588243p7588555.html Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users