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 (javascript@xxxxxxxxxx)
  • Subject: [Javascript] How can search engines see a js include for navi gation?
  • Date: Fri, 22 Mar 2002 10:36:39 -0600

Josh,

I think you've misunderstood what Bob was suggesting. Take the same
navigation you have in the .js, and write it once - inside <noscript> t=
ags
- in the .js file. You do NOT have to duplicate this on every page. So =
if
you make a change to the navigation, you change it in the javascript, a=
nd
in the <noscript> - but both are in the .js file, so it's still only
changing in one place.

Esther


                                                                       =
                                                               =20
                      "josh@xxxxxxxxxx                                 =
                                                               =20
                      m" <josh                 To:      <javascript@LaT=
ech.edu>                                                       =20
                      Sent by:                 cc:                     =
                                                               =20
                      javascript-admin         Subject: Re: [Javascript=
] How can search engines see a js include for navi gation?     =20
                      @LaTech.edu                                      =
                                                               =20
                                                                       =
                                                               =20
                                                                       =
                                                               =20
                      03/22/02 10:24                                   =
                                                               =20
                      AM                                               =
                                                               =20
                      Please respond                                   =
                                                               =20
                      to javascript                                    =
                                                               =20
                                                                       =
                                                               =20
                                                                       =
                                                               =20




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 bot=
tom
      of your include.js file. Then every page that includes it will al=
so
      have the <NOSCRIPT></NOSCRIPT>



      Bob Filipiak
      (Contractor)
      Microsoft=AE
      C E R T I F I E D
          Professional
            -----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 inclu=
de
            for navigation?

            Hello,

            New to the list. My first post. Hi.

            I'm building a site where I would like to use an include fo=
r 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 en=
gine
            will not follow your JavaScript generated links to subseque=
nt
            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



=