Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] How do I retrieve values from custom attributes on a DIV?
- From: javascript@xxxxxxxxxx (TomMallard)
- Subject: [Javascript] How do I retrieve values from custom attributes on a DIV?
- Date: Fri, 21 Jun 2002 08:34:57 -0700
I'd never tried item() before...anyway, your hang up is NS4, have you tried this idea? document.style.idName.property I don't have a DOM chart for netscape here, have you checked their website? http://developer.netscape.com/find/ tom -----Original Message----- From: javascript-admin@xxxxxxxxxx [mailto:javascript-admin@xxxxxxxxxx]On Behalf Of Walter Torres Sent: Friday, June 21, 2002 7:54 AM To: javascript@xxxxxxxxxx Subject: RE: [Javascript] How do I retrieve values from custom attributes on a DIV? Thanks for the reply... But document.all does not work in IE, also, "areaTwo" is not a form object, it is a DIV, therefore it does not have a "value". My question concerns retrieving the value of a custom attribute from a DIV within NN 4. Thanks Walter > -----Original Message----- > From: javascript-admin@xxxxxxxxxx > [mailto:javascript-admin@xxxxxxxxxx]On > Behalf Of TomMallard > Sent: Friday, June 21, 2002 9:38 AM > To: javascript@xxxxxxxxxx > Subject: RE: [Javascript] How do I retrieve values from custom > attributes on a DIV? > > > did you try > > document.all.item("areaTwo").value > > tom mallard > seattle > > -----Original Message----- > From: javascript-admin@xxxxxxxxxx > [mailto:javascript-admin@xxxxxxxxxx]On > Behalf Of Walter Torres > Sent: Thursday, June 20, 2002 10:43 PM > To: javascript@xxxxxxxxxx > Subject: [Javascript] How do I retrieve values from custom > attributes on > a DIV? > > > I have a DIV with several custom attributes on it... > > <div id="areaTwo" > name="areaTwo" > bgColor="red" > sizeControl="false" > minH="50" > minW="50" > bufRt="100" > bufBt="50" > onClick='displayIt()'>Area 2</div> > > In IE 4/5 I can retrieve these values, but I can't find a way > to get them in > NN4/6. > > Any ideas? > > Walter > > _______________________________________________ > Javascript mailing list > Javascript@xxxxxxxxxx > https://lists.LaTech.edu/mailman/listinfo/javascript > > _______________________________________________ > Javascript mailing list > Javascript@xxxxxxxxxx > https://lists.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript@xxxxxxxxxx https://lists.LaTech.edu/mailman/listinfo/javascript
- References:
- [Javascript] How do I retrieve values from custom attributes on a DIV?
- From: Walter Torres
- [Javascript] How do I retrieve values from custom attributes on a DIV?
- Prev by Date: [Javascript] Frame refresh
- Next by Date: [Javascript] Frame refresh
- Previous by thread: [Javascript] How do I retrieve values from custom attributes on a DIV?
- Next by thread: [Javascript] How do I retrieve values from custom attributes on a DIV?
- Index(es):