| Re: Any differences between trial and registered versions...? ¶ | |
| DynarchMenu does not support IE for the Mac, sorry about this. On one hand, it's nearly impossible to do any non-trivial DHTML stuff on that browser, and on the other, IE/Mac was discontinued by Microsoft about 2 years ago—so it shouldn't matter all that much nowadays. | |
| last |
| Context menus on images ¶ | |
| This relates a little to my earlier post regarding namespace poisoning in Opera (only in that it's the same code). The example is now at http://tams.com.au/~mca/image_context_menus/img_context.htm . The problem I'm having is getting a consistent interface across the 3 browsers that I care about (Opera, Firefox and IE). I have set it to activate on both left and right mouse buttons which works fine in FF but I can only get right click in Opera and left click in IE. I'd be happy to have only one button to activate the menu but I'd like it to be consistent if at all possible. Is it possible to capture the right click event on an img tag in IE ? That seems to be the problem (i.e. I'm seeing the normal context menu that you see when clicking on an image) Cheers, | |
| last |
| Re: Context menus on images ¶ | |
| Bugger, sorry about that, what I meant to say was this... I've done a little more playing around with very simple html/js tests to see what is going on. It looks to me that IE simply ignores any oncontextmenu trigger set on an area tag even though the MSDN site indicates that oncontextmenu is applicable to it. The other alternative is that it's not ignored but never actually gets to it (I'm thinking here that the img event is triggered before the area event and so never gets to the area). Alas, I think I'm screwed with what I wanted to do. I had hoped to have the usual href tag on the area used to drill down to the "default" subgraph with a left click and then use the rigth click context menu to allow the user to select the subgraph they want. This works well in FF and Opera but fails miserably in IE due to the above limitation. The only other possibility I can think of is to somehow allow a modifier key to be used to trigger the menu. Unfortunately I think this would require a reasonably complex change the the dynarch menu code... I just did some testing and a little hack to the code. In the definition of the ctx_onContextMenu event function you had the following Now, this explains somthing else that's been bugging me. In opera you are using the onclick and onmousedown event to trap the left and right clicks when setting up the context menu and then calling the ctx_onContextMenu handler function, then in the handler you test to see if the button is the right button and then do nothing if it's not... which explains why the left click context menus don't work in Opera! Getting back to my original topis though, I replaced that test above with this Obviously this quick hack is not the "right" way to do it as we don't necessrily want this behviour on all context menus. Is there some way to turn this into a more correct implemenatation that can be better controlled? Perhaps store something in the _msh_info2 object that defines what modifiers are required to trigger the menu? Cheers, | |
| last |
| Context Menu Positioning + Max Number of setupContent calls ¶ | |
| Hi Mihai, ...I made quite a bit of progress from yesterday ;-) A couple of more questions: 1) Is there a limit as to how many times we can attach a menu to an object with something like this (perhaps a memory leak, a browser bug, or something like that)? I would like to create some 10 individual context menus and attach then to different objects as the selections in a form change, so there would be no limit as to how many times they would be reassigned.
2) Is there a way to have the context menu positioned in relation to the <span>, <img> or <a> tag we are associating it with? I wanted to make it aligned as if it were a drop down menu and the <span>, <img> or <a> were its "parent". So it would drop down left-bottom-aligned to that control/tag and not pop up next to the mouse pointer as the samples do. It would make for a more "organized" look. BTW: The lazy initialization rocks! The attaching of the menu to 200 tags I asked you before was fast and worked like a charm. The setupContext function above solved most of my problems, it would be nice to be able to disable/gray out individual items as we talked about before, but for now I could display "you-stupid-user type messages ;-)". Overall I'm really impressed. So far I have been able to figure out how to do everything I want to with your menus. :-) One wishy-washy, but nice to have feature... a standard ready-to-plug-in "preferences" menu with the ability for the user to save the settings in their cookies. :-) | |
| last |
| Misaligned SubMenus in IE6 when inside table ¶ | |
| Hi again, It is the weekend, so you probably have not seen the post above. ;-) So... I just purchase DynarchMenu. It was very easy to setup, even for complex stuff. Most of my troubles had to do with generating the hierarchical syntax properly from the database rows. it gets tricky if you have unlimited levels, etc. but that is a function of my data not your tool. Anyway, besides the 2 questions above I run into an actual problem. It has to do with with the <!DOCTYPE> declaration in IE 6. DynarchMenu does not correctly align the popup of a menu inside a table when the declaration is present. Here is a test file. Place it under the hmenu-2.4.2/ directory in the standard distribution and it should run. It will misalign the popup menu in IE6. It will work as intended if you remove the 1st line. <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'DTD/xhtml1-transitional.dtd'> <htm xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <style type="text/css">@import url("./src/skin-xp.css");</style> <script type="text/javascript">_dynarch_menu_url = "./src/";</script> <script type="text/javascript" src="./src/hmenu.js"></script> </head> <body onload='DynarchMenu.setup("trail-menu",{electric:1000});'> <table cellspacing="0" cellpadding="0" width="100%" border="0"> <tr> <td> <ul id="trail-menu"> <li>_Bugger</li> <li>_Misalign-me <ul> <li><a href="/test-201">test-201</a></li> <li><a href="/test-202">test-202</a></li> <li><a href="/test-203">test-203</a></li> </ul> </li> </ul> </td> </tr> </table> </body> </html> OMG!!! Is there hope? Am I doing something wrong? -- besides using IE that is. Thanks! | |
| last |
| Menu evaluation ¶ | |
| Does your menu show on top though you have other window controls in the page. I saw few dhtml menus go back when you have <select> controls in the html page. pls let me know if ur menu supports this issue(z-index property) . | |
| last |
| Re: Menu evaluation ¶ | |
| Yes, it does. | |
| last |














