<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Master Pages, Themes and Navigation Controls</title><link>http://forums.asp.net/139.aspx</link><description>Discussions of MasterPages, Themes, and other page-related features. &lt;A href="http://aspadvice.com/SignUp/list.aspx?l=164&amp;amp;c=30" target=_blank&gt;Email List&lt;/A&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: I need some help with delaying the menu control</title><link>http://forums.asp.net/thread/3493712.aspx</link><pubDate>Wed, 04 Nov 2009 11:50:20 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3493712</guid><dc:creator>yupinggang</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3493712.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=3493712</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;The Ace:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;/p&gt;&lt;p&gt;I want to do exactly the opposite of this. The menu i am using has more than 1000 items in it. Whenever a user hovers on the menu it takes 3-4 seconds atleast for the flyout to display. Is there a way to make the javascript work fast?&lt;/p&gt;
&lt;p&gt;The same menu opened in Mozilla shows the flyouts in almost real time. So i think the javascript engine in IE has some issues. Any help or suggestion is greatly appreciated.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;Wow! I can&amp;#39;t imagine having more than 1,000 items in the menu.&lt;/p&gt;
&lt;p&gt;Is JavaScript necessary for your menu to function properly? If it is not, you could use CSS alone to display the menu. &lt;/p&gt;&lt;p&gt;The delay might also be due to the fact that you have a huge amount of menu items.&lt;/p&gt;&lt;p&gt;By the way, which IE version are you using?&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: I need some help with delaying the menu control</title><link>http://forums.asp.net/thread/3493046.aspx</link><pubDate>Wed, 04 Nov 2009 05:57:21 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3493046</guid><dc:creator>The Ace</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3493046.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=3493046</wfw:commentRss><description>&lt;p&gt;I want to do exactly the opposite of this. The menu i am using has more than 1000 items in it. Whenever a user hovers on the menu it takes 3-4 seconds atleast for the flyout to display. Is there a way to make the javascript work fast?&lt;/p&gt;
&lt;p&gt;The same menu opened in Mozilla shows the flyouts in almost real time. So i think the javascript engine in IE has some issues. Any help or suggestion is greatly appreciated.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: I need some help with delaying the menu control</title><link>http://forums.asp.net/thread/2402308.aspx</link><pubDate>Wed, 04 Jun 2008 23:10:26 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2402308</guid><dc:creator>MNF</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2402308.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=2402308</wfw:commentRss><description>&lt;p&gt;&lt;a id="q9ad0" href="http://forums.asp.net/members/yupinggang.aspx"&gt;yupinggang&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you for the script. It works great. &lt;br id="ufif0" /&gt;I&amp;#39;ve slightly modified it( put in a separate JS file,call &lt;font id="ws4n0" face="Courier New"&gt;initMenuMouseHoverInterceptors just in the same file,added handling&amp;nbsp;in case if no menu on the page etc.) and posted &lt;a class="" href="http://geekswithblogs.net/mnf/archive/2008/06/04/override-asp.net-menu-javascript-functions-to-delay-dynamic-menus-popup.aspx"&gt;here&lt;/a&gt;.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: I need some help with delaying the menu control</title><link>http://forums.asp.net/thread/2320983.aspx</link><pubDate>Fri, 25 Apr 2008 11:46:28 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2320983</guid><dc:creator>skynyrd</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2320983.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=2320983</wfw:commentRss><description>&lt;p&gt;Wow that is amazing.&lt;/p&gt;
&lt;p&gt;I tested it and it works very well&lt;/p&gt;
&lt;p&gt;I just had to change this part:&lt;/p&gt;
&lt;p&gt;ref_overrideMenu_HoverStatic = overrideMenu_HoverStatic;&lt;br /&gt;overrideMenu_HoverStatic = My_overrideMenu_HoverStatic;&lt;/p&gt;
&lt;p&gt;to&lt;/p&gt;
&lt;p&gt;ref_overrideMenu_HoverStatic = Menu_HoverStatic;&lt;br /&gt;Menu_HoverStatic = My_overrideMenu_HoverStatic;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks!&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: I need some help with delaying the menu control</title><link>http://forums.asp.net/thread/2320885.aspx</link><pubDate>Fri, 25 Apr 2008 10:53:16 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2320885</guid><dc:creator>yupinggang</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2320885.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=2320885</wfw:commentRss><description>&lt;p&gt;Take a look at the following:&lt;/p&gt;&lt;p&gt;http://blogs.msdn.com/howard_dierking/archive/2007/04/23/polymorphic-javascript-well-kind-of.aspx?CommentPosted=true#commentmessage&lt;/p&gt;&lt;p&gt;Thanks to the author, I am now able to delay expanding of menu&lt;/p&gt;&lt;p&gt;when you move your mouse over it. The solution works great for me although it may not be efficient.&lt;br /&gt; &lt;/p&gt;&lt;p&gt;The menu won&amp;#39;t expand unless you stay on the menu for a specific amount of time.&lt;/p&gt;&lt;p&gt;Here&amp;#39;s the code I put in my master page, between the &amp;lt;head&amp;gt; and &amp;lt;/head&amp;gt; tags.&lt;/p&gt;&lt;p&gt;(Remember to call the function initInterceptors() in &amp;lt;body&amp;gt; tag, &amp;lt;body onload=&amp;quot;initInterceptors()&amp;quot; ..&amp;gt;)&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&amp;nbsp;&lt;pre class="coloredcode"&gt;&lt;b id="1"&gt;1    &lt;/b&gt;&lt;span class="cmt"&gt;&amp;lt;!-- @BEGIN:: JavaScript to prevent the expanding of static menu when you quickly mouse over them --&amp;gt;&lt;br /&gt;&lt;b id="2"&gt;2    &lt;/b&gt;	&amp;lt;!-- A big thanks to hdierking --&amp;gt;&lt;br /&gt;&lt;b id="3"&gt;3    &lt;/b&gt;	&amp;lt;!-- Reference website: http://blogs.msdn.com/howard_dierking/archive/2007/04/23/polymorphic-javascript-well-kind-of.aspx?CommentPosted=true#commentmessage --&amp;gt;&lt;/span&gt;	&lt;br /&gt;&lt;b id="4"&gt;4    &lt;/b&gt;	&amp;lt;&lt;span class="tag"&gt;script&lt;/span&gt;&lt;span class="attr"&gt; type=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;text/javascript&amp;quot;&lt;/span&gt;&amp;gt;&lt;br /&gt;&lt;b id="5"&gt;5    &lt;/b&gt;		var myVar;&lt;br /&gt;&lt;b id="6"&gt;6    &lt;/b&gt;		var myTimeoutID;&lt;br /&gt;&lt;b id="7"&gt;7    &lt;/b&gt;		var myNode, myData;&lt;br /&gt;&lt;b id="8"&gt;8    &lt;/b&gt;		var ref_Menu_HoverStatic;&lt;br /&gt;&lt;b id="9"&gt;9    &lt;/b&gt;		var ref_Menu_Unhover;&lt;br /&gt;&lt;b id="10"&gt;10   &lt;/b&gt;		var ref_overrideMenu_HoverStatic;&lt;br /&gt;&lt;b id="11"&gt;11   &lt;/b&gt;		&lt;br /&gt;&lt;b id="12"&gt;12   &lt;/b&gt;		// This function is called in &amp;lt;&lt;span class="tag"&gt;body&lt;/span&gt;&lt;span class="attr"&gt; onload=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;...&amp;quot;&lt;/span&gt;&amp;gt;&lt;br /&gt;&lt;b id="13"&gt;13   &lt;/b&gt;		function initInterceptors()&lt;br /&gt;&lt;b id="14"&gt;14   &lt;/b&gt;		{&lt;br /&gt;&lt;b id="15"&gt;15   &lt;/b&gt;			// *** Interceptors ***&lt;br /&gt;&lt;b id="16"&gt;16   &lt;/b&gt;			// @:: Menu_Hover&lt;br /&gt;&lt;b id="17"&gt;17   &lt;/b&gt;			ref_Menu_HoverStatic = Menu_HoverStatic;&lt;br /&gt;&lt;b id="18"&gt;18   &lt;/b&gt;			Menu_HoverStatic = My_Menu_HoverStatic;&lt;br /&gt;&lt;b id="19"&gt;19   &lt;/b&gt;			&lt;br /&gt;&lt;b id="20"&gt;20   &lt;/b&gt;			// @:: Menu_Unhover&lt;br /&gt;&lt;b id="21"&gt;21   &lt;/b&gt;			ref_Menu_Unhover = Menu_Unhover;&lt;br /&gt;&lt;b id="22"&gt;22   &lt;/b&gt;			Menu_Unhover = My_Menu_Unhover;&lt;br /&gt;&lt;b id="23"&gt;23   &lt;/b&gt;			&lt;br /&gt;&lt;b id="24"&gt;24   &lt;/b&gt;			// @:: overrideMenu_HoverStatic&lt;br /&gt;&lt;b id="25"&gt;25   &lt;/b&gt;			ref_overrideMenu_HoverStatic = overrideMenu_HoverStatic;&lt;br /&gt;&lt;b id="26"&gt;26   &lt;/b&gt;			overrideMenu_HoverStatic = My_overrideMenu_HoverStatic;&lt;br /&gt;&lt;b id="27"&gt;27   &lt;/b&gt;		}&lt;br /&gt;&lt;b id="28"&gt;28   &lt;/b&gt;		&lt;br /&gt;&lt;b id="29"&gt;29   &lt;/b&gt;		function My_Menu_HoverStatic(item)&lt;br /&gt;&lt;b id="30"&gt;30   &lt;/b&gt;		{	&lt;br /&gt;&lt;b id="31"&gt;31   &lt;/b&gt;			My_overrideMenu_HoverStatic(item);&lt;br /&gt;&lt;b id="32"&gt;32   &lt;/b&gt;		}&lt;br /&gt;&lt;b id="33"&gt;33   &lt;/b&gt;		&lt;br /&gt;&lt;b id="34"&gt;34   &lt;/b&gt;		function My_overrideMenu_HoverStatic(item)&lt;br /&gt;&lt;b id="35"&gt;35   &lt;/b&gt;		{&lt;br /&gt;&lt;b id="36"&gt;36   &lt;/b&gt;			var node = Menu_HoverRoot(item);&lt;br /&gt;&lt;b id="37"&gt;37   &lt;/b&gt;		    var data = Menu_GetData(item);&lt;br /&gt;&lt;b id="38"&gt;38   &lt;/b&gt;			myNode=node;&lt;br /&gt;&lt;b id="39"&gt;39   &lt;/b&gt;			myData=data;&lt;br /&gt;&lt;b id="40"&gt;40   &lt;/b&gt;		    if (!data) return;	&lt;br /&gt;&lt;b id="41"&gt;41   &lt;/b&gt;			&lt;br /&gt;&lt;b id="42"&gt;42   &lt;/b&gt;			myVar = item;			&lt;br /&gt;&lt;b id="43"&gt;43   &lt;/b&gt;			myTimeoutID=setTimeout(&amp;quot;My_DelayExpandMenu(myNode,myData)&amp;quot;,200);&lt;br /&gt;&lt;b id="44"&gt;44   &lt;/b&gt;		}&lt;br /&gt;&lt;b id="45"&gt;45   &lt;/b&gt;	&lt;br /&gt;&lt;b id="46"&gt;46   &lt;/b&gt;		function My_DelayExpandMenu(node, data)&lt;br /&gt;&lt;b id="47"&gt;47   &lt;/b&gt;		{	&lt;br /&gt;&lt;b id="48"&gt;48   &lt;/b&gt;		    __disappearAfter = 100; //data.disappearAfter;&lt;br /&gt;&lt;b id="49"&gt;49   &lt;/b&gt;		    Menu_Expand(node, data.horizontalOffset, data.verticalOffset); &lt;br /&gt;&lt;b id="50"&gt;50   &lt;/b&gt;		}&lt;br /&gt;&lt;b id="51"&gt;51   &lt;/b&gt;	&lt;br /&gt;&lt;b id="52"&gt;52   &lt;/b&gt;		function My_Menu_Unhover(item)&lt;br /&gt;&lt;b id="53"&gt;53   &lt;/b&gt;		{		&lt;br /&gt;&lt;b id="54"&gt;54   &lt;/b&gt;			clearTimeout(myTimeoutID);&lt;br /&gt;&lt;b id="55"&gt;55   &lt;/b&gt;			ref_Menu_Unhover(item);&lt;br /&gt;&lt;b id="56"&gt;56   &lt;/b&gt;		}&lt;br /&gt;&lt;b id="57"&gt;57   &lt;/b&gt;		              &lt;br /&gt;&lt;b id="58"&gt;58   &lt;/b&gt;    &amp;lt;/&lt;span class="tag"&gt;script&lt;/span&gt;&amp;gt;&lt;br /&gt;&lt;b id="59"&gt;59   &lt;/b&gt;	&lt;span class="cmt"&gt;&amp;lt;!-- ~END:: JavaScript to prevent the expanding of static menu when you quickly mouse over them --&amp;gt;&lt;/span&gt;
&lt;b id="60"&gt;60   &lt;/b&gt;	&lt;br /&gt;&lt;/pre&gt;&amp;nbsp;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: I need some help with delaying the menu control</title><link>http://forums.asp.net/thread/2194760.aspx</link><pubDate>Mon, 25 Feb 2008 20:19:42 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2194760</guid><dc:creator>archetech</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2194760.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=2194760</wfw:commentRss><description>&lt;p&gt;I know it&amp;#39;s been a while since this post, but I didn&amp;#39;t find any good solutions anywhere, so I thought I would reply.&amp;nbsp; I was able to achieve this.&amp;nbsp; I wrapped the menu control in a user control (one could achieve the same thing by extending it with a server control) and overrode it&amp;#39;s render method to replace the javascript calls with calls to a javascript function that call Menu_HoverStatic via the setTimeOut method.&amp;nbsp;&amp;nbsp; The setTimeOut method was mentioned above, but the solution was incomplete and referenced &amp;#39;this&amp;#39; in the function expression.&amp;nbsp; Here is the code:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;//Global javascript variables&lt;/p&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;var&lt;/font&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt; sendingCel;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt; 
&lt;p&gt;var&lt;/font&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt; outID;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;
&lt;p&gt;&lt;font color="#a31515"&gt;//Two javascript funcions&lt;/font&gt;&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;function&lt;/font&gt;&lt;font size="2"&gt; CallMenuDelayed(sender) &lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&amp;nbsp;&amp;nbsp; sendingCel = sender;&lt;/p&gt;&amp;nbsp;&amp;nbsp; outID = setTimeout(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;#39;Menu_HoverStatic(sendingCel)&amp;#39;&lt;/font&gt;&lt;font size="2"&gt;,250);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;}&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;function&lt;/font&gt;&lt;font size="2"&gt; CloseMenuDelayed(sender)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; clearTimeout(outID);&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; Menu_Unhover(sender); &lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;//override the render method of the user control or server&amp;nbsp;control&lt;/p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;protected&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;override&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;font size="2"&gt; Render(&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;HtmlTextWriter&lt;/font&gt;&lt;font size="2"&gt; writer)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;StringBuilder&lt;/font&gt;&lt;font size="2"&gt; stringBuilder = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;StringBuilder&lt;/font&gt;&lt;font size="2"&gt;();&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;StringWriter&lt;/font&gt;&lt;font size="2"&gt; stringWriter = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;StringWriter&lt;/font&gt;&lt;font size="2"&gt;(stringBuilder);&lt;/p&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;HtmlTextWriter&lt;/font&gt;&lt;font size="2"&gt; htmlWriter = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;HtmlTextWriter&lt;/font&gt;&lt;font size="2"&gt;(stringWriter);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;base&lt;/font&gt;&lt;font size="2"&gt;.Render(htmlWriter);&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;font size="2"&gt; html = stringBuilder.ToString();&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;html = html.Replace(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;onmouseover=\&amp;quot;Menu_HoverStatic(this)\&amp;quot;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;onmouseover=\&amp;quot;CallMenuDelayed(this)\&amp;quot;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;html = html.Replace(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;onmouseout=\&amp;quot;Menu_Unhover(this)\&amp;quot;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;onmouseout=\&amp;quot;CloseMenuDelayed(this)\&amp;quot;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;writer.Write(html);&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;</description></item><item><title>Re: I need some help with delaying the menu control</title><link>http://forums.asp.net/thread/1914236.aspx</link><pubDate>Tue, 18 Sep 2007 13:05:38 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1914236</guid><dc:creator>skynyrd</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1914236.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=1914236</wfw:commentRss><description>&lt;p&gt;I managed to delay the expand response by using this code:&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;StaticItemTemplate&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;br /&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;table&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;br /&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;tr&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;br /&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;td&lt;/font&gt;&lt;font size="2"&gt;&amp;nbsp;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;onmouseover&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;pause(500);&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;br /&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;lt;%&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;#&lt;/font&gt;&lt;font size="2"&gt; Eval(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;Text&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;) %&amp;gt;&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;/&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;td&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;br /&gt;&amp;lt;/&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;tr&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;br /&gt;&amp;lt;/&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;table&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;br /&gt;&amp;lt;/&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;StaticItemTemplate&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;function&lt;/font&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt; pause( iMilliseconds )&lt;br /&gt;&lt;/font&gt;{&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;var&lt;/font&gt;&lt;font size="2"&gt; sDialogScript = &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;#39;window.setTimeout( function () { window.close(); }, &amp;#39;&lt;/font&gt;&lt;font size="2"&gt; + iMilliseconds + &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;#39;);&amp;#39;&lt;/font&gt;&lt;font size="2"&gt;;&lt;br /&gt;window.showModalDialog(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;#39;javascript:document.writeln (&amp;quot;&amp;lt;script&amp;gt;&amp;#39;&lt;/font&gt;&lt;font size="2"&gt; + sDialogScript + &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;#39;&amp;lt;&amp;#39;&lt;/font&gt;&lt;font size="2"&gt; + &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;#39;/script&amp;gt;&amp;quot;)&amp;#39;&lt;/font&gt;&lt;font size="2"&gt;);&lt;br /&gt;}&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;pause( iMilliseconds ) Cause the single Javascript thread to hald/pause/sleep/wait for a specified period of time, by opening in modalDialog window (IE only) that modally locks the browser until it returns.&amp;nbsp; This modal dialog is not opened to any page, but uses the Javascript: protocol to execute a javascript setTimeout.&amp;nbsp; In this modal context the setTimeout, has the desired affect of preventing any other script execution.&amp;nbsp; The sole purpose of the timeout execution script is to close the modal dialog which will return control/unluck the browser.&amp;nbsp; The intention was to find a way to allow the UI to be updated and rendered in the middle of function/method without the need to split the method up, remove nested calls, or use closures.&amp;nbsp; Used in this fashion to update the UI, a 0 (zero) is usually passed (or optionally omitted altogether) so that the only delay is for the UI to render&lt;/p&gt;
&lt;p&gt;source:&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;a href="http://www.ozzu.com/ftopic66049.html"&gt;http://www.ozzu.com/ftopic66049.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&amp;nbsp;&lt;/font&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;Unfortunately, there is a huge problem:&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;After the delay, the menu will always expand!&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000"&gt;The idea is to not expand at all, if the user hovers the menu for a short period of time.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000"&gt;I think the only way is to override the menu control.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;So&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;</description></item><item><title>Re: I need some help with delaying the menu control</title><link>http://forums.asp.net/thread/1914055.aspx</link><pubDate>Tue, 18 Sep 2007 11:46:18 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1914055</guid><dc:creator>skynyrd</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1914055.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=1914055</wfw:commentRss><description>&lt;p&gt;Try this:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;lt;table border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;tr onmouseover=&amp;quot;&lt;strong&gt;setTimeout&lt;/strong&gt;(&amp;#39;Menu_HoverDynamic(this)&amp;#39;,&lt;strong&gt;3000&lt;/strong&gt;)&amp;quot; onmouseout=&amp;quot;Menu_Unhover(this)&amp;quot; onkeyup=&amp;quot;Menu_Key(this)&amp;quot; id=&amp;quot;Menu1n4&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;td&amp;gt;&amp;lt;table cellpadding=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;0&amp;quot; width=&amp;quot;100%&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;tr&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;td style=&amp;quot;white-space:nowrap;width:100%;&amp;quot;&amp;gt;&amp;lt;a class=&amp;quot;Menu1_1&amp;quot; href=&amp;quot;javascript:__doPostBack(&amp;#39;Menu1&amp;#39;,&amp;#39;Main Nav1\Sub1&amp;#39;)&amp;quot;&amp;gt;Sub1&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/tr&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/table&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;/tr&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;/table&amp;gt;&lt;/p&gt;</description></item><item><title>Re: I need some help with delaying the menu control</title><link>http://forums.asp.net/thread/1913417.aspx</link><pubDate>Tue, 18 Sep 2007 02:04:32 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1913417</guid><dc:creator>Curious.net</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1913417.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=1913417</wfw:commentRss><description>&lt;p&gt;I am looking for a solution to the same problem.&amp;nbsp; Please note that we&amp;nbsp;are using asp.net menu control and looking at other controls is not an option.&amp;nbsp; Upon inspeaction looks to me that the control renders the javascrip function &amp;quot;Menu_HoverDynamic&amp;quot; function.&amp;nbsp; (Look at the following rendered HTML).&amp;nbsp; I tried to disect the source code (Using reflector)&amp;nbsp;for menu control to see the implementation of the javascript but looks like it is obfuscated.&amp;nbsp; I am wondering if anybody can give me hints on overriding this function or any other means of providing a delay setting for Menu control onmouseover event.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;lt;table border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;tr onmouseover=&amp;quot;Menu_HoverDynamic(this)&amp;quot; onmouseout=&amp;quot;Menu_Unhover(this)&amp;quot; onkeyup=&amp;quot;Menu_Key(this)&amp;quot; id=&amp;quot;Menu1n4&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;td&amp;gt;&amp;lt;table cellpadding=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;0&amp;quot; width=&amp;quot;100%&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;tr&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;td style=&amp;quot;white-space:nowrap;width:100%;&amp;quot;&amp;gt;&amp;lt;a class=&amp;quot;Menu1_1&amp;quot; href=&amp;quot;javascript:__doPostBack(&amp;#39;Menu1&amp;#39;,&amp;#39;Main Nav1\Sub1&amp;#39;)&amp;quot;&amp;gt;Sub1&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/tr&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/table&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;/tr&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;/table&amp;gt;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Thanks&lt;/strong&gt;&lt;/p&gt;</description></item><item><title>Re: I need some help with delaying the menu control</title><link>http://forums.asp.net/thread/1901897.aspx</link><pubDate>Tue, 11 Sep 2007 02:12:10 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1901897</guid><dc:creator>Johnson2007</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1901897.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=1901897</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;The standdard asp.net menu control used the onhover mouse event to expand the submenu. when the mouse over it, it will expand immediatly. I think you can implement this using the current menu control. May be you can find some other menu control. Look at this menu to to see whether it cover you requires? &lt;a href="http://www.scbr.com/docs/products/dhtmlxMenu/index.shtml" title="http://www.scbr.com/docs/products/dhtmlxMenu/index.shtml"&gt;http://www.scbr.com/docs/products/dhtmlxMenu/index.shtml&lt;/a&gt; . This menu even support expanding the submenu by clicking on the static menu.&lt;/p&gt;&lt;p&gt;However I also think delay some second is neddless.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: I need some help with delaying the menu control</title><link>http://forums.asp.net/thread/1901347.aspx</link><pubDate>Mon, 10 Sep 2007 17:28:02 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1901347</guid><dc:creator>machta</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1901347.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=1901347</wfw:commentRss><description>&lt;p&gt;I think you should use JavaScript for this. Or you&amp;nbsp;have to&amp;nbsp;do menu without it.&lt;/p&gt;
&lt;p&gt;I think that it&amp;#39;s needless and I see no reason ... &lt;/p&gt;</description></item><item><title>I need some help with delaying the menu control</title><link>http://forums.asp.net/thread/1901319.aspx</link><pubDate>Mon, 10 Sep 2007 17:06:19 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1901319</guid><dc:creator>bryankia</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1901319.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=1901319</wfw:commentRss><description>&lt;p&gt;When the user drags their mouse over the menus the drop down is activated immmediately.&amp;nbsp; how do I delay this for a very short period of time.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Bryan&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;PS this has got to be easy but will be darned I can not find it.&lt;/p&gt;</description></item></channel></rss>