Skip to content

Commit

Permalink
ajax fix
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1774 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
allo committed Feb 27, 2006
1 parent 351bd0a commit 8f471c2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions htroot/js/Index.js
Expand Up @@ -12,10 +12,10 @@ function AllSnippets() {


function requestSnippet(url, query){
var req=createRequestObject();
req.open('get', '/xml/snippet.xml?url=' + escape(url) + '&search=' + escape(query),false);
req.onreadystatechange = function () {handleState(req)};
req.send(null);
var request=createRequestObject();
request.open('get', '/xml/snippet.xml?url=' + escape(url) + '&search=' + escape(query),true);
request.onreadystatechange = function () {handleState(request)};
request.send(null);
}

function handleState(req) {
Expand Down

0 comments on commit 8f471c2

Please sign in to comment.