Hi all experts,
I've "object doesn't support this property or method" error when running a Javascript on Internet Explorer 8 This is the statement that is having the error:-
this.nodes=(nod e.obj.draw(0,0, this.getp(node, "width","100%") ,0,this.getp(no de,"bgcolor",0) ,0,(1000-this.num),this. getp(node,"div_ class",0),s));
}
Please kindly advise on this error can be fixed please
Thank you very much
Below is my full javascript program:- - bw=new Browser();
-
function SoftDrawerTree(name,def){
-
this.def=def;this.format=def.format;this.name=name;this.num=0;this.anim_ref=0;this.id='SDTree'+name;
-
this.nodes=[];this.root={id:name+"_i"};this.root.level_format=this.format;
-
this.root.format=this.format;
-
this.root.sub=def.sub;eval("window."+this.id+"=this");
-
if (!bw) bw=new Browser();
-
this.init=function(){
-
this.code='';
-
this.back=new DHTMLObject(this.name+'_back');
-
this._init(null,this.root,-1,0);
-
if (!this.format.no_images) {var f=this.format;pldImg([f.e_image,f.c_image])};
-
document.write(this.back.draw(this.format.left,this.format.top,this.format.width,this.format.height,this.getp(this.root,"back_bgcolor",0),0,1,this.getp(this.root,"back_class",0),this.code,0)+this.wm_code());
-
this.back.init();if (this.format.dont_resize_back)this.back.show();
-
};
-
this._init=function(parent,node,lvl,num){
-
if(!node) return; node.parent=parent; node.id=node.id||node.parent.id+"_"+num;node.lvl=lvl;node.ind=(this.num++)-1;
-
if(node!=this.root){
-
this.nodes[node.id]=node;var s=this.init_item(node);
-
node.obj=new DHTMLObject(node.id);
-
this.nodes=(node.obj.draw(0,0,this.getp(node,"width","100%"),0,this.getp(node,"bgcolor",0),0,(1000-this.num),this.getp(node,"div_class",0),s));
-
}
-
if(node.sub) for(var i=0;i<node.sub.length;i++) this._init(node,node.sub[i], lvl+1,i);
-
};
-
this.wm_code=function(){
-
this.wm=new DHTMLObject(this.name+'_wm');
-
return this.wm.draw(this.format.left,this.format.top+this.format.height+2,this.format.width,12,0,1,2,0,(bw.ns4?'<font face="Verdana, sans-serif" color=silver point-size=6>':'<div style="font-size:1px;color:white;">')+unescape('%53%6F%66%74%44%72%61%77%65%72%20%6A%73%54%72%65%65')+(bw.ns4?'</font>':'</div>'));
-
};
-
this.getp=function(n,name,def,nf){return this.format[name]||def};
-
this.indent_code=function(n){
-
var indent=this.getp(n,"indent",parseInt(this.format.level_indent||16)*n.lvl-this.getp(n,"padding",0))||0;
-
return n.lvl&&indent?'<td><img src="'+this.format.b_image+'" width="'+indent+'" height="1"></td>':'';
-
};
-
this.init_item=function(n){
-
var tc=this.getp(n,"table_class",0);
-
var s='<table width="'+this.getp(n,"width","100%")+'" cellpadding="'+this.getp(n,"padding",0)+'" cellspacing="'+this.getp(n,"spacing",0)+'" border="0"'+(tc?' class="'+tc+'"':'')+'><tr>';
-
s+=this.indent_code(n);
-
var img=this.getp(n,(n.sub?n.exp?"e":"c":"i")+"_image",this.format.b_image);
-
var sz=this.getp(n,"img_size",[30,15]);
-
s+=!this.getp(n,"no_images",0)?'<td>'+(n.sub?'<a onclick="if(this.blur)this.blur()" href="javascript:Toggle(\''+this.name+'\',\''+n.id.substr(this.name.length+3)+'\',0)">':'')+'<img '+(bw.ns4?'name="'+n.id+'_img" ':'')+'id="'+n.id+'_img" src="'+img+'" width="'+sz[0]+'" height="'+sz[1]+'" border="0"/>'+(n.sub?'</a>':'')+'</td>':'';
-
var bgc=this.getp(n,"item_bgcolor",0);bgc=bgc?' bgcolor="'+bgc+'"':' ';
-
var targ=n.target||this.format.target||0;
-
tc=this.getp(n,"item_class",0);var lc=this.getp(n,"link_class",0);
-
var hr='Toggle(\''+this.name+'\',\''+n.id.substr(this.name.length+3)+'\',1)';
-
s+='<td width="100%"'+bgc+(tc?'class="'+tc+'"':'')+'><a '+(lc?'class="'+lc+'"':'')+'href="'+(n.url||'javascript:'+(n.sub?hr:'void(0)'))+'" onclick="if(this.blur)this.blur();'+(n.sub&&n.url?'Toggle(\''+this.name+'\',\''+n.id.substr(this.name.length+3)+'\',1)':'')+'"'+(targ?' target=':'')+'target=Main>'+n.html+'</a>'+'</td>';
-
s+="</tr></table>";
-
return s;
-
};
2 7238 Dormilich 8,658
Recognized Expert Moderator Expert
assuming the error is about node.obj.draw() you need to ensure that node & node.obj are the objects you expect. (I guess FireBug Lite will be necessary for this)
Thanks for kind advice, will try.
Do you've any recommendation how the statement below can be modified for it to work with IE8?
this.nodes=(nod e.obj.draw(0,0, this.getp(node, "widt h","100%"),0,th is.getp(node,"b gcolor",0),0,(1 00 0-this.num),this. getp(node,"div_ class",0),s));
}
Please kindly advise
Thank you very much in advance
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: KathyB |
last post by:
I have the following script in an html page:
function goToPosition()
{
varGoTo = document.write(document.cookie("Position"));
document.scrollTo(0, varGoTo);
}
</head>
<body onload="goToPosition()">
|
by: Olaf |
last post by:
I have a frameset page witch contains the myFuc() function. The
function is accessed from a page in one of the frames in the frameset.
An example is shown below.
<input onclick="javaScript:alert('document.forms(0)='+document.forms(0));
parent.myFunc(document.forms(0));" type="button" value="Open"
name="Button" ID="Button">
The strange part is that the debug alert says that the
document.forms(0) is an object så all seem to be well. But...
|
by: news.onetel.net.uk |
last post by:
I and my friend Karl have spent literally all day trying to find out what is
causing my error but we are zapped of any further functionality :)
I have a form that adds news records. You select 'City' then you select
'Business Category' - now when you select 'Business Category' the next
drop-down menu (business sub category) should populate with 'Business
Sub-categories' related to the 'Business Category' but once 'Business
Category' is...
|
by: SmittyBroham |
last post by:
Hello,
I have a function that loops through 2 select lists and records the
values of any hi-lighted options a user would have selected. It then
sets 2 corresponding "hidden" form elements to the values and submits
the form data to the server.
I was error free until I added the following line:
document.myform.submit();
|
by: Otis Hunter |
last post by:
I have been fighting with this for days and your expert help is
needed! Below is the code I am executing which results with "Object
doesn't support this property or method". The error is occuring on
the "With Me.OLEObject" line (By the way, I haven't found
documentation which explains what the "With" clause is suppose to
do?). I am trying to extract a Word document(OLE object) from an
Access database, for each record in the table, and...
| |
by: todd |
last post by:
Hi all. I inherited this code from a contractor. It is a .NET user
control that runs on the client side (ie) on machines with the
framework installed. I have been mucking around to get it work for a
couple of days now, and am growign really frustrated. I need to
expose an Import method on the ImportControl and have it accesible to
javascrip in the browser.
If I remove the InterfaceType and ClassInterface attributes, compile
and then...
|
by: den2005 |
last post by:
Hi everybody,
Problem with dragging effect of resizing is working but having problem with setting a flag to determine if mouse button is click or not. Is there anyone knows how to fixed this? I used several ways to do this as shown below, all telling me the error below. I used IE 6 w/ SP1.
The error comes from onmousedown"mousedown()".
Error message:
Microsoft JScript runtime error: Object doesn't support this property or method
|
by: hhackwell |
last post by:
Hi guys,
I'm running a simple piece of Javascript on my website to allow users to make an object appear when they want to use it.
It works fine but I keep getting this error on IE and although it still works I'd like to figure out what it's referring to so I can get rid of it:
"Object doesn't support this property or method"
Here is my code:
|
by: chetan7991 |
last post by:
I'm using a jquery plugin Galleriffic in my page and it shows perfectly in all browsers except IE. The error says: "Object doesn't support this property or method"
The code I use for script activation is:
<script type="text/javascript">
$(document).ready(function() {
var gallery = $('#thumbs').galleriffic({
delay: 3000, // in milliseconds
numThumbs: 2, // The number of thumbnails to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |