I have made this work in IE:
    <!--
        function showspan() {
                        alert(document.all.cs.colSpan);
                }
    //-->

<table>
<tr>
<td id="cs" colspan="1"></td>
</tr>
</table>

For netscape i'm not sure.


>From: "[Vaishali S. Pandya]" <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
>reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: u can not get COLSPAN in javascript
>Date: Thu, 23 May 2002 15:47:04 +0530
>
>           alert(document.all.mytd.getAttribute("colspan",true))
>           alert(document.all.mytd.getAttribute("width",true))
>
>here too it gives me null in colspan when i gave it "8"
>and it shows the width 10% which is correct.
>i can't get colspan in javascript
>help
>
>Vaishali
>Relience Ind Ltd
>A'bad
>
>
>I´ve never done this before, but I have a text here that could be helpful.
>Try this:
>
>document.all.mytd.style.getAttribute("colspan",case)
>
>where case is a string with value "true" if you want case sensitive or
>"false" if you don´t.
>
>Hope this works
>
>Fran
>
> > -----Mensaje original-----
> > De:   [Vaishali S. Pandya] [SMTP:[EMAIL PROTECTED]]
> > Enviado el:   jueves 23 de mayo de 2002 10:12
> > Para: [EMAIL PROTECTED]
> > Asunto:       u can not get COLSPAN in javascript
> >
> > i have tried a lot
> > and don't able to know colspan of mytd which is <td id="mytd"
>width="10%"
> > colspan=5>
> > in
> >
> > alert(mytd.id)
> > alert(mytd.width)
> > alert(mytd.colspan)
> >
> > it gives me
> >
> > mytd
> > 10%
> > undefined
> >
> > Why?
> >
> > Vaishali
> > Relience Ind Ltd
> > A'bad
> >
> >
>==========================================================================
> > =
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> > DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://archives.java.sun.com/jsp-interest.html
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.jsp
> >  http://www.jguru.com/faq/index.jsp
> >  http://www.jspinsider.com
>
>=====================================To unsubscribe: mailto
>[EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
>DIGEST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com
>
>
>==========================================================================To
>unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
>DIGEST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com




_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to