Richard,

I'm pretty certain you can't change table cell attributes on-the-fly in Netscape 4 regardless of DynAPI.
What I mean is even if you give a table cell in NS an ID I don't think you'll be able to access it using

myLayer.doc.tableCellId.anyAttribute

it should just fail gracefully, bbut should work OK in browsers that support it like IE.

Incidentally,

myLayer.doc.formname.formelement.value

works fine for me in NS.

Mark.
 
 

Richard Bennett wrote:

But this is .doc.all which was supposed to work, see this quote from the faq: 

6.4. Accessing form elements in layers

DynLayers can contain form elements or images, in some cases you'll need to be able to retrieve values from these form elements or set the image source. This can be done using the .doc property of a layer. This property refers to the layer's document. So to access a form in a layer this is basically how to do it:
  myLayer.doc.formname.formelement.value
or setting an image's source:
 myLayer.doc.images['imagename'].src=newsource
Note that in IE the image array is a global array, so you can't use the name "thisimage" in two different layers.

</quote>

So is the faq wrong? as I can't get this to work in NS.

Cheers,
Richard Bennett

[EMAIL PROTECTED]
www.richardinfo.com
(Everything running on, and ported to the 19/12/2000 snapshot of DynAPI2)
Find the DynAPI faq here:
http://sourceforge.net/docman/display_doc.php?docid=656&group_id=5757
Browse the mailinglist here:
http://www.mail-archive.com/index.php3?hunt=dynapi

----- Original Message -----





Sent: Thursday, February 22, 2001 11:47 AM
Subject: Re: [Dynapi-Help] Accessing layer properties in NS4
 Robin,

This has never worked in NS.
NS has no document.all property!!

I also assume that what you supplied is a cut down fragment of your code, because that is totally incorrect!!!

Try doing the same thing using the setHTML method of a dynlayer, and redraw your table inside your dynlayer onMouseOver your link. That will work.

Mark

Robin Silander wrote:

 

I am having trouble accessing some elements within my layer.

Pre-dynAPI this would work:
        <table>
                <tr><td id="myCell" bgColor="#ffffff">
                        <a href="#" #000000">

I've tried using myLayer.doc.all.myCell which works fine in IE, but can't get anything going in NS.

What am I doing wrong?

Robin Silander
Technical Developer

Realise Limited
www.realise.com

t 0131 4766000
f 0131 4766061

__________________________________________________
This electronic message contains information from Realise which may be privileged and confidential.  The information is intended to be for the use of the individual(s) or entity named above.  If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited.  If you have received this electronic message in error, please notify us by telephone on 0131 476 6000 and delete the material from your computer.

Reply via email to