Hi,

Is it a well known problem and is there any work around?

The offsetTop value of an option in a select, and the scrollTop of the 
select are always returned as zero by IE,
whatever the position of the scroll bar is.
Mozilla shows correct values.

See example at http://www.contentbox.com/claude/test/test.htm
Code =
<SELECT NAME="MonSelect" SIZE="4" onclick="test(this)">
<option>Option 1
<option>Option 2
<option>Option 3
<option>Option 4
<option>Option 5
<option>Option 6
<option>Option 7
<option>Option 8
<option>Option 9
</select>
<script>
function test (sel)
{
var opt = sel.options[sel.selectedIndex];
alert("selectedIndex = " + sel.selectedIndex
+ "\noffsetTop = " + opt.offsetTop
+ "\nscrollTop = " + sel.scrollTop
);
}

-- 
_______________________________________
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287931
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to