- Create Account

FSMEnu and Rico

Forums > FreeStyle Menus > FSMEnu and Rico
Author
Message

1) Theo Reaves Group: Guests
IP: 207.191.--.--
Hello, I've used FSMenu on my pages along with rico.js (www.openrico.org) for a long time now with no problems, but with the latest version of IE tha came down in the most recent patch, my FSMenu has stopped working. I discovered if I take rico out, then the menu works fine.

Any  thoughts?

2) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 203.109.--.--
Try reversing the order of the scripts in the document perhaps?

Also, can you please post the versions of the browser/OSs in use here and link to your page? Thanks!

- Angus.

3) Theo Reaves Group: Guests
IP: 207.191.--.--
http://www.e9.com/fsmenu/fsmenu.html

IE Version 7.0.6000.16643 on Vista
IE Version 7.0.5730.13 on XP
Works in older versions of IE 7 and works in all other browsers.

If I take rico.js out, it will work. But I really need the two for what I'm doing.

Any help is appreciated.
Thanks!

4) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 203.109.--.--
I'm just leaving on holiday this week sorry... don't have time to dig into it now :(.

-  Angus.

5) Theo Reaves Group: Guests
IP: 207.191.--.--
Any help I can get would be very much appreciated. It is critical that I find a solution soon.

Thanks for your help.
Theo

6) Theo Reaves Group: Guests
IP: 207.191.--.--
Just checking to see if you were able to find anything?

7) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 203.173.--.--
Back from holidays now :).

The  error appears to involve the "type" property of objects, and stems from the old version of the Prototype script library you have included in the page.

Prototype, at least old versions of it, extends the "Object.prototype" global with additional properties that breaks many scripts, this included. Try upgrading to the very latest release of Prototype, as the library authors have since abandoned this practice, and the scripts are now quite compatible as a result.

- Angus.

8) Theo Reaves Group: Guests
IP: 207.191.--.--
Thanks for you reply.

I put the latest version of prototype from their web site in place, but still not working.

Again, thank you for any help you may be able to give.

Theo

9) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 118.92.--.--
Oh no, it seems that Rico deliberately re-breaks the issue that the Prototype devs fixed in >=v1.5 and *on purpose* recreates methods on Object.prototype. Arrrgh.

IMHO, Rico is broken by design. This seems to persist in version 2.0 as well. To illustrate the problem, try this:

Object.prototype.foo = 'Foo!';
var fruit = { 'Apple': 1, 'Banana': 2, 'Orange': 3 };
for (var  i in fruit) { alert(i + '=' + fruit[i])  };

Not what you expect, is it?

If you can, use a better JavaScript library than Rico. Prototype by itself is OK, Scriptaculous adds a lot of functionality to it. I will try later on to see if I can find a workaround of some sort though.

- 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.