Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > alt.comp.lang.javascript > #2
| Newsgroups | alt.comp.lang.javascript |
|---|---|
| Date | 2015-11-26 11:59 -0800 |
| Message-ID | <56ada115-8f5b-4dbb-a861-04fcb94ff751@googlegroups.com> (permalink) |
| Subject | Problems with jQuery load (and innerhtml / div) |
| From | sonnichjensen@gmail.com |
hi all
This is my code:
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
$("#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
//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
Back to alt.comp.lang.javascript | Previous | Next | Find similar
Problems with jQuery load (and innerhtml / div) sonnichjensen@gmail.com - 2015-11-26 11:59 -0800
csiph-web