Cakephp Error Ajax.autocompleter Is Not A Constructor
your website? Ever get this error message? Ajax.Autocompleter is not a constructor All of the results I found on Google suggested that the solution to the problem was to make sure that you were including controls.js (which is where the autocompletion stuff lives in script.aculous). If you checked and double checked that you have controls.js (or that you're including scriptaculous.js which itself includes controls.js), then your problem could be that you included prototype.js twice. Example: script function createAC() { new Ajax.Autocompleter('mytextbox', 'myautocomplete', 'autocomplete/url', {}); }
» Blog » Symfony: Ajax.Autocompleter is not a constructor If you use Symfony and its Autocomletion feature, you may get the following error: "Ajax.Autocompleter is not a constructor" There could be two reasons for this: Necessary JS libraries are not loaded. To fix make sure you load the following libraries (example below is for including them from the action): $response->addJavascript('/sf/js/prototype/prototype'); $response->addJavascript('/sf/js/prototype/effects'); $response->addJavascript('/sf/js/prototype/controls'); You could be including Prototype JS http://cephas.net/blog/2006/12/07/ajaxautocompleter-is-not-a-constructor/ library twice. So for the example above I am adding a prototype JS library. In addition to that I could have added it to be added in the view.yml file. This would have caused the "Ajax.Autocompleter is not a constructor". Published by Anton on 04th January 2009. Categories: Technical. Comments are closed. Back to http://www.bordercrossingmedia.com/2009/01/symfony-ajaxautocompleter-is-not-a-constructor/ top Border Crossing Media specialises in user experience research, strategy and design. We help driven companies improve the customer experiences they deliver online. Call us on 0131 561 7300 to learn how we’d approach your project. Contact us 0131 561 7300Email us Border Crossing MediaCreative Exchange Leith29 Constitution StreetEdinburghUnited KingdomEH6 7BS Quick links Home UX Design Services Clients About Blog Contact Terms & Conditions Privacy policy Sitemap © Border Crossing Media Ltd Company No: SC 308 978 VAT No: 941 5263 31 Border Crossing Media specialises in user experience research, strategy and design. We help driven companies improve the customer experiences they deliver online. Call us on 0131 561 7300 to learn how we’d approach your project. Contact us 0131 561 7300 Email us Border Crossing MediaCreative Exchange Leith29 Constitution StreetEdinburghUnited KingdomEH6 7BS © Border Crossing Media LtdCompany No: SC 308 978VAT No: 941 5263 31 Quick links Home UX Design Services Clients About Blog Contact Terms & Conditions Privacy policy Sitemap
& Support Forum Stack Overflow IRC Slack Paid Support C CakePHP http://api.cakephp.org/1.3/class-AjaxHelper.html 1.3 API Overview Tree Deprecated Version: 1.3 3.3 3.2 3.1 3.0 2.8 2.7 2.6 2.5 2.4 2.3 2.2 2.1 2.0 1.3 1.2 A Download Navigation Class Navigation × Classes AclBase AclBehavior AclComponent AclNode AclShell Aco AcoAction AjaxHelper ApcEngine ApiShell App cakephp error AppController AppHelper AppModel Aro AuthComponent BakeShell BakeTask BehaviorCollection Cache CacheEngine CacheHelper CakeErrorController CakeLog CakeRoute CakeSchema CakeSession CakeSocket ClassRegistry Component Configure ConnectionManager ConsoleShell ContainableBehavior Controller ControllerTask CookieComponent DataSource DbAcl DbConfigTask DboMssql DboMysql DboMysqlBase DboMysqli DboOracle DboPostgres DboSource DboSqlite Debugger EmailComponent ErrorHandler cakephp error ajax.autocompleter ExtractTask File FileEngine FileLog FixtureTask Folder FormHelper Helper HtmlHelper HttpSocket I18n I18nModel I18nShell Inflector IniAcl JavascriptHelper JqueryEngineHelper JsBaseEngineHelper JsHelper L10n MagicDb MagicFileResource MediaView MemcacheEngine Model ModelBehavior ModelTask MootoolsEngineHelper Multibyte NumberHelper Object Overloadable Overloadable2 PagesController PaginatorHelper Permission PluginShortRoute PluginTask ProjectTask PrototypeEngineHelper RequestHandlerComponent Router RssHelper Sanitize Scaffold ScaffoldView SchemaShell Security SecurityComponent SessionComponent SessionHelper Set Shell String TemplateTask TestSuiteShell TestTask TextHelper ThemeView TimeHelper TranslateBehavior TreeBehavior Validation View ViewTask XcacheEngine Xml XmlElement XmlHelper XmlManager XmlNode XmlTextNode Functions mb_encode_mimeheader mb_stripos mb_stristr mb_strlen mb_strpos mb_strrchr mb_strrichr mb_strripos mb_strrpos mb_strstr mb_strtolower mb_strtoupper mb_substr mb_substr_count Class AjaxHelper AjaxHelper helper library. Helps doing AJAX using the Prototype library. Object Overloadable Helper AppHelper AjaxHelper Package: cake\cake\libs\view\helpers Link: http://book.cakephp.org/1.3/en/The-Manual/Core-Helpers/AJAX.html#AJAX Copyright: Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) License: License (http://www.opensource.org/licenses/mit-licen