Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Javascript and I have different ideas about what "concatenate" means.
- Date: Thu, 16 Dec 2010 02:40:03 +0900
- From: Dave M G <dave@example.com>
- Subject: Re: [tlug] Javascript and I have different ideas about what "concatenate" means.
- References: <4D08CDD3.5020806@example.com> <AANLkTim1yQZmd+=2WBW3bZeFmggTwWP8u-bUaVjaaEB1@example.com> <AANLkTimPCwJv-dPvsB12f37D5-yOpsV636evESRWTK_v@example.com>
- User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7
Marco, David, Ruben, Thank you for responding. Just for clarity, the divs all have classes, not IDs, and I removed the last forward slash at the end of the code that might have been causing trouble. So I'm pretty sure I've got the HTML syntax right. Also, I dumped the content of my output variable to console.log() and it seems to be formatting correctly, so Marco's suggestion that innerHTML is doing some kind of validation seems to be right. The content of the variable is right, but innerHTML is parsing it into crap. So I've been looking for ways to write the variable into the div, and everything works in some weird way. I've tried insertBefore (doesn't seem to like nested divs), writeIn (clobbers the whole page), and appendChild (don't know what the heck it's doing). Isn't there some way you can just dynamically write a chunk of prepared HTML into an existing page? The chunk of HTML I'm writing comes from a JSON returned from the server, so I want to be able to rewrite the div contents whenever I get new data. -- Dave M G
- Follow-Ups:
- Re: [tlug] Javascript and I have different ideas about what "concatenate" means.
- From: Marco Toldo
- Re: [tlug] Javascript and I have different ideas about what "concatenate" means.
- From: Jun-Dai Bates-Kobashigawa
- References:
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Javascript and I have different ideas about what "concatenate" means.
- Next by Date: Re: [tlug] Javascript and I have different ideas about what "concatenate" means.
- Previous by thread: Re: [tlug] Javascript and I have different ideas about what "concatenate" means.
- Next by thread: Re: [tlug] Javascript and I have different ideas about what "concatenate" means.
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links