Hello, This has been bothering me for ages and I tried everything and I cannot get it to work.
Here is my function currently
function example1() {
var xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET", url,true);
xmlhttp.onreadystatechange=function() {
if (xmlhttp.readyState==4) {
data=(xmlhttp.responseText);
}
}
xmlhttp.send(null);
}
I would like to be able to get "data" out of that function that I can then in another function return some regrex on AND I would like to be able to make "url" dependent on user input
I hope someone can help me, this is driving me extremely crazy.
Thanks for you time