User Profile

Collapse

Profile Sidebar

Collapse
kalyke
kalyke
Last Activity: Mar 12 '08, 01:40 PM
Joined: Feb 29 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • kalyke
    started a topic global var javascript

    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...
    See more | Go to post

  • kalyke
    started a topic getelementbytagname help

    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");
    ...
    See more | Go to post
No activity results to display
Show More
Working...