Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
New Contributor
neeraj_singh809
Posts: 9
Registered: ‎01-31-2011
My Device: blackberry-SDK-9550

Script Error on my Browser in Blackberry

hii all i have a error occurred on my own browser .

error is occurred when i debug my application on emulater.

error are shown in below.

ThrownValue in ExecuteScript TypeError: Cannot convert 'undefined' to an object.
Running  at line    2: b=i.length;.
Called from line    1: (function(){var b,d,e,f;function g(a,c){if(a.removeEventListener){a.removeEventListener("load",c,false);a.removeEventListener("error",c,false)}else{a.detachEvent("onload",c);a.detachEvent("onerror",c)} }function h(a){f=(new Date).getTime();++d;a=a||window.event;var c=a.target||a.srcElement;g(c,h)}var i=document.getElementsByTagName("img");b=i.length;d=0;for(var j=0,k;j<b;++j){k=i[j];if(k.complete||typeof k.src!="string"||!k.src)++d;else if(k.addEventListener){k.addEventListener("load",h,false);k.addEventListener("error",h,false)}else{k.attachEvent("onload",h);k.attachEvent("onerror",h)} }e=b-d;function l(){if(!google.timers.load.t)return;google.timers.load.t.ol=(new Date).getTime();google.timers.load.t.iml=f;google.kCSI.imc=d;google.kCSI.imn=b;google.kCSI.imp=e;google.timers.load.t.xjs&&google.report&&google.report(google.timers.load,google.kCSI)}if(window.addEventListener)window.addEventListener("load",l,false);else if(window.attachEvent)window.attachEvent("onload",l);google.timers.load.t.prt=(f=(new Date).getTime() );})();.

 

but when i click on IGoogle it gives Illegal State Exception & when i Click on Maps it gives Class Cast Exception & when i click on images it opens the image but when i click on particular image it gives Illegal State Exception.

 

 

My browser Code are here----

http://supportforums.blackberry.com/t5/Java-Development/ThrownValue-in-ExecuteScript-TypeError-in-bl...

Please use plain text.