View Full Version : problem with "onmouseover" and "onmouseout" functions
krishnapriyak
10-15-2002, 07:04 AM
We are displaying 240 records of employees on a form in HTML.
"onmouseover" on EmployeeId we are highlighting a part of the html (table) which contains addtional details of the employee and "onmouseout" we are hiding the same. The problem we are facing here is if the no.of records are more say greater than 50 ,
the functions "onmouseover" and "onmouseout" are not working for all the records. only for some records its working..
All the employees information we are getting from the database and stored in vectors and hashmaps(java). so it is not the static information we are displaying . Could any body have any ideas how to overcome this problem.
glenngv
10-15-2002, 07:42 AM
could you post the code?
krishnapriyak
10-15-2002, 02:22 PM
Attached is the code for the same.
With this code, it is working fine. If I have data similar to this around 250 records, my table which will be visible on mouseover event will not displayed. This is working upto 50-60 records.
glenngv
10-16-2002, 03:36 AM
try debugging by:
ob = document.getElementById(name);
window.status = name + ": " + typeof ob;
ob.style.top = itop
ob.style.left = ileft
ob.style.visibility = 'visible'
you should see the type of the ob at the status bar as you mouseover the link
krishnapriyak
10-16-2002, 07:17 AM
The parameter is passing to function properly. When u put alert in the function alert is coming. But what we are trying is changing the visibility of a table which included in div tag as specifiied in the sample code. If the no rows are more than 60, the table is not visible.
glenngv
10-16-2002, 07:27 AM
yes it is passed properly but what i meant was, maybe ob is not an object, meaning the passed parameter does not exist. Im not saying it is, just guessing here because that error is weird
ob = document.getElementById(name);
alert(typeof ob); //must alert 'object'
ob.style.top = itop
ob.style.left = ileft
ob.style.visibility = 'visible'
krishnapriyak
10-16-2002, 07:53 AM
alert is displaying object. so ob is a correct object only.
glenngv
10-16-2002, 08:05 AM
well, i couldn't see any reason why the code wont work when there are more than 60 records.
could you post the whole where there are 60+ records and some rows are not working?
krishnapriyak
10-16-2002, 11:21 AM
as there is a limitation of the size of the file to be attached is 51kb, i cann't attach the file (it's size is 1.53MB). could u please give me ur mailid so that i can sent it to u directly.
glenngv
10-17-2002, 01:55 AM
sorry mail sites are forbidden in our proxy, im in my office right now. and our company mail is restricted for business purpose only.
maybe what you can do is post the parts of the code where the <div> that is supposed to show is not displayed and also its corresponding <a> tag.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.