RE: Determining number of visible OPTIONs in a SELECT
"Gale, David" <[email protected]>
| Newsgroups | gmane.comp.web.dom.wdf |
|---|---|
| Message-ID | <[email protected]> |
Ian Petersen wrote: > Hello all, > > Does anyone know how to find out how many OPTION nodes are visible in > a given SELECT in Internet Explorer? > > In Mozilla I can ask the SELECT and one of its OPTIONs for their > offsetHeights and do some division, but IE always returns zero for the > OPTION's offsetHeight, so that won't work. > > The reason I'm asking is that I'm trying to "page" through some data, > and I'd like to show one list-full of list items per page. I just > can't figure out how many list items that is in IE. > > Thanks, > Ian Can't you just check the size of the options array? (Firefox allows for options to not be displayed, but IE doesn't...) -David ------------------------ Yahoo! Groups Sponsor --------------------~--> Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/9rHolB/TM --------------------------------------------------------------------~-> Unsubscribe [email protected] List info http://www.quirksmode.org/dom/list.html Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/wdf-dom/ <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/