Use of the Calendar inside the DynarchMenu
2005/07/09 00:49
Viewed 3917 times
Replies: 1/1
by Ed
This does not seem to work.  The instance on the page works fine, but the one on the menu is displayed, but it gets confused and the date selection as well as the month and year drop downs do not work.  Am I doing something wrong?  Suggestions?

<body onload="DynarchMenu.setup('context-menu',{context:true});">
 
&nbsp;<br />
&nbsp;<br />
Popup Menu goes here <span id='test1' style='border:red solid 1px' class="div1">Right click me!</span><br />
&nbsp;<br />
&nbsp;<br />

<div style="float: right; margin-left: 1em; margin-bottom: 1em;" id="calendar-container-page"></div>
<script type="text/javascript">
    function dateChanged_page(calendar) {};
    Calendar.setup({flat : "calendar-container-page", flatCallback : dateChanged_page});
</script>

<ul id="context-menu" style="display: none">
    <li class="context-class-span-div1">
        <ul>
            <li>Item 1</li>
            <li>Calendar Test
                <ul>
                    <li>
                        <div>
<div align="center">
    <input type="radio" name="rd_cal">on or before
    <input type="radio" name="rd_cal">between
    <input type="radio" name="rd_cal" checked>on or after
</div>
<hr />
<div style="float: center; margin-bottom: 1em;" id="calendar-container-menu"></div>
<script type="text/javascript">
    function dateChanged_menu(calendar) {};
    Calendar.setup({flat : "calendar-container-menu", flatCallback : dateChanged_menu});
</script>
                        </div>
                    </li>
                </ul>
            </li>
        </ul>
    </li>
</ul>

</body>
last
Re: Use of the Calendar inside the DynarchMenu
2005/07/09 01:04
Viewed 5600 times
Replies: 0/0
by Ed

BTW: the behavior in IE is different from the behavior in Firefox.

In Firefox the calendar is inert.

In IE the calendar seems to resize as the mouse hovers (CSS problem?) and the date selection loses its state after you click on the month and year drop downs (mouse events/state being lost?) .

last
unique colors for popup menus
2005/07/22 23:38
Viewed 3636 times
Replies: 1/2

Hello, I am trying the product, we are going to buy, and I am using it in vertical mode. What I need to do is set the background color and font of my sub-level menus indepently. so, my main menu is transparent, but on each different level 1 menu, I need to be able to set a separate color:

Main Menu - transparent
Item 1
- Sub 1- red background on view and on hover
Item 2
- Sub 2 - blue background on view and on hover
Item 3
- Sub 3 - green background on view and on hover

is this possible? Is it possible to change the font color to be different on each sub menu?

I can't figure out how to set up a custom css class for each sub to do this correctly.

Thanks,
Brian

last
Re: unique colors for popup menus
2005/07/23 16:09
Viewed 5212 times
Replies: 1/1

Yes, this is possible by assigning a class name to UL elements that define each submenu. When you do that, the top-level DIV element that contains the menu items will be assigned that class name as well, so you could for instance say:

<ul id="menu">
<li>Item 1
<ul class="submenu1">
... submenu 1 contents
</ul>
</li>
<li>Item 2
<ul class="submenu2">
... submenu 2 contents
</ul>
</li>
</ul>

And here's an example style that needs to go in the document <head>:

<style type="text/css">
@import url("/hmenu/skin-xp.css");
div.submenu1 { background-color: red; }
div.submenu1 tr.item.hover { background-color: white; }
div.submenu2 { background-color: blue; }
/* etc. */
</style>

Please let me know if that helped.

last
hover action 'callback'
2005/07/25 19:40
Viewed 3504 times
Replies: 1/2

Just bought the menu product and it is great!

Can I set up a callback for the hover action of a menu item, so I can trigger some other javascript on the page? For example, I want to hover over a menu item and change color/content of another div on the page, along with triggering the normal menu functions.

I'm sure it is possible, I just don't see it.

Brian

last
Re: hover action 'callback'
2005/07/25 20:44
Viewed 5083 times
Replies: 1/1

Seems like you didn't buy the menu under your user name?

Anyhow, such event handler doesn't exist, but we could promise to add it in the next version if it's that important for you.

last
Hide Dropdown menu
2005/07/27 02:21
Viewed 3685 times
Replies: 1/5

dropdown menu doesnt hide when a modal window is opened. I want to hide the menu when modal window is opened. do i need to write any extra code. it works fine if I open regular windows using javascript and window.open method.

Let me know...........

I am using IE 6.0

last
Menu (works in IE) doesn't pop up in Netscape 7.0
2005/08/01 06:35
Viewed 3502 times
Replies: 1/2
by Ari

I'm testing the Menu for purchase. It initiates fine in Netscape, but doesn't actually pop up (which renders it pretty useless, since the links are hidden.)

this page works in IE but not netscape:
http://www.elzweig.com/pages.php

last
Re: Menu (works in IE) doesn't pop up in Netscape 7.0
2005/08/01 08:48
Viewed 4947 times
Replies: 1/1

I'm testing the Menu for purchase. It initiates fine in Netscape, but doesn't actually pop up (which renders it pretty useless, since the links are hidden.)

this page works in IE but not netscape:
http://www.elzweig.com/pages.php

That's because there is a problem with your code.  The submenu's <ul> element must be nested in the parent menu item <li>, like this:

<ul id="menu">
<li>About Elzweig
<ul>
... submenu items here ...
</ul>
</li>
...
</ul>

Your code contains the submenu <ul> right after closing the parent item <li>, which is wrong.

Hope this helps.

last
Closing the context menu
2005/08/02 17:44
Viewed 3270 times
Replies: 0/0
by Greg

We are currently using your menu as a lookup. So when the user clicks in a specific input box they are given the lookup menu. It works great. But if they are just typing the value in instead of looking it up, the menu persists until they actually click outside of the menu. Is there a way to make it disapear as soon as they leave the menu or as soon as they type anything? I've looked at the electric attribute but It looks like I cannot have the menu close when I move outside of it and be shown only on a click and not a hover.

Again, hmenu is working great for us. Just wanted to see if there were some features that I was unaware of.

last
Shiow menu label bold
2005/08/02 21:31
Viewed 3638 times
Replies: 1/2

Can we show label text of only one menu item bold. if possible how?
eg:
<li id="smenu32">
m1
</li>

<li id="smenu33">
m1
</li>
<li id="smenu34">
m3
</li>

i want to show m3 as bold

last
Re: Shiow menu label bold
2005/08/03 09:19
Viewed 5254 times
Replies: 1/1

There are 2 possibilities.

  1. the easiest one, add an <a> tag:
    <li>
    <a> <b>m3</b> </a>
    </li>

    If you add an <a> tag, even if it has no href, its content will be taken “as is” and included in the menu label.

  2. add a class name and customize it through CSS:

    <li class="bold">
    m3
    </li>

    and add the following in your document <head>:

    <style type="text/css">
    .bold { font-weight: bold }
    </style>
 
last
Google