Hi, I use jquery svn(like 1.2.6 i think), jquery UI svn(between RC1 and RC2, use:slider/progressbar/spinner) and latest tablesorter, they worked together well.
On Nov 4, 6:53 am, happz <[EMAIL PROTECTED]> wrote: > Hi, > > I'd like to use lastest stable version of jQuery and its amazing > jQuery UI set but I have troubles with Tablesorter plugin (http:// > tablesorter.com/docs/) I've been using older version of jQuery (1.2.3) > and tablesorter plugin worked perfectly. Can anyone tell me what am I > doing wrong? > > I get this error message (Opera 9.62, error console): > JavaScript -http://osadnici-test.happz.cz/games/ > Event thread: DOMContentLoaded > Error: > name: TypeError > message: Statement on line 32: Cannot convert undefined or null to > Object > Backtrace: > Line 32 of linked > scripthttp://osadnici-test.happz.cz/static/script/jquery2/jquery-1.2.6.min.js > function(){var > left=0,top=0,elem=this[0],results;if(elem)with(jQuery.browser){var > parent=elem.parentNode,offsetChild=elem,offsetParent=elem.offsetParent,doc=elem.ownerDocument,safari2=safari&&parseInt(version)<522&&!/ > adobeair/ > i.test(userAgent),css=jQuery.curCSS,fixed=css(elem,"position")=="fixed";if(elem.getBoundingClientRect) > {var box=elem.getBoundingClientRect();add(box.left > +Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),box.top > +Math.max(doc.documentElement.scrollTop,doc.body.scrollTop));add(- > doc.documentElement.clientLeft,- > doc.documentElement.clientTop);}else{add(elem.offsetLeft,elem.offsetTop);while(offsetParent) > {add(offsetParent.offsetLeft,offsetParent.offsetTop);if(mozilla&&!/ > ^t(able|d|h)$/i.test(offsetParent.tagName)||safari&&! > safari2)border(offsetParent);if(! > fixed&&css(offsetParent,"position")=="fixed")fixed=true;offsetChild=/ > ^body$/i.test(offsetParent.tagName)? > offsetChild:offsetParent;offsetParent=offsetParent.offsetParent;}while(parent&&parent.tagName&&!/ > ^body|html$/i.test(parent.tagName)){if(!/^inline|table.*$/ > i.test(css(parent,"display")))add(-parent.scrollLeft,- > parent.scrollTop);if(mozilla&&css(parent,"overflow")! > ="visible")border(parent);parent=parent.parentNode;}if((safari2&&(fixed|| > css(offsetChild,"position")=="absolute"))|| > (mozilla&&css(offsetChild,"position")!="absolute"))add(- > doc.body.offsetLeft,- > doc.body.offsetTop);if(fixed)add(Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),Math.max(doc.documentElement.scrollTop,doc.body.scrollTop));}results={top:top,left:left};}function > border(elem) > {add(jQuery.curCSS(elem,"borderLeftWidth",true),jQuery.curCSS(elem,"borderTopWidth",true));}function > add(l,t){left+=parseInt(l,10)||0;top+=parseInt(t,10)||0;}return > results;} > Line 23 of linked > scripthttp://osadnici-test.happz.cz/static/script/jquery2/jquery.tablesorte... > In function fixPosition > c.container.css({ > Line 102 of linked > scripthttp://osadnici-test.happz.cz/static/script/jquery2/jquery.tablesorte... > In function renderTable > fixPosition(table,tableBody); > Line 121 of linked > scripthttp://osadnici-test.happz.cz/static/script/jquery2/jquery.tablesorte... > renderTable(table,rows); > Line 273 of linked > scripthttp://osadnici-test.happz.cz/static/script/jquery2/jquery.tablesorte... > In function appendToTable > table.config.appender(table,rows); > Line 621 of linked > scripthttp://osadnici-test.happz.cz/static/script/jquery2/jquery.tablesorte... > appendToTable(this,cache); > ... Line 26 of linked > scripthttp://osadnici-test.happz.cz/static/script/jquery2/jquery-1.2.6.min.js > function(event){var > val,ret,namespace,all,handlers;event=arguments[0]=jQuery.event.fix(event|| > window.event);namespace=event.type.split(".");event.type=namespace[0];namespace=namespace[1];all=! > namespace&&!event.exclusive;handlers=(jQuery.data(this,"events")||{}) > [event.type];for(var j in handlers){var handler=handlers[j];if(all|| > handler.type==namespace) > {event.handler=handler;event.data=handler.data;ret=handler.apply(this,arguments);if(val! > ==false)val=ret;if(ret===false) > {event.preventDefault();event.stopPropagation();}}}return val;} > ... Line 25 of linked > scripthttp://osadnici-test.happz.cz/static/script/jquery2/jquery-1.2.6.min.js > function(){if(typeof jQuery!="undefined"&&! > jQuery.event.triggered)return > jQuery.event.handle.apply(arguments.callee.elem,arguments);} > ... Line 26 of linked > scripthttp://osadnici-test.happz.cz/static/script/jquery2/jquery-1.2.6.min.js > function(type,data,elem,donative,extra) > {data=jQuery.makeArray(data);if(type.indexOf("!")>=0) > {type=type.slice(0,-1);var exclusive=true;}if(!elem) > {if(this.global[type])jQuery("*").add([window,document]).trigger(type,data);}else{if(elem.nodeType==3|| > elem.nodeType==8)return undefined;var > val,ret,fn=jQuery.isFunction(elem[type]||null),event=!data[0]||! > data[0].preventDefault;if(event) > {data.unshift({type:type,target:elem,preventDefault:function() > {},stopPropagation:function(){},timeStamp:now()});data[0] > [expando]=true;}data[0].type=type;if(exclusive)data[0].exclusive=true;var > handle=jQuery.data(elem,"handle");if(handle)val=handle.apply(elem,data);if((! > fn|| > (jQuery.nodeName(elem,'a')&&type=="click"))&&elem["on"+type]&&elem["on"+type].apply(elem,data)===false)val=false;if(event)data.shift();if(extra&&jQuery.isFunction(extra)) > {ret=extra.apply(elem,val==null?data:data.concat(val));if(ret! > ==undefined)val=ret;}if(fn&&donative!==false&&val!==false&&! > (jQuery.nodeName(elem,'a')&&type=="click")) > {this.triggered=true;try{elem[type]();}catch(e) > {}}this.triggered=false;}return val;} > Line 26 of linked > scripthttp://osadnici-test.happz.cz/static/script/jquery2/jquery-1.2.6.min.js > function(){jQuery.event.trigger(type,data,this,true,fn);} > ... Line 21 of linked > scripthttp://osadnici-test.happz.cz/static/script/jquery2/jquery-1.2.6.min.js > for(var value=object[0];i<length&&callback.call(value,i,value)! > ==false;value=object[++i]){}}return object;} > Line 12 of linked > scripthttp://osadnici-test.happz.cz/static/script/jquery2/jquery-1.2.6.min.js > function(callback,args){return jQuery.each(this,callback,args);} > Line 26 of linked > scripthttp://osadnici-test.happz.cz/static/script/jquery2/jquery-1.2.6.min.js > function(type,data,fn){return this.each(function() > {jQuery.event.trigger(type,data,this,true,fn);});} > Line 150 of linked > scripthttp://osadnici-test.happz.cz/static/script/jquery2/jquery.tablesorte... > $(this).trigger("appendCache"); > ... Line 21 of linked > scripthttp://osadnici-test.happz.cz/static/script/jquery2/jquery-1.2.6.min.js > for(var value=object[0];i<length&&callback.call(value,i,value)! > ==false;value=object[++i]){}}return object;} > ... > stacktrace: n/a; see 'opera:config#UserPrefs|Exceptions Have > Stacktrace' > > Error msg in FF 3.0.3: > Error: doc.body is undefined > Source > File:http://osadnici-test.happz.cz/static/script/jquery2/jquery-1.2.6.min.js > Line: 32 > > These files I I include in html page: > <script type="text/javascript" src="/static/script/jquery2/ > jquery-1.2.6.min.js"></script> > <script type="text/javascript" src="/static/script/jquery2/jquery-ui- > personalized-1.6rc2.min.js"></script> > <script type="text/javascript" src="/static/script/jquery2/ > jquery.cookie.js"></script> > <script type="text/javascript" src="/static/script/jquery2/ > jquery.json.js"></script> > <script type="text/javascript" src="/static/script/jquery2/ > jquery.cookiejar.js"></script> > <script type="text/javascript" src="/static/script/jquery2/ > jquery.tablesorter.js"></script> > <script type="text/javascript" src="/static/script/jquery2/ > jquery.tablesorter.cookie.js"></script> > <script type="text/javascript" src="/static/script/jquery2/ > jquery.metadata.js"></script> > <script type="text/javascript" src="/static/script/jquery2/ > jquery.tablesorter.pager.js"></script> > > All files are downloaded today, all latest versions available from > their web pages. > > This is in-page code I use to create sortable tables and accordion on > same page. With or without accordion makes no difference, tables are > not sortable and error msgs are the same. > > <script type="text/javascript"> > $(document).ready(function() { > > $(".sortable").tablesorter({ > cssAsc: 'headerSortUp', > cssDesc: 'headerSortDown', > dateFormat: 'uk', > widgets: ['cookie'] > }).tablesorterPager({ > size: 30, > container: $('#tablesorterpager') > }); > $('#accordion').accordion({ > active: false, > header: '.accordion_toggle', > selectedClass: 'accordion_content', > alwaysOpen: false, > autoHeight: false, > animated: false, > clearStyle: true > }); > $('#accordion').accordion('activate', 0); > > }); > </script> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~---
