I have an ASP.NET page with the Infragistics website. I handle mouseover, mouseout events on grid lines in several ways in Javascript to change the mouse cursor to a pointer and return to default as they traverse lines. I also switch the color of the line with the mouse add-on.
When I launch the page in debugging locally, it works fine. When I publish a test server and run it outside VS in Iexplore (8), the mouse cursor does not change. He remains an arrow. The string correctly changes the background color.
I realized that this is a caching problem, but when I add a warning window to the methods to display document.body.style.cursor, it correctly displays the state of the cursor in the warning; it just does not change the mouse cursor. I cleared the cache in the browser, deleted and republished, added GUID errors to the links to javascript files, etc.
If I try the page on a test server in Firefox, it will show the cursor correctly.
function _projGrid_MouseOverHandler(gridName, id, objectType) { if (objectType == 0) { document.body.style.cursor = 'pointer'; // alert('mouse pointer should be: ' + document.body.style.cursor); var cell = igtbl_getCellById(id); var elem = cell.Element; setRowBackColor(cell.Row, "F0E68C"); } } function _projGrid_MouseOutHandler(gridName, id, objectType) { if (objectType == 0) { document.body.style.cursor = 'default'; // alert('mouse pointer should be: ' + document.body.style.cursor); var cell = igtbl_getCellById(id); setRowBackColor(cell.Row, "white"); } } function setRowBackColor(row, color) { var cells = row.getCellElements(); for (var i = 0; i < cells.length; i++) { cells[i].style.backgroundColor = color; }
Any ideas would be very welcome!
UPDATE: I also have similar CSS issues
source share