- Create Account

Conflicting with Mootools v1.11

Forums > Cascading Popup Menus: Help > Conflicting with Mootools v1.11
Author
Message

1) smartpill Group: Members
Posts: 3 Joined: 11 Oct 2007 Location: Connecticut, USA IP: 71.235.--.--
Hi,
I'm working on a site for a client that uses Cascading Popup Menus with their Ektron CMS. The version they have is "CASCADING POPUP MENUS v5.2 RC (c) 2001-2005". When the Mootools library script is placed in the page it breaks the menu.

Would you have any suggestions or know if a newer version might work better?

2) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 203.118.--.--
Have you tried the latest version from this site by itself with Mootools?

- Angus.

3) smartpill Group: Members
Posts: 3 Joined: 11 Oct 2007 Location: Connecticut, USA IP: 71.235.--.--
Their site is hosted on an intranet so I have to access through someone else's screen sharing. We tried replacing the pop_core.js and pop_evets.js files with the most current ones and the menu didn't load. We then tried this fix found elsewhere on your forum, but may not be relevant to this:
[code]<script type="text/javascript">
    window.Moo_addEvent = window.addEvent;
    window.addEvent  = function(){
        var method = $type(arguments[0]) != 'string' ? 'PopupMenu'  : 'Moo';
        return this[method + '_addEvent'].apply(this, arguments);
    };
</script>[/code]
which  didn't do the trick either, but I'm no javascript master, so maybe there's something wrong in that.

4) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 203.118.--.--
This script doesn't use addEvent, only the newer scripts.

I just dropped the full MooTools v1.1.1 script into the current release of the menu, and the menu worked fine (didn't test any MooTools functions but there were no JS errors).

Perhaps get the Ektron guys to update their script; I'll fix any error you can find with the current release but I can't support outdated implementations...

- Angus.

5) smartpill Group: Members
Posts: 3 Joined: 11 Oct 2007 Location: Connecticut, USA IP: 71.235.--.--
That's fair enough – and encouraging. The mootools 1.11 file alone was causing the errors. So if that works then we can look into the other CPM related files. If the newer files work and we've tried replacing the pop_core.js and pop_events.js with the newer ones, what other files should I have them look at that would need to be replaced or updated? Also, are there instructions somewhere to reference what would need to be changed? Thanks for your assistance.

6) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 203.118.--.--
Have you got a link to the implementation? It's possible they're doing it in a rather non-standard fashion or something.

Generally speaking bugs in older versions of the script like that stem from Array.prototype extensions that I've since corrected.

- Angus.

7) elle Group: Members
Posts: 3 Joined: 2 Nov 2007 Location: USA IP: 64.118.--.--
I am using fsmenu and smoothgallery in a web page. I added the code suggested above- http://64.118.33.207. As you can see the menu is behind the slideshow. I have tried anding a z-index as in this page- http://www.designadvertising.net/heritage/index9.html This works in every browser firefox, safari, ie7 but not ie6. What am I doing wrong. Please be specific as I am new to this.

Thanks for your help in advance.

elle

8) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 203.118.--.--
One obvious problem I can see is that there's no link to www.twinhelix.com on there; have you made, or are you considering a donation instead?

Table layouts are always a bit tricky to get stacking right but try a "position: relative; z-index: 99999" on the .menulist UL element CSS.

- Angus.

Post a Reply:

You are not logged in, and will be posting anonymously as a guest. If you want to post using an account, please login at the top of this page.