943,967 Members | Top Members by Rank

Ad:
Oct 24th, 2009
0

JS jump menu location indexing on search engines

Expand Post »
Hi all,

I'm creating different pages on a website for each branch in the country for a business. The way the user gets to their branch is through a dreamweaver generated jump menu.

My question is: Will search engine robots crawl the pages that are linked via the jump menu?

So for example the page for the London branch can only be navigated to via the jump menu (or typing in the url in the address bar). Will a search engine index this page?

The jump menu script is below:
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. <script type="text/javascript">
  2. <!--
  3. function MM_jumpMenuGo(objId,targ,restore){ //v9.0
  4. var selObj = null; with (document) {
  5. if (getElementById) selObj = getElementById(objId);
  6. if (selObj) eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  7. if (restore) selObj.selectedIndex=0; }
  8. }
  9. //-->
  10. </script>
  11.  
  12.  
  13.  
  14. <form id="form">
  15. <select name="country" id="country" onchange="MM_jumpMenuGo('country','parent',0)">
  16. <option value="">Choose</option>
  17. <option value="">======</option>
  18. <option value="england">England</option>
  19. <option value="scotland">Scotland</option>
  20. <option value="wales">Wales</option>
  21. <option value="northernireland">Northern Ireland</option>
  22. </select>
  23. <input type="button" name="go_button" id= "go_button" value="Go" onclick="MM_jumpMenuGo('country','parent',0)" />
  24. </form>
Similar Threads
Reputation Points: 32
Solved Threads: 3
Posting Whiz in Training
MaxMumford is offline Offline
228 posts
since Oct 2006
Oct 24th, 2009
0
Re: JS jump menu location indexing on search engines
Max,

That's a good question. I have always assumed NO, search engines will not penetrate javascript orchestrated hyperlinks. However, there's no particular reason why a smart search engine should not do so. But my best guess remains that most search engines will not.

A workaround would be to include standard html hyperlinks in addition to your jump menu. You could do this on the/each page (eg in a footer) or (probably better) in a "Site Map" page linked eg. from your site's main nav bar.

With a little imagination, you could automate the construction of both jump menu(s) and the corresponding section of the site map by writing either functions or a class that draws on the same "database" of urls (could be simply hard coded). This would ensure that the site map is always up to date with changes to your jump menu(s).

Airshow
Last edited by Airshow; Oct 24th, 2009 at 7:02 pm.
Sponsor
Reputation Points: 318
Solved Threads: 358
WiFi Lounge Lizard
Airshow is offline Offline
2,527 posts
since Apr 2009
Oct 25th, 2009
0
Re: JS jump menu location indexing on search engines
thanks for the reply and advice airshow. I had thought of having the drop down menu's automated using a database but by the time i had got to the branch page, the unique content for each page would be too detailed (with html codes and so on) to be stored in a database. Little changes will be made to the pages once they have been created anyway so I concluded it would be easiest to just do it all manually.

As for making my links search engine friendly, I will use the site map solution and consider adding text links to the pages as well underneath (also good for people with javascript turned off).

Thanks again for your help, much appreciated.
Reputation Points: 32
Solved Threads: 3
Posting Whiz in Training
MaxMumford is offline Offline
228 posts
since Oct 2006
Oct 25th, 2009
0
Re: JS jump menu location indexing on search engines
No probs.

Good luck

Airshow
Sponsor
Reputation Points: 318
Solved Threads: 358
WiFi Lounge Lizard
Airshow is offline Offline
2,527 posts
since Apr 2009
Oct 26th, 2009
0

select Box

sir i have a problem with select box,
Q1. I have two option in one select box sell and rent then we select the sell then 23 field will show and then rent selected then some field is remove by selection then how should i use the validation in this functionality .
Reputation Points: 10
Solved Threads: 0
Newbie Poster
jaspaltech is offline Offline
1 posts
since Oct 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JavaScript / DHTML / AJAX Forum Timeline: AJAX/PHP to open a certian window according to the variable received.
Next Thread in JavaScript / DHTML / AJAX Forum Timeline: Dependant combo only works one time in IE





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC