Page 1 of 1

Click triggers onmouseover? (maybe)

Posted: Thu Mar 19, 2009 9:57 am
by mintedjo
I have a table with a row and a cell that has onmouseover, onmouseup, onmouseout events assigned.
When I click on the row (and release) to trigger the onmouseup event the onmouseover event is triggered.

I'm using prototype framework and creating the rows like this:

Code: Select all

row = new Element('tr', {onmouseup: 'function()', onmouseover: 'anotherFunction()', onmouseout: 'aThirdFunction()'});
Any ideas or known issues here will be appreciated. I found something about the 3 events not working well together in prototype but nothing about specific issues that might have helped me to figure out whats going on.

Re: Click triggers onmouseover? (maybe)

Posted: Thu Mar 19, 2009 11:28 am
by John Cartwright

Re: Click triggers onmouseover? (maybe)

Posted: Thu Mar 19, 2009 11:48 am
by mintedjo
Thanks for the link :-)
However, it served only to confuse me. I'm completely at a loss as to how this helps me or even what it is.

Even though I don't really understand it - I might be wrong here - but it looks like its not much use for my problem.
I have a table with around 10 dynamically generated rows. Each row has only one cell. The functions each have parameters which vary for each cell.
The thing you showed me didnt look like it would suit this situation particularly well but like i said I don't fully understand it anyway so feel free to correct me.
If you can recommend how it could be of use I would be grateful.