Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] How can search engines see a js include for navi gation?


  • From: javascript@xxxxxxxxxx (josh@xxxxxxxxxxx)
  • Subject: [Javascript] How can search engines see a js include for navi gation?
  • Date: Fri, 22 Mar 2002 17:24:24 +0100

> This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

--MS_Mac_OE_3099662664_1357100_MIME_Part
Content-type: text/plain; charset="ISO-8859-1"
Content-transfer-encoding: quoted-printable

Hi Bob,

Right, i can do that but that's what I want to avoid. If do that then I've
lost the advantage of an include because I still have to write out the nav
stuff for every page. And, if I change the nav code in the include (and the
site structure), the nav code in every<noscript> will then break. what to
do??

- josh


on 22-03-02 17.14, Filipiak, Bob (Contractor) at filipiab@xxxxxxxxxxxxx
wrote:

Duplicate your navigation inside <NOSCRIPT></NOSCRIPT> at the bottom of you=
r
include.js file. Then every page that includes it will also have the
<NOSCRIPT></NOSCRIPT>
=20


Bob Filipiak=20
(Contractor) =20
Microsoft=AE=20
  C E R T I F I E D
     Professional=20
-----Original Message-----
From: josh@xxxxxxxxx [mailto:josh@xxxxxxxxx]
Sent: Friday, March 22, 2002 11:06 AM
To: javascript@xxxxxxxxxx
Subject: [Javascript] How can search engines see a js include for
navigation?

Hello,

New to the list. My first post. Hi.

I'm building a site where I would like to use an include for my navigation.
I know how to do it but read about a caveat on this page:

http://javascript.about.com/library/weekly/aa102901a.htm

"Caveats

There are a couple of potential downsides to using this technique.  First,
search engines do not process JavaScript, so any content written by your
scripts will not be indexed by a search engine.  This can be a problem if
you are using the include file as your main way of providing site
navigation.  Unless you provide another way for the search engine to see
your links, such as using the <noscript> tag, the search engine will not
follow your JavaScript generated links to subsequent pages."

Using the <noscript> tag seems to defeat the purpose of an include because
you'd have to put it on every page. So, how can I put my navigation in an
include that is still searchable? Another way in Javascript? SSI?

Links to resources for the solution are appreciated.

- Josh Draper=20




--MS_Mac_OE_3099662664_1357100_MIME_Part
Content-type: text/html; charset="ISO-8859-1"
Content-transfer-encoding: quoted-printable

<HTML>
<HEAD>
<TITLE>Re: [Javascript] How can search engines see a js include for navi ga=
tion?</TITLE>
</HEAD>
<BODY>
Hi Bob,<BR>
<BR>
Right, i can do that but that's what I want to avoid. If do that then I've =
lost the advantage of an include because I still have to write out the nav s=
tuff for every page. And, if I change the nav code in the include (and the s=
ite structure), the nav code in every&lt;noscript&gt; will then break. what =
to do??<BR>
<BR>
- josh<BR>
<BR>
<BR>
on 22-03-02 17.14, Filipiak, Bob (Contractor) at filipiab@xxxxxxxxxxxxx wro=
te:<BR>
<BR>
<BLOCKQUOTE><FONT COLOR=3D"#0000FF"><FONT SIZE=3D"2"><FONT FACE=3D"Arial">Duplica=
te your navigation inside &lt;NOSCRIPT&gt;&lt;/NOSCRIPT&gt; at the bottom of=
 your include.js file. Then every page that includes it will also have the &=
lt;NOSCRIPT&gt;&lt;/NOSCRIPT&gt;<BR>
</FONT></FONT></FONT> <BR>
 <BR>
 <BR>
<FONT COLOR=3D"#0000FF"><FONT SIZE=3D"2"><FONT FACE=3D"Arial"><B>Bob Filipiak</B>=
</FONT></FONT></FONT> <BR>
<FONT COLOR=3D"#0000FF"><FONT SIZE=3D"2"><FONT FACE=3D"Arial"><B>(Contractor)</B>=
</FONT></FONT></FONT> &nbsp;<BR>
<FONT SIZE=3D"1"><FONT FACE=3D"Arial"><B><I>Microsoft</I></B></FONT><B><I>=AE</I>=
</B></FONT> <BR>
<FONT COLOR=3D"#99CCFF"><FONT SIZE=3D"1"> </FONT></FONT><B><U> <FONT COLOR=3D"#99=
CCFF"><FONT SIZE=3D"1">C E R T I F I E D</FONT></FONT></U></B> <BR>
<FONT COLOR=3D"#99CCFF"><FONT SIZE=3D"1"><B> &nbsp;&nbsp;&nbsp;</B></FONT></FON=
T><I> <FONT COLOR=3D"#99CCFF"><FONT SIZE=3D"1">Professional</FONT></FONT></I> <B=
R>
<BLOCKQUOTE><FONT SIZE=3D"2">-----Original Message-----<BR>
<B>From:</B> josh@xxxxxxxxx [mailto:josh@xxxxxxxxx]<BR>
<B>Sent:</B> Friday, March 22, 2002 11:06 AM<BR>
<B>To:</B> javascript@xxxxxxxxxx<BR>
<B>Subject:</B> [Javascript] How can search engines see a js include for na=
vigation?<BR>
<BR>
</FONT>Hello,<BR>
<BR>
New to the list. My first post. Hi.<BR>
<BR>
I'm building a site where I would like to use an include for my navigation.=
 I know how to do it but read about a caveat on this page:<BR>
<BR>
http://javascript.about.com/library/weekly/aa102901a.htm<BR>
<BR>
&quot;<FONT SIZE=3D"4"><B>Caveats<BR>
</B></FONT><FONT SIZE=3D"5"><FONT FACE=3D"Times New Roman"><BR>
</FONT></FONT><FONT SIZE=3D"4">There are a couple of potential downsides to u=
sing this technique. &nbsp;First, search engines do not process JavaScript, =
so any content written by your scripts will not be indexed by a search engin=
e. &nbsp;This can be a problem if you are using the include file as your mai=
n way of providing site navigation. &nbsp;Unless you provide another way for=
 the search engine to see your links, such as using the <I>&lt;noscript&gt;<=
/I> tag, the search engine will not follow your JavaScript generated links t=
o subsequent pages.&quot;<BR>
<BR>
Using the &lt;noscript&gt; tag seems to defeat the purpose of an include be=
cause you'd have to put it on every page. So, how can I put my navigation in=
 an include that is still searchable? Another way in Javascript? SSI? <BR>
<BR>
Links to resources for the solution are appreciated.<BR>
<BR>
- Josh Draper</FONT> <BR>
</BLOCKQUOTE><BR>
</BLOCKQUOTE><BR>
</BODY>
</HTML>


--MS_Mac_OE_3099662664_1357100_MIME_Part--