| Re: Menu doesn't go away when using iframes ¶ | |
| Indeed, I can confirm this issue with the IFRAME approach. We do set the event handlers, but sometimes they don't get called, and—worse—when the iframe document changes, our handlers get lost. I will look into this problem, but until we have a fix, let me ask you if you would be happy with a “cross-frames” solution. For that, you have to use a real frameset. Current versions of DynarchMenu don't support cross-frame menus, but we have one in development which looks quite good and is to be released within the next few days. Either way, I will try to find a solution for the iframe problems too. | |
| Re[2]: Menu doesn't go away when using iframes ¶ | |
| As a follow up to Mike Gorman's question - We really need an IFRAME solution because switching to regular frames will require rework that we can't afford to do right now. I am working with Mike Gorman and I will be handling this issue. We have the ability to add whatever javascript listeners we need to on all content that displays in the IFRAME. I am pretty sure that all we need to do is to call some function on the dynarch component every time a page loads into the IFRAME. If you can send a patch then I can just go head an fix it on our end -- until the next version of this software is released with this fix. | |
| last |
| Re[3]: Menu doesn't go away when using iframes ¶ | |
| In fact, I wanted to tell you this by email—but I wasn't sure you work with Mike on this issue. Yes, I did find an workaround and it will be very easy to apply it in the next release of DynarchMenu (which will see the light sometime next week). But if you're really in a hurry, here are the essential steps. 1) Add the following code anywhere in your JavaScript files, after loading hmenu.js: DynarchMenu.watchFrame = function(f, w) { 2) Add an onload handler to your IFRAME like this: <iframe src="whatever.html" onload="initFrame()"></iframe> And hopefully that's it. :-) All problems gone. I am sorry things get so complicated, but unfortunately that's the situation... I did a lot of tests and there's no easy and portable way for us to do this automatically—so you'll have to add that “onload” handler. Otherwise, events get lost and it happens as Mike described. I hope this trick will be useful to you. In the next version, DynarchMenu will include the "watchFrame" function so you'll only need to write the "initFrame" function. Please let me know if it solved the problem. Best regards, | |
| last |














