prevent the browsing from overwriting the requestobject, before the answer is received

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1764 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
allo 19 years ago
parent e089f15135
commit 88c0e1da1e

@ -1,4 +1,3 @@
function AllSnippets() {
var query = document.getElementsByName("former")[0].value;
@ -14,7 +13,7 @@ function AllSnippets() {
function requestSnippet(url, query){
var req=createRequestObject();
req.open('get', '/xml/snippet.xml?url=' + escape(url) + '&search=' + escape(query),true);
req.open('get', '/xml/snippet.xml?url=' + escape(url) + '&search=' + escape(query),false);
req.onreadystatechange = function () {handleState(req)};
req.send(null);
}

Loading…
Cancel
Save