- Posts: 7
- Thank you received: 0
error on page
-
ZR
Inactive member - New Member
Less
More
12 years 4 months ago #21365
by ZR
Replied by ZR on topic error on page
Hi Ivan,
I got two error message on my webpage and unable to load content slot 2,3 and so on onto my webpage. May I know how to fix this? I have look at the previous post, however I'm still unable to fix this. Your kind assistance please, thank you.
I got two error message on my webpage and unable to load content slot 2,3 and so on onto my webpage. May I know how to fix this? I have look at the previous post, however I'm still unable to fix this. Your kind assistance please, thank you.
Attachment Errormessage.JPG not found
Attachments:
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 4 months ago - 12 years 4 months ago #21370
by ivan.milic
Replied by ivan.milic on topic error on page
What is template you are using? It says problem is in mootools.js HOT accordion does not use it at all.
Last edit: 12 years 4 months ago by ivan.milic.
Please Log in to join the conversation.
-
ZR
Inactive member - New Member
Less
More
- Posts: 7
- Thank you received: 0
12 years 4 months ago #21376
by ZR
Replied by ZR on topic error on page
Hi,
Thanks for the quick response, I'm using template that is bought from other website. Please advice on how to fix tis?, thank you.
Thanks for the quick response, I'm using template that is bought from other website. Please advice on how to fix tis?, thank you.
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 4 months ago #21381
by ivan.milic
Replied by ivan.milic on topic error on page
Ok i need to see that page , send me access login using "Report To Moderator"
Please Log in to join the conversation.
-
ZR
Inactive member - New Member
Less
More
- Posts: 7
- Thank you received: 0
12 years 4 months ago #21389
by ZR
Replied by ZR on topic error on page
Hi Ivan,
Thank for your help. I have sent the acess login via report to moderator.
Thank for your help. I have sent the acess login via report to moderator.
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 4 months ago #21394
by ivan.milic
Replied by ivan.milic on topic error on page
First this is not related to accordion module, but we will help you this time and only this time regarding this problem.
Open:
/templates/jm-wellness-cosmetics/lib/js/template_scripts.js
at start you will see:
wrapp that with try.. catch like this:
Open:
/templates/jm-wellness-cosmetics/lib/js/template_scripts.js
at start you will see:
Code:
if($('stylearea')){
$('style_icon-1').addEvent('click', function(e) {
Uncaught TypeError: Object [object Object] has no method 'addEvent'
e = new Event(e).stop();
if (style_1) style_1.remove();
var file = $template_path+'/css/style1.css';
new Asset.css(file, {id: 'style1'});
style_1 = $('style1');
new Cookie.set('jm_style_wellness_cosmetics','1',{duration: 200,path: "/"});
});
$('style_icon-2').addEvent('click', function(e) {
e = new Event(e).stop();
if (style_2) style_2.remove();
var file = $template_path+'/css/style2.css';
new Asset.css(file, {id: 'style2'});
style_2 = $('style2');
new Cookie.set('jm_style_wellness_cosmetics','2',{duration: 200,path: "/"});
});
$('style_icon-3').addEvent('click', function(e) {
e = new Event(e).stop();
if (style_3) style_3.remove();
var file = $template_path+'/css/style3.css';
new Asset.css(file, {id: 'style3'});
style_3 = $('style3');
new Cookie.set('jm_style_wellness_cosmetics','3',{duration: 200,path: "/"});
});
$('style_icon-4').addEvent('click', function(e) {
e = new Event(e).stop();
if (style_4) style_4.remove();
var file = $template_path+'/css/style4.css';
new Asset.css(file, {id: 'style4'});
style_4 = $('style4');
new Cookie.set('jm_style_wellness_cosmetics','4',{duration: 200,path: "/"});
});
}
});
wrapp that with try.. catch like this:
Code:
try{
if($('stylearea')){
$('style_icon-1').addEvent('click', function(e) {
Uncaught TypeError: Object [object Object] has no method 'addEvent'
e = new Event(e).stop();
if (style_1) style_1.remove();
var file = $template_path+'/css/style1.css';
new Asset.css(file, {id: 'style1'});
style_1 = $('style1');
new Cookie.set('jm_style_wellness_cosmetics','1',{duration: 200,path: "/"});
});
$('style_icon-2').addEvent('click', function(e) {
e = new Event(e).stop();
if (style_2) style_2.remove();
var file = $template_path+'/css/style2.css';
new Asset.css(file, {id: 'style2'});
style_2 = $('style2');
new Cookie.set('jm_style_wellness_cosmetics','2',{duration: 200,path: "/"});
});
$('style_icon-3').addEvent('click', function(e) {
e = new Event(e).stop();
if (style_3) style_3.remove();
var file = $template_path+'/css/style3.css';
new Asset.css(file, {id: 'style3'});
style_3 = $('style3');
new Cookie.set('jm_style_wellness_cosmetics','3',{duration: 200,path: "/"});
});
$('style_icon-4').addEvent('click', function(e) {
e = new Event(e).stop();
if (style_4) style_4.remove();
var file = $template_path+'/css/style4.css';
new Asset.css(file, {id: 'style4'});
style_4 = $('style4');
new Cookie.set('jm_style_wellness_cosmetics','4',{duration: 200,path: "/"});
});
}
});
}catch(e){}
Please Log in to join the conversation.
Time to create page: 0.093 seconds