|
Posted by Jonathan N. Little on 02/06/07 22:07
BigDaddyBS wrote:
> I too went through the "cut-and-paste" phase, and quickly went into a
> "JavaScript" phase before actually figuring out how to do SSI. There are
> plenty of JS examples on the web, but I'll see if I can quickly describe the
> way I did it. (I know it might not be the best, but it worked for me for
> years, and I still currently have sites out there using it.)
>
<snip code>
Although JavaScript is very seductive for this application it is a *very
bad* idea for many reasons. First and foremost if the use has JavaScript
disabled your site cannot be navigated! (It is like giving someone a
book sealed in a glass box, you can read the first page but cannot turn
the page to read the book!) Secondly, search engines to not execute
JavaScript so the search engine will not 'see' your links either and
will not traverse you site and will not rank it well, interconnection
with relevant data help in page ranking. Thirdly, since JavaScript would
be interjecting the markup at 'runtime' it is easy to make markup errors
and difficult to debug. Web Developers Bar with "Generated Source" helps
but mistakes are hard to find...
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Navigation:
[Reply to this message]
|