Jump to content

WebUI v0.315


Directrix

Recommended Posts

  • Replies 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

Hi! in new version Opera 9.50 webUI is not working :(

Log:

--------------------------------------------------------------------------------^

JavaScript - http://*.*.*.*:*/gui/

Event thread: DOMContentLoaded

Error:

name: TypeError

message: Statement on line 1: Cannot convert undefined or null to Object

Backtrace:

Line 1 of linked script http://*.*.*.*:*/gui/stable.js

function(){var i,aRows,aAlign,j;aAlign=new Array();for(i=0;i<this.cols;i++){switch(this.colsdata.align){case ALIGN_LEFT:align="left";break;case ALIGN_CENTER:align="center";break;case ALIGN_RIGHT:align="right";break;case ALIGN_AUTO:default:switch(this.colsdata.type){case TYPE_NUMBER:align="right";break;default:align="left";}}aAlign.push(align);}for(i=0,j=0;i<this.cols;i++){this.tHeadCols.style.textAlign=aAlign;}var _9c=this.tBody.getElementsByTagName("colgroup")[0].getElementsByTagName("col");var _9d=_9c.length;if(document.all||browser.isAppleWebKit){for(var i=0;i<_9d;i++){_9c.align=aAlign;}}else{var ss=null,rules=null;for(var n=0,l=document.styleSheets.length;n<l;n++){if(document.styleSheets[n].href.indexOf("stable.css")==-1){continue;}ss=document.styleSheets[n];rules=ss.cssRules;}if(rules==null){return;}if(typeof this.colRules=="undefined"){this.colRules=new Array();}for(var j=0;j<_9d;j++){var k=this.colOrder[j];if(!this.colRules[k]){for(var i=0,l=rules.length;i<l;i++){if((rules.type==CSSRule.STYLE_RULE)&&(rules.selectorText==".stable-"+this.dCont.id+"-col-"+k)){this.colRules[k]=rules;break;}}}if(typeof this.colRules[k]!="undefined"){this.colRules[k].style.textAlign=aAlign[j];}else{this.colRules[k]=ss.insertRule(".stable-"+this.dCont.id+"-col-"+k+" div { text-align: "+aAlign[j]+" };",0);}}}}

Line 1 of linked script http://*.*.*.*:*/gui/stable.js

function(){if(navigator.product=="Gecko"){for(var n=0,l=document.styleSheets.length;n<l;n++){if(document.styleSheets[n].href.indexOf("style.css")==-1){continue;}var _55=document.styleSheets[n].cssRules;for(var i=0;i<_55.length;i++){if((_55.type==CSSRule.STYLE_RULE)&&(_55.selectorText==".stable-head")){_55.style.overflow="-moz-scrollbars-none";}}}}this.assignEvents();this.setAlignment();}

Line 1 of linked script http://*.*.*.*:*/gui/stable.js

function(_2,_3){var tr,td,cl,cg,div;this.dCont=_2;this.dHead=ELE_DIV.cloneNode(true);this.dBody=ELE_DIV.cloneNode(true);this.dCont.className="stable";this.dHead.className="stable-head";this.dBody.className="stable-body";this.dCont.appendChild(this.dHead);this.dCont.appendChild(this.dBody);this.tHead=ELE_TABLE.cloneNode(true);this.tHead.style.width="100px";this.tHead.cellSpacing=0;this.tHead.cellPadding=0;this.dHead.appendChild(this.tHead);this.tHead.tb=ELE_TBODY.cloneNode(true);this.tHead.appendChild(this.tHead.tb);tr=ELE_TR.cloneNode(true);this.tHead.tb.appendChild(tr);var _5=this,span;addEvent(window,"unload",function(){_5.clearRows();});var j=0;for(var i=0,l=_3.length;i<l;i++){if(typeof this.colOrder=="undefined"){this.colOrder=i;}if(typeof _3[this.colOrder].enabled=="undefined"){_3[this.colOrder].enabled=true;}this.cols++;this.colsdata=_3[this.colOrder];if(!_3[this.colOrder].enabled){continue;}td=ELE_TD.cloneNode(true);tr.appendChild(td);td.onmousemove=function(e){if(_5.isResizing){return;}e=FixEvent(e);var x=mouse.X-getOffsetLeft(this)+_5.dBody.scrollLeft;this.lastMouseX=e.clientX;var w=this.offsetWidth;var i=parseInt(this.getAttribute("index"));if(x<=8){if(i!=0){_5.hotCell=i-1;this.style.cursor="e-resize";}else{_5.hotCell=-1;this.style.cursor="default";}}else{if(x>=w-1){_5.hotCell=i;this.style.cursor="e-resize";}else{_5.hotCell=-1;this.style.cursor="default";}}};span=ELE_DIV.cloneNode(true);span.innerHTML=_3[this.colOrder].text;td.appendChild(span);td.style.width=(_3[this.colOrder].width)?_3[this.colOrder].width:"auto";td.setAttribute("index",i);this.colMove.init(td,preventSort,null,moveColumn);addEvent(td,"mouseup",function(e){_5.Sort(e,this);});this.tHeadCols=td;j++;}this.tBody=ELE_TABLE.cloneNode(true);this.tBody.style.width="0";this.tBody.cellSpacing=0;this.tBody.cellPadding=0;this.tpad=ELE_DIV.cloneNode(true);this.tpad.className="stable-virtpad";this.dBody.appendChild(this.tpad);this.dBody.appendChild(this.tBody);this.bpad=ELE_DIV.cloneNode(true);this.bpad.className="stable-virtpad";this.dBody.appendChild(this.bpad);this.tBody.tb=ELE_TBODY.cloneNode(true);this.tBody.appendChild(this.tBody.tb);cg=ELE_COLGROUP.cloneNode(true);this.tBody.appendChild(cg);for(var i=0,l=_3.length,j=0;i<l;i++){if(!_3[this.colOrder].enabled){continue;}cl=ELE_COL.cloneNode(true);cl.style.width=(this.colsdata.width)?this.colsdata.width:"auto";cg.appendChild(cl);this.tBodyCols[j]=cl;j++;}this.scp=ELE_SPAN.cloneNode(true);this.scp.className="stable-scrollpos";this.dCont.appendChild(this.scp);this.dCont.style.position="relative";this.init();}

Line 1 of linked script http://*.*.*.*:*/gui/script.js: In function init

function init(){if(arguments.callee.done){return;}arguments.callee.done=true;if(_timer){clearInterval(_timer);}log("WebUI started.");if((browser.isIE&&(!browser.isIE7x||!browser.isIE7up))||browser.isAppleWebkit){$("msg").innerHTML="The WebUI<sup>BETA</sup> does not support your browser.";return;}document.title="\xb5Torrent WebUI v"+version;Key.onKeyDown=keyDown;window.onresize=function(e){if(browser.isIE&&(resizing==false)){if(resizeTimeout!=null){window.clearTimeout(resizeTimeout);}resizeTimeout=window.setTimeout("resizeUI()",500);}else{resizeUI();}};ContextMenu.init("ContextMenu");if(browser.isIE&&!browser.isIE7x){$("List").style.width="99%";}utWebUI.init();var o=$("stg_c");o.innerHTML=stgHtml;utWebUI.getSettings(false);utWebUI.config();var _3=new Array();var _4=[{"text":"Name","width":"200px","type":TYPE_STRING},{"text":"Status","width":"100px","type":TYPE_STRING},{"text":"Size","width":"60px","type":TYPE_NUMBER},{"text":"Done","width":"80px","type":TYPE_NUMBER},{"text":"Downloaded","width":"100px","type":TYPE_NUMBER},{"text":"Uploaded","width":"80px","type":TYPE_NUMBER},{"text":"Ratio","width":"60px","type":TYPE_NUMBER},{"text":"DL","width":"60px","type":TYPE_NUMBER},{"text":"UL","width":"60px","type":TYPE_NUMBER},{"text":"ETA","width":"60px","type":TYPE_NUMBER},{"text":"Label","width":"60px","type":TYPE_STRING},{"text":"Peers","width":"60px","type":TYPE_NUMBER},{"text":"Seeds","width":"60px","type":TYPE_NUMBER},{"text":"Avail.","width":"60px","type":TYPE_NUMBER},{"text":"#","width":"30px","type":TYPE_NUMBER,"align":ALIGN_LEFT},{"text":"Remaining","width":"90px","type":TYPE_NUMBER}];if($_COOKIE["webui.trt.colwidth"]!=null){_3=$_COOKIE["webui.trt.colwidth"];for(var i=0,l=_3.length;i<l;i++){_4.width=_3+"px";}}var ol=$("List");utWebUI.trtTable.format=FormatTL;utWebUI.trtTable.create(ol,_4);utWebUI.trtTable.reverse=utWebUI.trtSortR;var aB=[{"text":"Name","width":"200px","type":TYPE_STRING},{"text":"Size","width":"60px","type":TYPE_NUMBER,"align":ALIGN_RIGHT},{"text":"Done","width":"80px","type":TYPE_NUMBER},{"text":"%","width":"100px","type":TYPE_NUMBER},{"text":"Priority","width":"80px","type":TYPE_NUMBER}];if($_COOKIE["webui.fls.colwidth"]!=null){_3=$_COOKIE["webui.fls.colwidth"];for(var i=0;i<5;i++){if(iv(_3)==0){continue;}aB.width=_3+"px";}}var fl=$("FileList");utWebUI.flsTable.format=FormatFL;utWebUI.flsTable.create(fl,aB);utWebUI.flsTable.reverse=utWebUI.flsSortR;Update();resizeUI();$("query").onkeydown=function(e){if(!e){e=window.event;}var k=e.keyCode||e.which;if(k==13){Search();}};stimer=window.setInterval("UpdateStatus()",100);Drag.mask=$("dragmask");var ww=getWindowWidth(),wh=getWindowHeight();Drag.init($("stg_h"),$("stg"),0,ww,0,wh,true);Drag.init($("tadd_h"),$("tadd"),0,ww,0,wh,true);Drag.init($("dlgProps-header"),$("dlgProps"),0,ww,0,wh,true);Drag.init($("dlgAbout-header"),$("dlgAbout"),0,ww,0,wh,true);Drag.init($("dlgRss-header"),$("dlgRss"),0,ww,0,wh,true);Drag.init($("dlgLabel-header"),$("dlgLabel"),0,ww,0,wh,true);Drag.init($("dlgDelTor-header"),$("dlgDelTor"),0,ww,0,wh,true);window.setTimeout(ShowUI,1000);var d=$("HDivider");d.onmousedown=function(e){e=FixEvent(e);this.lastX=e.clientX;smm=addEvent(document,"mousemove",function(e){SepMove(e,0);});smu=addEvent(document,"mouseup",function(e){SepUp(e,0);});};d=$("VDivider");d.onmousedown=function(e){e=FixEvent(e);this.lastY=e.clientY;smm=addEvent(document,"mousemove",function(e){SepMove(e,1);});smu=addEvent(document,"mouseup",function(e){SepUp(e,1);});};tdTabs.show("gcont");}

...

stacktrace: n/a; see 'opera:config#UserPrefs|Exceptions Have Stacktrace'

Link to comment
Share on other sites

jewelisheaven

We awake to wait for the new version...

Very strongly it would be desirable that function Pause ALL torrents and Resume ALL torrents were present.... Convenient function for fast liberation of speed of a stream for other appointments.

Link to comment
Share on other sites

bugs.utorrent.com redirected to utbugs.leetwebhosting.com which is down so I will make my bug report here.

Just as I reported in February, the same mistake was made:

.insertRule('cssRule { ... };'

You are attempting to insert invalid css using insertRule. Following the spec, Safari and Opera throw a SYNTAX_ERR exception when the rule has a syntax error or is otherwise unparsable.

This is on line 999 of the prettified stable.js. To find it in the compressed version, just search for

};'

and remove the semicolon.

Here is a fixed version that works in Safari and Opera.

Keep in mind it is 1 character different from the original. In stable.js, the 20,882nd character (a semicolon) is removed.

Again I would like to offer my services in the javascript department. I see a lot of room for improvement and optimization.

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...
  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...