Welcome Guest Search | Active Topics | Sign In | Register

URL display on menu item hover Options
Augie
Posted: Thursday, June 25, 2009 9:45:39 AM
Rank: Member
Groups: Member

Joined: 6/19/2009
Posts: 12
I have a simple question. Usually when you hover over a link or menu item on a page, you can see the links URL in the status bar at the bottom of the page. EO.WEB.Menu does not seem to do this and I am wondering how this effects web crawlers from indexing a site. Does the Menu have an option to enable this?
eo_support
Posted: Thursday, June 25, 2009 10:29:00 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

There is no need to worry about the crawlers. The Urls are in the generated script and todays crawlers are smart enough to search for anything that "looks like" an Url and follow it.

The reason that the menu does not show Url on status bar is because the menu can do a lot of other things other than loading a Url. For example, some user set the menu's RaisesServerEvent to true. In that case the menu will post back the page and triggers server side ItemClick event. Other user may set the menu's ClientSideOnItemClick to handle menu item click event with JavaScript.

The menu does not provide a single "switch" for you to turn on this. However you can easily handle the menu's ClientSideOnItemMouseOver to implement this:

Code: HTML/ASPX
<eo:Menu ClientSideOnItemMouseOver="mouse_over_handler" ....>
.....
</eo:Menu>


Code: JavaScript
function mouse_over_handler(e, info)
{
     window.status = info.getItem().getNavigateUrl();
}


Hope this helps.

Thanks!



You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.