The last line of nice_menus.js is a setting of the windows onload function, which blows away any other setting.
The new ajax module has a function for this purpose. I tried to paste it in here but I was rejected, so I'll attach the module for your convenience, called 'addLoadEvent'.
| Comment | File | Size | Author |
|---|---|---|---|
| ajax_module-4.6.0.zip | 8.62 KB | bmargulies |
Comments
Comment #1
jakeg commentedPlease note that the latest CVS copy of this module fixes the onLoad problem.
Comment #2
bmargulies commentedI tried to see if you had an outstanding issue, but I have not figure out yet how to make drupal's search box sort wheat from chaff. Thanks, benson
Comment #3
z.stolar commentedThis is not quite exact.
The CVS version uses the addLoadEvent function which is supplied by another module, so using the last cvs version by itself, doesn't guarantee anything.
What I did to overcome this problem was simply to add hook_onload to the module, and that fixes the problem:
This of course obliges me to comment the last line in nice_menus.js
Finally, it works on FF and IE, doesn't contradict with any other scripts and doesn't create errors on IE.
Comment #4
z.stolar commentedOK, so it's not THAT succesful, because FF doesn't recognize the function (it's hidden from it), so I added the next lines in nice_menus.js:
now FF doesn't show js problems.
But, still, nice menus and another js I use (nifty corners - http://pro.html.it/articoli/id_599/idcat_31/pag_1/pag.html) - don't work together... damn. I sware it was ok two hours ago...
Comment #5
add1sun commentedclearing old issues - 4.6 is deprecated
Comment #6
add1sun commentedclearing old issues - 4.6 is deprecated