- Posts: 14
- Thank you received: 1
Fixing errors in template and modules
-
gregy1403
Inactive member - Topic Author
- New Member
Less
More
13 years 3 months ago #11122
by gregy1403
Fixing errors in template and modules was created by gregy1403
Hi guys
After checking error console in FF i received following errors
Error: $(arguments).style is undefined
Source File: www.smartinsko-jezero.si/templates/hot_d.../js/equal_heights.js
Line: 10
Error: $ is not a function
Source File: www.smartinsko-jezero.si/templates/hot_d.../js/equal_heights.js
Line: 7
Error: $jScroller.config.obj.child is undefined
Source File: www.smartinsko-jezero.si/modules/mod_hot.../js/jscroller-0.4.js
Line: 61
any idea or help?
Thank you
After checking error console in FF i received following errors
Error: $(arguments).style is undefined
Source File: www.smartinsko-jezero.si/templates/hot_d.../js/equal_heights.js
Line: 10
Error: $ is not a function
Source File: www.smartinsko-jezero.si/templates/hot_d.../js/equal_heights.js
Line: 7
Error: $jScroller.config.obj.child is undefined
Source File: www.smartinsko-jezero.si/modules/mod_hot.../js/jscroller-0.4.js
Line: 61
any idea or help?
Thank you
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
13 years 2 months ago #11144
by ivan.milic
Replied by ivan.milic on topic Re: Fixing errors in template and modules
Open that file "equal_heights.js" , and replace $ with jQuery everywhere(use exact case: jQuery).
Please Log in to join the conversation.
-
gregy1403
Inactive member - Topic Author
- New Member
Less
More
- Posts: 14
- Thank you received: 1
13 years 2 months ago - 13 years 2 months ago #11147
by gregy1403
Replied by gregy1403 on topic Re: Fixing errors in template and modules
you meant like this?
Error console says
Error: jQuery(arguments).style is undefined
Source File: www.smartinsko-jezero.si/templates/hot_d.../js/equal_heights.js
Line: 10
Code:
for (var i=0;i<this.num;i++) if (!jQuery(arguments[i])) return;
Error console says
Error: jQuery(arguments).style is undefined
Source File: www.smartinsko-jezero.si/templates/hot_d.../js/equal_heights.js
Line: 10
Last edit: 13 years 2 months ago by gregy1403.
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
13 years 2 months ago #11153
by ivan.milic
Replied by ivan.milic on topic Re: Fixing errors in template and modules
find this line:
for (var i=0;i<this.num;i++) jQuery(arguments).style.height = this.maxh+"px";
and
change it to this:
for (var i=0;i<this.num;i++){
if(typeof arguments == "string"){
jQuery("#" + arguments).innerHeight(this.maxh);
}else{
jQuery(arguments).innerHeight(this.maxh);
}
}
for (var i=0;i<this.num;i++) jQuery(arguments).style.height = this.maxh+"px";
and
change it to this:
for (var i=0;i<this.num;i++){
if(typeof arguments == "string"){
jQuery("#" + arguments).innerHeight(this.maxh);
}else{
jQuery(arguments).innerHeight(this.maxh);
}
}
Please Log in to join the conversation.
-
gregy1403
Inactive member - Topic Author
- New Member
Less
More
- Posts: 14
- Thank you received: 1
13 years 2 months ago #11163
by gregy1403
Replied by gregy1403 on topic Re: Fixing errors in template and modules
thanx .. seems like this error is solved .. can you please take a look at this one?
Error: $jScroller.config.obj.child is undefined
Source File: www.smartinsko-jezero.si/modules/mod_hot.../js/jscroller-0.4.js
Line: 61
Thank you
Error: $jScroller.config.obj.child is undefined
Source File: www.smartinsko-jezero.si/modules/mod_hot.../js/jscroller-0.4.js
Line: 61
Thank you
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
13 years 2 months ago #11170
by ivan.milic
Replied by ivan.milic on topic Re: Fixing errors in template and modules
Hi,
open that file and find:
pause: function(obj,status) {
if (obj && typeof status !== 'undefined') {
for (var i in $jScroller.config.obj) {
if ($jScroller.config.obj.child.attr("id") === obj.attr("id")) {
$jScroller.config.obj.pause = status;
}
}
}
},
modify it to:
pause: function(obj,status) {
if (obj && typeof status !== 'undefined') {
for (var i in $jScroller.config.obj) {
if($jScroller.config.obj.child)
if ($jScroller.config.obj.child.attr("id") === obj.attr("id")) {
$jScroller.config.obj.pause = status;
}
}
}
},
open that file and find:
pause: function(obj,status) {
if (obj && typeof status !== 'undefined') {
for (var i in $jScroller.config.obj) {
if ($jScroller.config.obj.child.attr("id") === obj.attr("id")) {
$jScroller.config.obj.pause = status;
}
}
}
},
modify it to:
pause: function(obj,status) {
if (obj && typeof status !== 'undefined') {
for (var i in $jScroller.config.obj) {
if($jScroller.config.obj.child)
if ($jScroller.config.obj.child.attr("id") === obj.attr("id")) {
$jScroller.config.obj.pause = status;
}
}
}
},
Please Log in to join the conversation.
Time to create page: 0.096 seconds