Results 1 to 7 of 7

Thread: simple XMLHttpRequest logging function

Threaded View

  1. #1
    Join Date
    Jul 2007

    simple XMLHttpRequest logging function

    I am using XMLHttpRequest as a simple one way ajax logging function. No server response is needed. The request does not cross domains.

    This code works as expected:

    var client2 = new XMLHttpRequest();
    client2.open("GET", "program?url=c",true);
    return true;

    however, as soon as I remove the alert()

    var client2 = new XMLHttpRequest();
    client2.open("GET", "program?url=c",true);
    return true;

    the server never receives the call...

    When I step thru this in firebug, I can remove the alert line and once I step thru to the return line the function works as expected. But as soon as I eliminate the debugger (no break) it ceases to work again? very strange. no errors thrown.

    what am I missing here?

    This is a one way communication to a log file on the server (same domain), no response is needed.

    Thanks in advance for any advice... I'm sure I'm just being dense...
    Last edited by Steviebone; 09-10-2013 at 01:06 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center