So, i am using Farcry 6.2.7 from trunk, removing dualslider jquery 1 3 2 script and leave <skin:loadJS id="jquery" /> doesn't work.
Thanks! Op zondag 6 januari 2013 02:15:57 UTC+1 schreef Marco van den Oever het volgende: > > Hi Justin, i am using Farcry 6.2.7, i got it from trunk. > I just posted a message after you! > > Op zondag 6 januari 2013 02:00:00 UTC+1 schreef Justin Carter het volgende: >> >> Which version of FarCry are you using? >> >> For FarCry 6.0, if you are logged in to the webtop then you will find >> that FarCry's "built-in" copy jQuery is overriding the jQuery 1.3 that you >> have specified in your own script tags. To work around this you'll need to >> do something like this, loading the built-in jQuery first, and then loading >> your own jQuery after it: >> >> <skin:loadJS id="jquery" /> >> <skin:htmlhead> >> <script src="/dualSlider/scripts/jquery-1.3.2.min.js" >> type="text/javascript"></script> >> <script src="/dualSlider/scripts/jquery.easing.1.3.js" >> type="text/javascript"></script> >> <script src="/dualSlider/scripts/jquery.timers-1.2.js" >> type="text/javascript"></script> >> <script src="/dualSlider/scripts/jquery.dualSlider.0.3.js" >> type="text/javascript"></script> >> </skin:htmlhead> >> >> There is a bit of overhead involved in doing it this way though because >> it means 2 copies of jQuery will always be loaded (even when not logged in >> to the webtop). >> >> Alternatively, you could remove the "jquery-1.3.2.min.js" line and see >> if it works. jQuery 1.3 is quite old so registering this version of jQuery >> using <skin:registerJS> probably isn't an option as it would break the >> webtop... >> >> The best workaround is a change we made to Core in 6.2.x, which releases >> the $ variable so that FarCry's built-in copy of jQuery is only available >> as $j (which was the original intention). If you're using 6.2.x then it >> should just work, so please let us know if that it not the case. >> >> cheers, >> Justin >> >> >> On Sun, Jan 6, 2013 at 10:46 AM, Marco van den Oever < >> [email protected]> wrote: >> >>> Hi all, i am trying to integrate a dualSlider: >>> http://www.htmldrive.net/items/show/486/jQuery-dualSlider.html into a >>> farcry project. >>> I am not able to make it work. >>> >>> I have removed all farcry javascript from displayHeaderStandard >>> (<skin:loadJS id="jquery" />) >>> And other javascript that was added there. >>> >>> Are there other places that put in javascript which could interfere with >>> the dualSlider's javascript? >>> >>> In displayheaderStandard i have included the javascript as: >>> >>> <script src="/dualSlider/scripts/jquery-1.3.2.min.js" >>> type="text/javascript"></script> >>> <script src="/dualSlider/scripts/jquery.easing.1.3.js" >>> type="text/javascript"></script> >>> <script src="/dualSlider/scripts/jquery.timers-1.2.js" >>> type="text/javascript"></script> >>> <script src="/dualSlider/scripts/jquery.dualSlider.0.3.js" >>> type="text/javascript"></script> >>> >>> Is that path ok to use in displayHeaderStandard? >>> >>> Thanks! >>> >>> -- >>> You received this message cos you are subscribed to "farcry-dev" Google >>> group. >>> To post, email: [email protected] >>> To unsubscribe, email: [email protected] >>> For more options: http://groups.google.com/group/farcry-dev >>> -------------------------------- >>> Follow us on Twitter: http://twitter.com/farcry >>> >>> >>> >> >> -- You received this message cos you are subscribed to "farcry-dev" Google group. To post, email: [email protected] To unsubscribe, email: [email protected] For more options: http://groups.google.com/group/farcry-dev -------------------------------- Follow us on Twitter: http://twitter.com/farcry
