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 TurnbullGroup: Moderators Posts: 4042Joined: 7 Dec 2003Location: New ZealandIP: 203.109.--.--
Posted:
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 ReavesGroup: Guests IP: 207.191.--.--
Posted:
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 TurnbullGroup: Moderators Posts: 4042Joined: 7 Dec 2003Location: New ZealandIP: 203.109.--.--
Posted:
I'm just leaving on holiday this week sorry... don't have time to dig into it now :(.
- Angus.
5) Theo ReavesGroup: Guests IP: 207.191.--.--
Posted:
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 ReavesGroup: Guests IP: 207.191.--.--
Posted:
Just checking to see if you were able to find anything?
7) Angus TurnbullGroup: Moderators Posts: 4042Joined: 7 Dec 2003Location: New ZealandIP: 203.173.--.--
Posted:
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 ReavesGroup: Guests IP: 207.191.--.--
Posted:
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 TurnbullGroup: Moderators Posts: 4042Joined: 7 Dec 2003Location: New ZealandIP: 118.92.--.--
Posted:
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.