From 6c3e00bc8d1deaa5ffb2a983cc70e9ff4153a895 Mon Sep 17 00:00:00 2001 From: BlackLight Date: Fri, 8 Oct 2010 18:57:06 +0200 Subject: [PATCH] Fixing some JavaScript stupidity --- htdocs/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/index.html b/htdocs/index.html index 16e4303..6a5c9d0 100644 --- a/htdocs/index.html +++ b/htdocs/index.html @@ -29,7 +29,7 @@ window.onload = function() { window.innerHeight- 50 : 50; } - req.open ( 'GET', 'http://localhost:7654/correlation_graph.json', true ); + req.open ( 'GET', 'http://' + window.location.host + '/correlation_graph.json', true ); req.onreadystatechange = function() { if ( req.readyState == 4 && req.status == 200 ) {