Reply to Re: writing for browser compatability

Your name:

Reply:


Posted by Thad on 02/25/07 18:30

"Adrienne Boswell" <arbpen@yahoo.com> wrote in message
>
>> Uh oh...you say I can't use document.write? That's exactly what I
>> got
>> working. If not document.write as in the following example, what would
>> you suggest?
>>
>> Example from my js page:
>> document.write("<dl id=\"menu\">");
>> document.write("<dt class = \"btn\"><a href=\"beverage.html\">Beverage
>> Insulators</a></dt>");
>>
>
> Your example looks like you are using js for a menu - perhaps something
> that gets included in all pages. Not a good idea. Why? Because a lot
> of visitors (including the most important) do not have js available.
>
> You're better off using something server side:
>
> <!-- #include file="menu.inc' -->
>
>
> This is what most of my pages look like under the hood (most ASP):
> <% option explicit
> thispage = "Page title"
> thisurl = "thisurl.asp"
> %>
> <!--#include file="linkrel.asp"-->
> </head>
> <body>
> <!--#include file="header_inc.asp"-->
> <!--#include file="nav_inc.asp"-->
> <div id="content">
> </div>
> <!--#include file="footer_inc.asp"-->
>
> Linkrel includes the doc type declaration, the title element, external
> stylesheet and js file and other elements that go in the head.
> Header_inc may or may not include a static header logo, etc. Nav_inc is
> navigation, and is done server side. Footer_inc includes the standard
> copyright information and closes any db connections.
>
> This "template" system makes it very easy for me to a) reuse code b)
> debug VERY easily.
>
WOW...Thank you so VERY much for that information Adrienne. I will have to
look into whether or not my server will allow that. Once again, thank you
so very much.

[Back to original 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

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