Fixing errors in template and modules

  • gregy1403
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
13 years 3 months ago #11122 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

Please Log in to join the conversation.

More
13 years 2 months ago #11144 by ivan.milic
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
  • New Member
More
13 years 2 months ago - 13 years 2 months ago #11147 by gregy1403
you meant like this?
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.

More
13 years 2 months ago #11153 by ivan.milic
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);
}
}

Please Log in to join the conversation.

  • gregy1403
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
13 years 2 months ago #11163 by gregy1403
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

Please Log in to join the conversation.

More
13 years 2 months ago #11170 by ivan.milic
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;
}
}
}
},

Please Log in to join the conversation.

Time to create page: 0.096 seconds
Powered by Kunena Forum