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:

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:

$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

Popular posts from this blog

How to decompile jsxbin to jsx

Gavik Photoslide GK2: Not able to upload photos - Joomla! Forum - community, help and support

Phoca Guestbook logger registret bruger af - Joomla! Forum - community, help and support