Prototype "Ajax.Request is not a constructor" Fix
Date: Tuesday, December 23 @ 18:08:13 PST
Topic: Internet Stuff


If you are using Prototype with bsn.Autosuggest, you may receive "Ajax.Request is not a constructor" errors when attempting to post a new Ajax Request.    I encountered this when implementing Starbox while also having bsn.Autosuggest loaded too.

The fix for me was to replace "_bsn.Ajax" with
"_bsn.Ajax2" in the bsn.autosuggest javascript file.   There was a conflict where Starbox was trying to use the Ajax object from autosuggest instead of prototype.








This article comes from Nic & Josh
http://www.nicandjosh.com

The URL for this story is:
http://www.nicandjosh.com/modules.php?name=News&file=article&sid=138