RSS Forums RSS
Please support our Search Engine Optimization advertiser: Affiliate Marketing
Views: 5163 | Replies: 4 | Solved
Reply
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 11,032
Reputation: cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice 
Rep Power: 33
Solved Threads: 117
Admin
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Does google understand javascript?

  #1  
Jun 14th, 2004
I know that spiders are incapable of filling out forms and the like. But if I have links that have been dynamically generated client-side by some simple javascript, are they capable of following these links?
Dani the Computer Science Gal
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jun 2004
Location: Phoenix Arizona
Posts: 115
Reputation: Arizona Web is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 2
Arizona Web's Avatar
Arizona Web Arizona Web is offline Offline
Junior Poster

Re: Does google understand javascript?

  #2  
Jun 14th, 2004
Yes it does. From what I hear it prefers if the javascript has the actual URL that it wil be landing on
window.location("http://www.mcpmedia.com");
and it doesn't read it if it is inside a select box. It really much prefers a good text link to anything else tho.

http://www.highrankings.com/forum/in...avascript+link
Need a website designer? arizona web design : phoenix web design : MCP Media intelligent web design and web development solutions. MCP Media is owned and operated by Chris Hooley - who happens to be a real nerd... on purpose :-)
Reply With Quote  
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 11,032
Reputation: cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice 
Rep Power: 33
Solved Threads: 117
Admin
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: Does google understand javascript?

  #3  
Jun 14th, 2004
Unfortunately that is not good news for me. The code I had in mind was the "featured threads" listing in the sidebar of my forum index. It uses http://www.daniweb.com/techtalkforum...al.php?type=js

<script src="external.php?type=js" type="text/javascript"></script>
<script type="text/javascript">
<!--
for (i=0;i<10;i++)
{
  document.writeln("<div class=\"smallfont\" style=\"padding:8px\">" + threads[i].threaddate + " " + threads[i].threadtime + "<br /><strong><a href=\"thread" + threads[i].threadid + ".html\">" + threads[i].title + "</a></strong><br />" + threads[i].poster + "</div>");
}
//-->
</script>

According to the link you sent me, google is experimenting with a spider that can follow simple JavaScript that clearly contains the URL only. Oh well.
Dani the Computer Science Gal
Reply With Quote  
Join Date: Jun 2004
Location: Phoenix Arizona
Posts: 115
Reputation: Arizona Web is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 2
Arizona Web's Avatar
Arizona Web Arizona Web is offline Offline
Junior Poster

Re: Does google understand javascript?

  #4  
Jun 14th, 2004
On a positive note, I think I cought wind that it is also experimenting with a bot that can read javascript write stuff too. But I wouldn't bet the farm on it.

That looks like something you could do with PHP tho.
Need a website designer? arizona web design : phoenix web design : MCP Media intelligent web design and web development solutions. MCP Media is owned and operated by Chris Hooley - who happens to be a real nerd... on purpose :-)
Reply With Quote  
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 11,032
Reputation: cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice 
Rep Power: 33
Solved Threads: 117
Admin
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: Does google understand javascript?

  #5  
Jun 19th, 2004
That would be nice. In the meantime, I have added <noscript> tags.
Dani the Computer Science Gal
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 10:38 am.
Newsletter Archive - Sitemap - Privacy Statement - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC