jQuery: noConflict - Joomla! Forum - community, help and support
i'm trying use jquery plugin in joomla component:
http://dev.iceburg.net/jquery/jqmodal/jqmodal.js
i'm using plugin in way:
but when firefox error console say:
how can modify plugin used in joomla without conflicts?
http://dev.iceburg.net/jquery/jqmodal/jqmodal.js
i'm using plugin in way:
code: select all
var $j = jquery.noconflict();
$j().ready(function() {
$j('#containermodal').jqmshow()
});
but when firefox error console say:
error: h undefined
source file:/js/jqmodal.js
line: 40
how can modify plugin used in joomla without conflicts?
i'm adding scripts in way:
but got error:
$document = &jfactory::getdocument();
$document->addscript(com_retouchbooking_url.'/js/jquery-1.3.2.min.js' );
$document->addscriptdeclaration( 'jquery.noconflict();');
$document->addscript(com_retouchbooking_url.'/js/ui.core.js' );
$document->addscript(com_retouchbooking_url.'/js/effects.core.js' );
$document->addscript(com_retouchbooking_url.'/js/effects.highlight.js' );
$document->addscript(com_retouchbooking_url.'/js/jqmodal.js' );
$document->addscript(com_retouchbooking_url.'/js/main.js' );
but got error:
error: $ not function
source file: /media/system/js/mootools.js
line: 25
Comments
Post a Comment