git.schokokeks.org
Repositories
Help
Report an Issue
webinterface.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
ede58de
Branches
Tags
master
ticket
webinterface.git
js
ajax.js
Allow Header entries and AJAX
bernd
commited
ede58de
at 2008-09-18 15:24:23
ajax.js
Blame
History
Raw
var xmlHttp = null; function ajax_request(from, query_string, target_function) { if (window.ActiveXObject) { try { xmlHttp= new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlHttp= new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { } } } else if (window.XMLHttpRequest) { try { xmlHttp= new XMLHttpRequest(); } catch (e) { } } if (xmlHttp) { xmlHttp.open('GET', from + '?' + query_string, true); xmlHttp.onreadystatechange = target_function; xmlHttp.send(null); } } function foo() { if (xmlHttp.readyState == 4) { text = 'Gefundene Begriffe: <br \/>' + xmlHttp.responseText; document.getElementById('output').innerHTML = text; } }