User Profile
Collapse
-
global var javascript
I think the below code should work, but for some reason the setNumbers variable isn't keeping its value after the function. I thought if I declared variables outside of any function they would behave globally, so if I put data into them in a function it would carry over out of the function. Where the alert is at the bottom works, but if its moved one block lower it gives me an undefined. All the var's are delcared in the main part of code. Can someone... -
getelementbytagname help
I'm not sure if I have the syntax right or if I'm using the wrong code or what, but I just can't seem to get this to work. Please someone point me in the right direction.
...Code:function ajaxRequest(){ var URL = "pictures.xml"; var request = false; if (window.XMLHttpRequest) { request = new XMLHttpRequest(); } else if (window.ActiveXObject) { try { request = new ActiveXObject("Msxml2.XMLHTTP");
No activity results to display
Show More