JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 15th, 2002, 05:11 PM
christo's Avatar
christo christo is offline
Introspective
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Nov 2001
Location: London, UK
Posts: 3,299 christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 3 Days 1 h 37 m 10 sec
Reputation Power: 105
Send a message via ICQ to christo Send a message via Yahoo to christo
Do Spiders & bots read Javascript?

Hi guys,

just pondering over here about whether or not search engine spiders ignore Javascript..

I was thinking that a site with frames could be fully indexed, with redirections to the index page if the referrer isn't part of the site in question - ie to ensure that framesets are always present.

comments?

later
Christo
__________________
.
Spiration channels: Free scripts, programming tutorials and articles
Clearprop: UK microlight school, wiltshire

Reply With Quote
  #2  
Old August 15th, 2002, 07:10 PM
Hero Zzyzzx's Avatar
Hero Zzyzzx Hero Zzyzzx is offline
11
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Jul 2001
Location: Lynn, MA
Posts: 4,635 Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 23 h 44 m 19 sec
Reputation Power: 77
Send a message via AIM to Hero Zzyzzx
I don't believe they compile and run javascript, if that's what you mean.

I'm a little confused by what you're trying to accomplish.

Redirecting users based on user_agent strings is a task better left to apache or mod_perl. . . assuming you're doing it for the express purpose of serving custom content to web spiders.

Reply With Quote
  #3  
Old August 16th, 2002, 05:07 AM
christo's Avatar
christo christo is offline
Introspective
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Nov 2001
Location: London, UK
Posts: 3,299 christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 3 Days 1 h 37 m 10 sec
Reputation Power: 105
Send a message via ICQ to christo Send a message via Yahoo to christo
well if a site (actually a friend's site) consistes of about 12 pages, all displayed in a frameset.. so there is a navbar on the left, which when clicked on, causes the respective pages to be loaded into the main frame..

Now he wants all his pages to be indexed by google, but if a user just clicks on a google result, he/she will be taken to that page, which will be displayed without the surrounding frameset - cos it's just an html file and the frameset is elsewhere (actually the index page).

still with me?

So he is planning to use js redirects on every page OTHER than the index page, to test that a hit has been referred from elsewhere IN the site. If the hit has come from OUTside, then it's fair to assume that the user has arrived mid-site and not via the framed index page, meaning that none of the banners and navbars are visible.

I'm terrible at explaining stuff.

Anyway, his concern is that spiders will see redirects on all these pages and immediately stop slurping the page contents, so these pages won't get rated/indexed..

How do people deal with this issue in sites with framesets? I guess a PHP direct would be more appropriate if a redirect really is required!

christo !

Reply With Quote
  #4  
Old August 16th, 2002, 01:01 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 42 m 50 sec
Reputation Power: 185
spiders donīt parse javascript.
make sure all your pages work also without javascript (at least link them without js). so this is wrong:
<a href="#" onclick="parent.frames['mainframe'].location='1.html'">Menu1</a>

and this is right:
<a target="mainframe" href="1.html" onclick="parent.frames['mainframe'].location='1.html';return false">Menu1</a>

some spiders donīt parse even frames. so make on every page a "<noframes>" tag and make only links there:
<noframes>
<a href="1.html">Menu1</a>
...

put a javascript on the framed pages (here: 1.html)
<script>
if (self==top) location.href='frameset.html';
</script>
then, if someone accesses your pages directly, theyīll reload the frameset. even better, use a dynamic frameset:
<script>
if (self==top) location.href='frameset.php?page=1.html';
</script>


donīt use this feature in your "normal", spider-compatible linking since most spiders donīt index pages that contain a "?" in their URL!
__________________
--
Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more.

Reply With Quote
  #5  
Old August 23rd, 2002, 06:46 PM
christo's Avatar
christo christo is offline
Introspective
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Nov 2001
Location: London, UK
Posts: 3,299 christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 3 Days 1 h 37 m 10 sec
Reputation Power: 105
Send a message via ICQ to christo Send a message via Yahoo to christo
Manuel,

thanks for the reply to this post - It didn't go unnoticed, I have just been without connectivity for a while..!

Quote:
spiders donīt parse javascript.

Just what I was looking for!

thanks
christo

Reply With Quote
  #6  
Old August 27th, 2002, 06:50 AM
christo's Avatar
christo christo is offline
Introspective
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Nov 2001
Location: London, UK
Posts: 3,299 christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 3 Days 1 h 37 m 10 sec
Reputation Power: 105
Send a message via ICQ to christo Send a message via Yahoo to christo
follow up

As a follow up,

If spiders and bots ignore javascript, then I wonder what they would make of a page which contained a <div> which is laden with keywords, but is accompanied by a piece of javascript that sets it's (css selector) visibility to 'hidden' or display to 'none' ? Surely they are smart enough to detect this sort of cheekiness ?

christo

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignJavaScript Development > Do Spiders & bots read Javascript?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT