Hi all, Hi all, I am newbie in ajax.I tried to make the autocomplete
example, but when i ran the example, i had the next javascript error:
MS.Web.AutoCompleteDataTable is null or not an object.
Could anyone help me with this problem. The web.config file have this content:
<httpHandlers>
<add verb="POST,GET" path="AjaxPro/*.ashx"
type="AjaxPro.AjaxHandlerFactory, AjaxPro" /><add verb="POST,GET"
path="AjaxPro/*.ashx" type="AjaxPro.AjaxHandlerFactory, AjaxPro" />
</httpHandlers>
and the function javascript are:
function init() {
var x = new MS.Web.AutoCompleteDataTable("txtId", 10);
x.getDisplay = function(item) {
return (item != null ? item.Nombre: "");
}
x.getValue = function(item) {
return (item != null ? item.Nombre.toString().trimRight() : "");
}
x.getData = function() {
WebForm1.Listado(this.ele.value, this.callback.bind(this));
}
}
It's called in "onload" event.
Thanks!!!
Gustavo
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ajax.NET Professional" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/ajaxpro
The latest downloads of Ajax.NET Professional can be found at
http://www.ajaxpro.info
-~----------~----~----~----~------~----~------~--~---