Using the jQuery plugin ColorBox in noConflict() mode -


I'm using a jQuery plugin in ColorBox in Joomla! The subject is, and it's been a tough time to work in a noisy () mode. I have the following code that calls my jQuery and noConflict (); Call, after my actual jQuery markup:

  & lt; Script type = "text / javascript" language = "javascript" src = "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> & Lt; Script type = "text / javascript" language = "javascript" & gt; JQuery.noConflict (); & Lt; / Script & gt; & Lt; Script type = "text / javascript" language = "javascript" src = "path to colorbush" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" language = "javascript" & gt; JQuery (document) .ready (function () {jQuery ('a.colorbox'). Colorbox ();}) & lt; / Script & gt;  

However, I can not get it to work under uninterrupted () mode. When no one is worried about disabling any dispute mode, but then the ootools scripts associated in Joomla do not work.

Can anyone tell me in the right direction here? Too much appreciated, Simon

It has been found that after all this, it was related to that sequence of Joomla ! Because the script was calling it, for everyone who stumble in the same problem, your script call should be called after Joomla! Includes head tags such as:

  & lt; Jdoc: included type = "head" /> & Lt; Script type = "text / javascript" language = "javascript" src = "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" language = "javascript" & gt; JQuery.noConflict (); & Lt; / Script & gt; & Lt; Script type = "text / javascript" language = "javascript" src = "& lt ;? php echo jury :: base () ;? gt; templates / helen-o-grady / js / jquier.colorbox-min.js "& Gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" language = "javascript" & gt; JQuery (document) .ready (function () {jQuery ('a.colorbox'). Color box ({iframe: true, width: 900, height: 650}}}}} () and  gt;  

Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -