You are here: Re: Replace part of page with additional html « HTML « IT news, forums, messages
Re: Replace part of page with additional html

Posted by Nonee on 07/20/05 09:44

Actually since I have all of your attentions... I am having a problem
with the document.write('') method. Everytime I use it, it rewrites
the entire page. I am not sure why that is. Could including a
function call that uses the doc.write method in the body onload event
be doing it? It just completely blanks out the entire page and only
puts in the doc.write string. Any ideas?

Thanks again,

Josh

P.S. Oh, and Dorayme, yes it is under 50 pages, I just thought there
could be an easier way. The dreamweaver template idea worked very
well. I am just lazy I guess... : )

On Wed, 20 Jul 2005 08:55:27 +1000, dorayme <dorayme@optusnet.com.au>
wrote:

>> From: Nonee <None@none.com>
>>
>> Hello-
>>
>> I am designing a website with a menu and I would like to place
>> the menu (which is in a table) on every page. I would like to be able
>> to call an external javascript function call to write it but I haven't
>> quite figured out how. I know that document.write('blah blah') could
>> do it but that completely rewrites the entire site while I only want
>> to put the table there, in between a title image and the rest of the
>> web content. I know there is innerhtml calls for IE but 1) I am not
>> sure how it works and 2) I rather not shoot myself in the foot in the
>> cross-compatibility factor.
>>
>> Any ideas?
>>
>> Thanks,
>>
>> Josh
>>
>
>You have a menu and you would like to place it it on every page. How many
>pages are we talking here? If just a few, like 10 to 50 then just place it
>on every page. This way there is no need to use javascript (which is not
>always on and/or working in browsers) or get fancy. You can get fancier
>using "includes" and php and server side set ups. But think whether there is
>a true need in your case. (What's this about a bit of "write" in javascript
>"completely rewriting the entire site"? This sounds a bit dramatic and
>unlikely? You can just write the teeniest weeniest thing with it.
>
>dorayme

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация