So, I have a <script> tag that pulls in a toolTip js file. That works just fine with static text on my page. But, I have a table that refreshes out of a database, so every so many seconds, I completely rebuild the table using [code].appendChild[.CODE].
For whatever reason, the js calls for the toolTips no longer shows up inside the table. Here's the code for that section:
Expand|Select|Wrap|Line Numbers
- tooltipShow(tooltipId, parentId, posX, posY){}
- tbl = document.getElementById("resultsTable");
- row = document.createElement("tr");
- cell = document.createElement("td");
- shortLocation = "<a href='#' id='" + i + "' style='text-decoration:none;' onmouseover=\"tooltipShow('fullPath" + i + "','" + i + "',0,0);\" onmouseout=\"tooltipHide('fullPath" + i + "');\" onclick='return false'>[MainDir]\\" + department + "...\\" + shortMovName + "</a>";
- var toolTipDiv = "<div id='fullPath" + i + "' class='tip'>" + result.data[i].EncodedVideoLocation + "</div>";
- cell.innerHTML = shortLocation + toolTipDiv;
- row.appendChild(cell);
- tbl.appendChild(row);
Expand|Select|Wrap|Line Numbers
- <a href='#' id='0' style='text-decoration:none;' onmouseover="tooltipShow('fullPath0','0',0,0);" onmouseout="tooltipHide('fullPath0');" onclick='return false'>[MainDir]\HBLL\...\VarenaisBa...</a>
- <a href='#' id='0' style='text-decoration:none;' onmouseover="tooltipShow('fullPath0','0',0,0);" onmouseout="tooltipHide('fullPath0');" onclick='return false'>[MainDir]\HBLL\...\VarenaisBa...</a>
- <div id='fullPath0' class='tip'>C:\BYUgle_encoding\encoded\HBLL\LRC\VarenaisBaltijasGredzens\</div>
- <div id='fullPath0' class='tip'>C:\BYUgle_encoding\encoded\HBLL\LRC\VarenaisBaltijasGredzens\</div>
EDIT: I just discovered that having "onclick=alert('words');" didn't work, either. Nothing that requires user input works here. Another clencher? I'm using Adobe AIR to write this.