load

load

Hello,

I have the following code:

$(document).ready(function() {
  $("button").click(function() {
    $("#div1").load("demo_test.txt");
  });
});

Running Google Chrome,nothing is loaded and I get an error message in the console:
XMLHttpRequest cannot load file:///C:/Cursus%20XHTML%20en%20CSS/CSS%20-%20JavaScript%20-%20jQuery%20-%20XHTML/demo_test.txt. Received an invalid response. Origin 'null' is therefore not allowed access.

Using the Firefox browser, it works! Can someone explain why?

I am (still) using Windows XP.

Regards,
Ad Rienks