Click here to get back home

displaying html using javascript?

 HomeNewsGroups | Search | About
 alt.www.webmaster    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
displaying html using javascript? Ian 04-16-2005
Get Chitika Premium
Posted by Ian on April 16, 2005, 7:01 pm
Please log in for more thread options


I am adding a sponsor feature to my site and am trying to figure out the
best way to do it. The site is very stripped down; no PHP, etc.

I am displaying the sponsors similar to how The Onion does
(http://theonion.com - left column). It is pretty much just a list using a
table. The easiest way I figure it is to keep the html of the table in a
separate file that is called up via Javascript or some other way.

So this is probably a question of very basic javascript, but how do I make
it display an html or an html file dynamically? I know how to make it
display plain text using document.write, but this isn't plain text.

Or is this best done using another method? I don't want to use iframe
because I want search engines to think these ads are part of the page, even
though really it's in a separate file. I assume using iframe it would just
count the links on the same file multiple times.

Thanks for any help.




Posted by William Tasso on April 17, 2005, 12:08 am
Please log in for more thread options



> I am adding a sponsor feature to my site and am trying to figure out the
> best way to do it. The site is very stripped down; no PHP, etc.
>
> I am displaying the sponsors similar to how The Onion does
> (http://theonion.com - left column). It is pretty much just a list using
> a table. The easiest way I figure it is to keep the html of the table in
> a separate file that is called up via Javascript or some other way.
>
> So this is probably a question of very basic javascript, but how do I
> make it display an html or an html file dynamically? I know how to make
> it display plain text using document.write, but this isn't plain text.
>
> Or is this best done using another method? I don't want to use iframe
> because I want search engines to think these ads are part of the page,
> even though really it's in a separate file.

Client script is no better than [i]frame technology.

If you can't use server side scripting then you are pretty much limited to
Server-Side includes or a local pre-processor to build your pages.

--
Whatever you do - do something.

Similar ThreadsPosted
Javascript / HTML Standard Question October 11, 2006, 7:33 pm
JavaScript Call Being Added To HTML Documents By Unkonwn Program June 9, 2006, 11:47 pm
£ signs displaying as £ December 5, 2005, 12:12 pm
IE not displaying site properly October 23, 2005, 12:25 pm
Site Displaying Incorrectly In IE December 2, 2005, 2:56 am
list not displaying correctly March 5, 2007, 6:45 am
Is this page displaying wrong? February 28, 2008, 7:23 am
list not displaying inliine July 14, 2008, 4:59 am
Help with displaying page last updated October 22, 2008, 7:49 am
Link styles not displaying properly in IE6, 7 March 8, 2007, 11:23 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap