I have checked the answers, and this is my first project with jQuery:
function LoadWPage(a, b)
{
// this line works - the PART is the (spare)part I want to show when selected
document.getElementById("PART").innerHTML = "webshop.php?v="+a+"&p="+b;
// this is what I want to do, but nothing happens <------ my question
$("#PART").load("webshop.php?v="+a+"&p="+b);
// this is a dummy div and it loads well - I get the data from the PHP page
document.getElementById("sonnich").innerHTML = '<object type="text/html" data="webshop.php?v=+'+a+"&p="+b+'" ></object>';
// this simply leaves my div blank - why?
//document.getElementById("PART").innerHTML = '<object type="text/html" data="webshop.php?v=+'+a+"&p="+b+'" ></object>'; // leaves it empty
}
so, I can get the page I need to load, and even show it. It just does not work in jQuery. I googled it but did not find any clear answers to my problem. The last line, which leaves it empty, I just dont get.
Any ideas?
WBR Sonnich
to the load, so my single line is followed by empty space The page I am working still does not work, I am still trying to figure that out – sonnich Nov 29 '15 at 10:40