User Profile
Collapse
-
Varies, but in this case ~15,000.... -
Upon further inspection the following function is causing Internet Explorer to hang.
This is getting seriously frustrating....Code:window.onload = function () { var arr = document.getElementsByTagName("li"); for(var i = 0; i < arr.length; i++) { document.getElementsByTagName("li")[i].onclick = sendRequest; } }Leave a comment:
-
I may have spoken too soon. While the following code works well in Firefox, it fails with large sets of data in Internet Explorer 6 & 7 pinning the CPU at 100%. Is there something in there causing this issue?
...Code:// Create XmlHttp object. function createXHR() { try { return new XMLHttpRequest(); } catch(e) {} try { return new ActiveXObject("Msxml2.XMLHTTP.6.0"); } catch (e) {}Leave a comment:
-
It now works after changing the following:
And added:Code:window.onload = function () { var arr = document.getElementsByTagName("li"); for(var i = 0; i < arr.length; i++) { document.getElementsByTagName("li")[i].onclick = sendRequest; } }
...Code:var theId function getId(e) { varLeave a comment:
-
Pass ID to function?
I'm attempting display a DIV when clicking on a list item. This works, but only for the first list item. I realized that this was due to the ID not being unique so I made the IDs unique. My question is how do I pass this unique ID from each list item to the relevant javascript function so that it displays the DIV when clicked?
Here's the javascript:
...Code:// Create XmlHttp object. function createXHR() {
No activity results to display
Show More
Leave a comment: