Context menu class in document.write
2004/12/05 13:48
Viewed 5599 times
Replies: 1/5

OK I managed to get both my main menu and my context menu working. The only remaining problem (and this is really more of a "nice to have") is that if I generate the elements that I want my context menu to appear on when I right click (in this case links) dynamically via javascript it doesn't work.

In the section of my page where my treeview control appears I have a javascript that iterates through several of these:
d.add({$TreeItems[i].Parent}, {$TreeItems[i].PlaceID}, '{$TreeItems[i].Name}', '?{$treeIDName}={$TreeItems[i].NodeID}');

In the js code that builds the tree it takes these paramters and builds a table with indents and hrefs out of them. I modified that code so that instead of just printing the straight href it also adds an "id='mycontext'" into each items link. Ideally the context menu will only appear when someone right clicks on one of these treeview links.

What happens though when the page loads is that the javascript generated portion of the page is completely ignored and only my statically defined hrefs pick up the context menu.

I tried initiallizing DynarchMenu.setup after the tree is generated but that didn't change anything. Is it just not possible to get a context menu working on elements that are generated by Javascripts document.write?

last
Re: Context menu class in document.write
2004/12/05 14:16
Viewed 7969 times
Replies: 1/4

Well, as long as you call DynarchMenu.setup after your elements are generated, it should work fine. Just make sure you assign an ID to those elements that that you pass the correct ID in the class attribute of the LI defining the context menu, as described in the sample files related to context menus. I can provide further assistance if you can show me a piece of code to work on. ;-) A test URL would be great.

last
Licenses
2004/12/08 16:03
Viewed 5238 times
Replies: 1/1

First of all: great job.

I have some doubts with the licenses:

  • If I purchase a license, are valid only for this version of dynarchmenus (2.3) or will be also valid for (all) future versions?
  • If I purchase a license now and i need later a more expensive one, can I upgrade for the price difference? Or must i purchase a complete new one?
  • After the december discount plans, what happened with the 'for IP' license that exists before? This one seemed the most appropriate for me in a near future.
  • Is obvious that I cannot remove nor moddify the copyright notices of your code, but.. can I modify the source code itself to meet my needs?
  • Do you plan to release/publish dynarchmenus as a open source in a future? Maybe when you have sold sufficient licenses to recover the time invested?

Thanks.

last
Re: Licenses
2004/12/08 17:50
Viewed 7265 times
Replies: 0/0
At 2004/12/08 16:03, elnencuc wrote:
  • If I purchase a license, are valid only for this version of dynarchmenus (2.3) or will be also valid for (all) future versions?

You will be able to upgrade for free for 6 months.  The policy is not yet established further than that, but most probably you will have discounted upgrade prices after the 6 months period.

    • If I purchase a license now and i need later a more expensive one, can I upgrade for the price difference? Or must i purchase a complete new one?

You will be able to update for the price difference, but you will have to contact us before (the process is not yet automatic).

    • After the december discount plans, what happened with the 'for IP' license that exists before? This one seemed the most appropriate for me in a near future.

We decided to discontinue it for now.

  • Is obvious that I cannot remove nor moddify the copyright notices of your code, but.. can I modify the source code itself to meet my needs?

Yes.

  • Do you plan to release/publish dynarchmenus as a open source in a future? Maybe when you have sold sufficient licenses to recover the time invested?

We can't comment on that for now.

last
Request for improvements
2004/12/08 16:19
Viewed 5253 times
Replies: 2/3
- Draggable. Besides of obvious use as menus, I plan to use your dynarchmenus as a tooltips for a help system, with complex HTML inside of the toltips. The tests that I have been able to do with the evaluation menus they are satisfactory, but i also need the tooltips to be draggable. Is this possible? - Scrollable. In a very large menu that hides in the lower part of the page, can you provide some mechanism to scroll the menus to make them visibles? - Timeoutable. In the electric menus, they are two timeouts. Can you provide a one more? This is what i need: - A timeout (500 mseconds or so) for the first level menus, when all the submenus are hidden. - A timeout (100 mseconds or so) for the navigation between menús, when some submenu are vissible. - A timeout (1000 mseconds or so) so that the submenus disappear if no option is selected or nothing is clicked.
last
Re: Request for improvements
2004/12/08 16:21
Viewed 7195 times
Replies: 0/0

Ooops! The popup editor seems no function correctly, the format of my post are missing. Sorry.

last
Re: Request for improvements
2004/12/09 18:43
Viewed 7117 times
Replies: 1/1

Hello.

Yesterday i posted a very ugly formated message to request some improvements. Sorry for the inconvenience. This is again (more or less) the same message with the correct format an a more extended explanation.

Can dynarchmenus be configured 'draggable', 'Scrolabble' and with a more acurate timeout?

  • Draggable: Besides of obvious use as menus, I plan to use your dynarchmenus as a tooltips for a help system, with complex HTML inside of the toltips. The tests that I have been able to do with the evaluation menus they are satisfactory, but i also need the tooltips to be draggable. Is this possible?
  • Scrollable: In a very large menu that hides in the lower part of the page, can you provide some mechanism to scroll the menus to make them visibles?
  • More Timeouts: In the electric menus, they are two timeouts. Can you provide a one more? This is what i need:

- A timeout (500 mseconds or so) for the first level menus, when all the submenus are hidden.
- A timeout (100 mseconds or so) for the navigation between menús, when some submenu are vissible.
- A timeout (1000 mseconds or so) so that the submenus disappear if no option is selected or nothing is clicked.

Maybe all these functionalities already exist in dynarchmenus, but I have not been able to find them in the documentacion of the demosntration version. If they do not exist.. Is possible to implement them? Is eassy? Are they good ideas for dynarcmenus?

I d'ont need these improvements now, but after three or four months. Maybe I myself can code them, but javascript and DOM are not my specialty, I am a PHP coder.

Thanks for your patience. And sorry for my english.

last
menu in frame
2004/12/21 18:12
Viewed 5405 times
Replies: 0/0

i have created a menu in a frame. however when the menu is bigger than the frame, it'll cut off at the frame boundary. is there a way to work around it?

last
fixed menus, multiple menus
2004/12/22 13:09
Viewed 5450 times
Replies: 1/4

hi, has anyone figured out to have the menu fixed at top of window (doesn't move with scrolling)? also, can one have multiple menus on the same page? it doesn't seem to work if you do it the "straight-foward" way. thanks.

last
Re: fixed menus, multiple menus
2004/12/22 14:49
Viewed 7649 times
Replies: 1/3

You can have multiple menus. You must initialize them one at a time, the same way you init a single menu; just make sure that the <UL>-s have different ID-s ;-)

As for the "fixed" stuff, there are several solutions:

  1. [the most straightforward; doesn't work with IE].  Embed the top level menu in a DIV with style="position: fixed".  Then feel free to position that DIV anywhere you want.  Like this:

    <div style="position: fixed; left: 10px; top: 10px">
    <ul id="menu">
    ... the menu content
    </ul>
    </div>

    "position: fixed" is in the CSS specification for many long years now.  But, IE/Win does not support it.

  2. Use an IFRAME for the page content.  The menu works pretty well with this in Gecko and Internet Explorer 5.5+, but fails on Opera, Konqueror, Apple Safari (browser bugs; they show the IFRAME on top of the menu).  However, the next version will contain a demo that shows this technique.

  3. Use "position: fixed" for all browsers except Internet Explorer.  Work around Internet Explorer bugs by using a technique to emulate fixed position.

At Dynarch.com we are successfully using (3) for keeping the items on the left fixed.
last
Lazy loading and links
2004/12/22 15:29
Viewed 7399 times
Replies: 1/1

I have a large menu I'm trying to load (using the evaluation version) and I'm loading it using the lazy attribute. What I have noticed is none of the links work when I load it using lazy... when I switch back to non-lazy it works fine... is there anything special I need to do to make this work...

last
Google