problem about codecharge-Collection of common programming errors


  • Shadow Wizard
    javascript jquery codecharge
    This is a script that is generated by CodeCharge (code generator) as part of my app (well, also by Artisteer designs, apparently). I have very little knowledge of web development, zero knowledge of JS and I have to use this code generator. The script keeps coming up with this error: “Line: 139, Char: 13, Error: Unable to get property ‘parent’ of undefined or null reference, Code:0, URL: ). Like I was saying, I have no control upon generation of this script, but I can go and modify it, to hopefully fix this. Below is the full script. Line 139 is:var s = c.parent().children(‘.art-layout-cell:not(.art-content)’);This is full script:/* begin Page */ /* Created by Artisteer v3.1.0.55575 */ // css helper (function($) {var data = [{str:navigator.userAgent,sub:’Chrome’,ver:’Chrome’,name:’chrome’},{str:navigator.vendor,sub:’Apple’,ver:’Version’,name:’safari’},{prop:window.opera,ver:’Opera’,name:’opera’},{str:navigator.userAgent,sub:’Firefox’,ver:’Firefox’,name:’firefox’},{str:navigator.userAgent,sub:’MSIE’,ver:’MSIE’,name:’ie’}];for (var n=0;n 7) return;jQuery(‘ul.art-hmenu>li:not(:first-child)’).each(function () { jQuery(this).prepend(‘ ‘); });if (!jQuery.browser.msie || parseInt(jQuery.browser.version) > 6) return;jQuery(‘ul.art-hmenu li’).each(function () {this.j = jQuery(this);this.UL = this.j.children(‘ul:first’);if (this.UL.length == 0) return;this.A = this.j.children(‘a:first’);this.onmo

Originally posted 2013-11-06 03:33:35.