onmouseover problem with HTML table

I am trying to use the onmouseover event with an html table cell.  It works fine in IE, but not in FireFox

For testing I am using the following code
<SCRIPT type="text/JavaScript">
  <!-- hide

function FillCalGrid(Nme)
  {
alert(Nme); 
}
  // stop hiding -->
</script>

Open in new window


And the HTML is
<A href="##" onmouseover="FillCalGrid('M1')"><TD vAlign=top width="13.13%" bgColor=#Trim(SetColor(GetShifts.Shift1))# ID=M1 onClick="addCalColor('M1')"><br><br>&nbsp;</TD></a>  

Open in new window


(The HTML above is just for one cell, but the same is repeated several times with different cell IDs
I am coding in ColdFusion hence the #s.)

In Firefox the addCalColor and SetColor routines fire correctly, but the onmouseover event never fires.

If I add "This is a test" just before <TD... , the text appears, and when I hover over the text the onmouseover event fires as it should, but it will not fire for just an empty table cell.

What am I doing wrong?
LVL 3
jdthedjAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

William FulksSystems Analyst & WebmasterCommented:
Try putting &nbsp before <TD....> and see if that works.
0
Dave BaldwinFixer of ProblemsCommented:
Your formatting is wrong.  The <a href... should be inside the <td>.  In between <td>s is kind of a no mans land.  If it shows at all, it usually shows Before the table... because in-between <td>s is Not part of the table.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jdthedjAuthor Commented:
Thanks for the replies William and Dave

@William - sorry, does not work

@Dave it won't work if it is within the <td>, even in IE.   I want to be able to hover anywhere within the cell.
0
jdthedjAuthor Commented:
Tested a bit more and @Dave you are correct - it now works - thanks very much!
0
Dave BaldwinFixer of ProblemsCommented:
You're welcome.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.