Forum Moderators: open

Message Too Old, No Replies

error: object doesn't support this property or method

         

skagoogee

3:35 am on Oct 3, 2005 (gmt 0)

10+ Year Member



Line 9 is getting the error message. Here is the code starting w/ line 8...

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

Thanks for your help!

Bernard Marx

7:47 am on Oct 3, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This is a Dreamweaver function.
Perhaps you should write to Macromedia, and ask them to debug their code!

skagoogee

5:39 am on Oct 7, 2005 (gmt 0)

10+ Year Member



Perhaps....but isn't there a ways I can remove the bogus code manually? Is this code proprietary and un-editable?

Bernard Marx

7:20 am on Oct 7, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have a feeling that it may be technically uneditable, from a legal standpoint. That's not really the issue though.

Unless you have changed it, there is nothing wrong with it. It has been used on millions of websites for a number of years. Perhaps the error is really somewhere else.

Anyway, the chances are you can probably just use document.getElementById() instead.