Event.observe is not a function

budda - January 14, 2007 - 18:43
Project:S/P Magic Menus
Version:HEAD
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:active
Description

FireFox 2 keeps giving me the JavaScript error Event.observe is not a function and so nothing works on the site.

The following gets inserted in to the header of my pages

<script type="text/javascript">
// <![CDATA[
Event.observe(window, 'load', spajax_init);
function spajax_init(){
float_menu('block-menu-43', 'normal', '', '', 'http://bargainspy.ixis.co.uk/spajax/set');
}
// ]]>
</script>

However I noted that no javascript inclusion is made for the JS prototype library?! So something is not calling spajax_head().

if I visit the settings page admin/settings/spajax/magicmenus, and save the same settings, then the menu blocks work fine whilst i stay on that page, any other page and I get the JS error.

 
 

Drupal is a registered trademark of Dries Buytaert.