Welcome to the { mindfrost82.com } forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > Internet Explorer

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-14-2008, 04:00 AM
=?Utf-8?B?TWlrZQ==?=
 
Posts: n/a
onmouseover on option does not work

Hi,

This is my first post in this newsgroup so I am hoping I am posting on the
right thread.

My question is that I have the following HTML code:

function displayToolTip()
{

document.getElementById("Selection").options[document.getElementById("Selection").options.selec tedIndex].title = "Testing";
}

<select id="selection">
<option onmouseover="javascript:displayToolTip();">1</option>
<option onmouseover="javascript:displayToolTip();">2</option>
</select>

This works on FireFox but not on IE7. I have searched the net and a number
of people encounter such similar problem and reported that this is IE bug. Is
that right?


Reply With Quote
  #2 (permalink)  
Old 01-14-2008, 08:58 AM
=?Utf-8?B?QWFyb24gT3hmb3Jk?=
 
Posts: n/a
RE: onmouseover on option does not work

A bug in IE? Surely not!

The first thing I'd to recommend to you is to try the MSDN forums or even a
place like CodeGuru in preference to this particular list. Actually I
encounter problems just *viewing* this site with IE as it is today.
Microsoft's own OS, browser, and site. Gives you an indication what you're up
against.

I remember a little JS (back in IE6 days) and would like to help if I can.
What does IE actually do? The code looks exceedingly straightforward, at
least out of context.

If the answer is 'nothing' I'd make sure you've added your site to your
trusted zone and try again. You might find this is a security 'feature' - I
think they've tightened up the whole 'document.getEverything.andHackMe'
scenario since I used to do this sort of work.

I'd also try doing something else from the onmouseover just to be sure it's
firing, if you haven't already done that. That and testing to see if you can
fire the event another way and get the desired effect of changing the
selector option.

Stay hopeful. The good thing I remember about IE6 was for every bug there
was probably another you could exploit to work around it. :-) I remember
doing some really crazy things with invisible frames to make them 'talk', but
I couldn't hope to remember all the specifics and no doubt it wouldn't work
these days. Sorry I can't be more helpful off the bat, but again I'd need to
know what IE actually does with this code (can you post a complete 'working'
example?).

For a *really* good laugh (in your spare time), hopefully this one still
works:

(all on one line)

<tr><td>directly</td></tr><tr height=1><td></td></tr><tr><td>above</td></tr>

gives you a TR of height 1

<tr><td>totally</td></tr>
<tr><td height=1></td></tr>
<tr><td>broken</td></tr>

gives you the emtpy TR at current font height. I could have killed someone
when my whole site design was thrown out by that (it took a couple of days to
fix and a couple more to understand why it kept breaking) , and if you
haven't considered possibilities like this, you should probably start. :-D

Aaron.

"Mike" wrote:

> Hi,
>
> This is my first post in this newsgroup so I am hoping I am posting on the
> right thread.
>
> My question is that I have the following HTML code:
>
> function displayToolTip()
> {
>
> document.getElementById("Selection").options[document.getElementById("Selection").options.selec tedIndex].title = "Testing";
> }
>
> <select id="selection">
> <option onmouseover="javascript:displayToolTip();">1</option>
> <option onmouseover="javascript:displayToolTip();">2</option>
> </select>
>
> This works on FireFox but not on IE7. I have searched the net and a number
> of people encounter such similar problem and reported that this is IE bug. Is
> that right?
>
>

Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > Internet Explorer


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 07:48 PM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Mortgages | Mobile Phones | Bad Credit Mortgages | Mortgages | Free Advertising



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114