i have a simple HTML, where on a tag i have onmouseover="loadQueryResults();"
Here is a function:
function loadQueryResults(e) {
e = e || window.event;
var data = [];
var target = e.srcElement || e.target;
while (target && target.nodeName !== "TR") {
target = target.parentNode;
}
if (target) {
var cells = target.getElementsByTagName("td");
for (var i = 0; i < cells.length; i++) {
data.push(cells[i].innerHTML);
}
}
//window.open("racun.php?name="+data) THIS WORKS
//window.alert("racun.php?name=" + data) THIS WORKS
//document.writeln(data);
final=data.toString();
//document.writeln(final); THIS ALSO WORKS
stranica="racun.php?name="+final;
$( "#DisplayDiv" ).load(stranica); //THIS DOESNT WORK---WHY???
$( "#DisplayDiv" ).load("racun.php"); //THIS however WORKS!
}
Question is, why when i include arguments in php page i want to load, nothing happens?