Home
Search
Member List
Faq
Register
Login
UltimateSitemap
onClick
Thread Starter:
wunderleyg
Started:
04-11-2008 1:09 PM
Replies:
2
Karamasoft Support Forums
»
General Discussions
»
UltimateSitemap
»
onClick
Printable Version
« Previous Thread
Next Thread »
11 Apr 2008, 1:09 PM
wunderleyg
Joined on 04-04-2008
Posts 47
onClick
Is there a way to add onClick, onDoubleClick, etc. events to items in a sitemap?
11 Apr 2008, 1:30 PM
Karamasoft
Joined on 09-05-2004
Posts 6,820
Re: onClick
There is no built-in way to do this but you can wrap your sitemap node titles inside SPAN elements and adding those client-side event handlers to the SPAN elements around your title text. For example, let's say you have a sitemap node which has a title 'Phone Numbers' and you want to add a client-side onclick event handler. You can define your node in your sitemap fiel as follows:
<
siteMapNode
nodeID
=
"
Node3
"
title
=
"
<
span onclick=
"
alert(0);
">
Phone Numbers
<
/span
>
"
url
=
"
Apple.aspx
"
nodePrefix
=
"
—
&
nbsp;
"
></
siteMapNode
>
Note that ", <, and > characters need to be encoded as above in your sitemap file. However, if you are using the visual sitemap designer (UltimateSitemapDesigner) from inside the Visual Studio, you can just set the Title textbox to the following:
<span onclick="alert(0);">Phone Numbers</span>
11 Apr 2008, 1:34 PM
wunderleyg
Joined on 04-04-2008
Posts 47
Re: onClick
Perfect. Thank you very much
Page 1 of 1 (3 items)
Karamasoft Support Forums
»
General Discussions
»
UltimateSitemap
»
onClick
(please select)
Forums Home
─» Search Forums
─» Active Topics
─» Unanswered Posts
User Options
─» Sign In
─» Create a New Account
─» Forgot Password
General Discussions
─» Sales Questions
─» Announcements
─» UltimateAjax
─» UltimateCalendar
─» UltimateEditor
─» UltimateEmail
─» UltimateMenu
─» UltimatePanel
─» UltimateSearch
─» UltimateSitemap
─» UltimateSpell
─» UltimateTabstrip
─» UltimateEditorMVC
─» UltimateSearchMVC
─» UltimateSpellMVC
─» UltimateSearchSL
─» UltimateSpellSL
─» JavaScript Tips
─» General Feedback
You
can
add attachments
You
can
post new topics
You
can
reply to topics
You
can
delete your posts
You
can
edit your posts
You
can
create polls
You
can
vote in polls
Forum statistics are
enabled
Forum is
unmoderated