Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > alt.comp.lang.javascript > #2
| X-Received | by 10.129.135.66 with SMTP id x63mr39530925ywf.17.1448567984855; Thu, 26 Nov 2015 11:59:44 -0800 (PST) |
|---|---|
| X-Received | by 10.50.155.8 with SMTP id vs8mr74744igb.10.1448567984828; Thu, 26 Nov 2015 11:59:44 -0800 (PST) |
| Path | csiph.com!au2pb.net!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!f78no3116401qge.1!news-out.google.com!f6ni13989igq.0!nntp.google.com!mv3no4529980igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
| Newsgroups | alt.comp.lang.javascript |
| Date | Thu, 26 Nov 2015 11:59:44 -0800 (PST) |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=85.253.96.143; posting-account=Yh0DawoAAADWSz9kmVaqSFRe0w2e22fv |
| NNTP-Posting-Host | 85.253.96.143 |
| User-Agent | G2/1.0 |
| MIME-Version | 1.0 |
| Message-ID | <56ada115-8f5b-4dbb-a861-04fcb94ff751@googlegroups.com> (permalink) |
| Subject | Problems with jQuery load (and innerhtml / div) |
| From | sonnichjensen@gmail.com |
| Injection-Date | Thu, 26 Nov 2015 19:59:44 +0000 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Lines | 30 |
| Xref | csiph.com alt.comp.lang.javascript:2 |
Show key headers only | View raw
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