Hi
I am using Joomla 2.5
virtumart 2.020
when i m clicking on image, it.s not opning in popup or lightbox
it open seprate
please tell me what to do
Can you give a url? http://forum.virtuemart.net/index.php?topic=79799.0
Quote from: jenkinhill on May 03, 2013, 15:29:08 PM
Can you give a url? http://forum.virtuemart.net/index.php?topic=79799.0
royalkoashomes.com
this is the URL
please check an give me right solution
You have JavaScript issues with your Joomla mega manu script. Errors:
IE10:
SCRIPT5007: Unable to get property 'className' of undefined or null reference
dropdownMenu.js, line 117 character 4
Firefox20
TypeError: element is null
if(element.className == 'menu_round') dropdownMenu.js line 117
This error prevents other conflicts from being identified. This may help http://forum.virtuemart.net/index.php?topic=111843.0
Quote from: jenkinhill on May 07, 2013, 09:43:48 AM
You have JavaScript issues with your Joomla mega manu script. Errors:
IE10:
SCRIPT5007: Unable to get property 'className' of undefined or null reference
dropdownMenu.js, line 117 character 4
Firefox20
TypeError: element is null
if(element.className == 'menu_round') dropdownMenu.js line 117
This error prevents other conflicts from being identified. This may help http://forum.virtuemart.net/index.php?topic=111843.0
I couldn't understand what's going wrong with it.
can you please solve for me i am give you this file and please solve this
it will be g8 help for me
/* OT Document JAVASCRIPT for MENU DROPDOWN */
if (typeof(MooTools) != 'undefined') {
var subnav = new Array();
Element.implement(
{
hide: function(timeout)
{
this.status = 'hide';
clearTimeout(this.timeout);
if (timeout) {
this.timeout = setTimeout(this.anim.bind(this), timeout);
} else {
this.anim();
}
},
show: function(timeout)
{
this.status = 'show';
clearTimeout(this.timeout);
if (timeout) {
this.timeout = setTimeout(this.anim.bind(this), timeout);
} else {
this.anim();
}
},
set_Active: function()
{
this.className += ' sfhover';
},
setDeactive: function() {
this.className = this.className.replace(new RegExp(' sfhover\\b'), '');
},
anim: function()
{
if ((this.status == 'hide' && this.style.left != 'auto') || (this.status == 'show' && this.style.left == 'auto' && !this.hidding)) return;
this.setStyle('overflow', 'hidden');
if (this.status == 'show') {
this.hidding = 0;
this.hideAll();
}
if (this.status == 'hide') {
this.hidding = 1;
this.myFx2.cancel();
if (this.parent._id) {
this.myFx2.start('width', this.offsetWidth, 0);
} else {
this.myFx2.start('height', this.offsetHeight, 0);
}
} else {
this.setStyle('left', 'auto');
this.myFx2.cancel();
if (this.parent._id) this.myFx2.start('width', 0, this.mw);
else this.myFx2.start('height', 0, this.mh);
}
},
init: function()
{
this.mw = this.clientWidth;
this.mh = this.clientHeight;
this.myFx2 = new Fx.Tween(this, {
duration: 400,
link: 'cancel'
});
if (this.parent._id) {
this.myFx2.set('width',0);
} else {
this.myFx2.set('height',0);
}
this.setStyle('left', '-999em');
animComp = function()
{
if (this.status == 'hide') {
this.setStyle('left', '-999em');
this.hidding = 0;
}
this.setStyle('overflow', '');
}
this.myFx2.addEvent('onComplete', animComp.bind(this));
},
hideAll: function()
{
for (var i = 0; i < subnav.length; i++) {
if (!this.isChild(subnav[i])) {
subnav[i].hide(0);
}
}
},
isChild: function(_obj)
{
obj = this;
while (obj.parent) {
if (obj._id == _obj._id) {
return true;
}
obj = obj.parent;
}
return false;
}
});
var DropdownMenu = new Class({
initialize: function(element)
{
//if(element.hasClass('menu_round'))
if(element.className == 'menu_round')
{
$A($(element).childNodes).each(function(el){
//if(el.hasClass('menu_mid')){
if(el.className == 'menu_mid'){
$A($(el).childNodes).each(function(el_1){
if(el_1.nodeName.toLowerCase() == 'ul'){
elm = $(el_1);
}
});
}
});
}
else
{
elm = $(element);
}
$A($(elm).childNodes).each(function(el_2){
if (el_2.nodeName.toLowerCase() == 'li') {
$A($(el_2).childNodes).each(function(el_3) {
//if (el_3.hasClass('menu_round')) {
if (el_3.className == 'menu_round') {
$(el_3)._id = subnav.length + 1;
$(el_3).parent = $(element);
subnav.push($(el_3));
el_3.init();
el_2.addEvent('mouseenter', function() {
el_2.set_Active();
el_3.show(0);
return false;
});
el_2.addEvent('mouseleave', function() {
el_2.setDeactive();
el_3.hide(20);
});
new DropdownMenu(el_3);
el_2.hasSub = 1;
}
});
if (!el_2.hasSub) {
el_2.addEvent('mouseenter', function() {
el_2.set_Active();
return false;
});
el_2.addEvent('mouseleave', function() {
el_2.setDeactive();
});
}
}
});
return this;
}
});
window.addEvent('domready', function() {
new DropdownMenu(document.getElement('#ot-mainmenu ul.level0'));
//$$('ul.hascolumn').each(function(item){
//item.setStyle('width', (item.childNodes).length * 225);
//});
});
} else {
sfHover = function()
{
var sfEls = document.getElementById("ot-mainmenu").getElementsByTagName("li");
for (var i = 0; i<sfEls.length; ++i) {
sfEls[i].onmouseover = function() {
this.className += " sfhover";
}
sfEls[i].onmouseout = function() {
this.className = this.className.replace(new RegExp(" sfhover\\b"), "");
}
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
}
/* +++++++++++++++ End +++++++++++++++++++ */
That is nothing to do with VirtueMart, it just stops VM from working properly. Ask the supplier of the menu module or your Joomla template supplier. Alternatively post in the commercial jobs board http://forum.virtuemart.net/index.php?board=18.0 or http://jobs.virtuemart.net/
Quote from: jenkinhill on May 08, 2013, 09:53:05 AM
That is nothing to do with VirtueMart, it just stops VM from working properly. Ask the supplier of the menu module or your Joomla template supplier. Alternatively post in the commercial jobs board http://forum.virtuemart.net/index.php?board=18.0 or http://jobs.virtuemart.net/
hmm
ok
thanks for your help