.NET Framework Bookmark and Share   
 index > JScript for the .NET Framework > AutoComplete Extender javascript Error
 

AutoComplete Extender javascript Error

I'm using an AutoComplete in my page, the control have two client scripts on "OnChange" attribute, like ("ClientScript1(this);ClientScript2(this);").

After the execution of the second script, it's raising a js error at the line bellow:
this
.raiseItemSelected(new AjaxControlToolkit.AutoCompleteItemEventArgs(item, text, item ? item._value : null));this._currentPrefix = this._currentCompletionWord();this._hideCompletionList();},

There are some others autocompletes in my page that's isn't raising this error. It seems that I have a problem with my script, but debbunging it I saw that the error raises when the AutoComplete is finalizing the execution.

I have no idea what I can change to try to solve this. Any idea?


Fabio Stawinski - Microsoft
Fabio Stawinski
Hello Ji Zhou!

First of all, I'm not MSFT, I'm MSP - Microsoft Student Partner. My signature should be it (MSP), I'll change it.

I figured out the error was raising 'cause I was calling twice an Ajax.AjaxMethod(Ajax.net framework), when I put my code in aunique AjaxMethod the error didnt show up.

Sorry for delay to answer, but I'm not receiving emails when myquestions are being answered.

Thanks for you help.

Have a nice day!

Fabio Stawinski - Microsoft
Fabio Stawinski

Hello Fabio,

What is the exact js error message? Is it possible to show your codes here? I have tried to test AutoComplete Extender with some simple javascript, but it works fine. To give future investigation on this, we need to reproduce the issue in our side firstly. So, if you can simplify the project and share a reproduciable one, it will be helpful.

By the way, are you MSFT since your signature ends with "-Microsoft". :-)

Have a nice day!

Ji Zhou

MSDN Subscriber Support in Forum

If you have any feedback on our support, please contact msdnmg@microsoft.com


Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Ji.Zhou

Hello Fabio,

I am writing to check the issue's status in your side. Have you resolved it? If you need any future support on this, could you please provide some detailed information as I asked in my previous post.

Have a nice day!

Ji Zhou

MSDN Subscriber Support in Forum

If you have any feedback on our support, please contact msdnmg@microsoft.com


Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Ji.Zhou
Hello Ji Zhou!

First of all, I'm not MSFT, I'm MSP - Microsoft Student Partner. My signature should be it (MSP), I'll change it.

I figured out the error was raising 'cause I was calling twice an Ajax.AjaxMethod(Ajax.net framework), when I put my code in aunique AjaxMethod the error didnt show up.

Sorry for delay to answer, but I'm not receiving emails when myquestions are being answered.

Thanks for you help.

Have a nice day!

Fabio Stawinski - Microsoft
Fabio Stawinski

You can use google to search for other answers

Custom Search

More Threads

• Hebrew Parameters in Query String
• Invoke DOS Command using Jscript.NET
• Javascript Snippet to C#/VB.Net
• xmhttprequest.open_in_ajax
• Can't
• devEdit attributes
• URGENT: Time Session for my Internet Banking Project
• Java script the way to go?
• Microsoft's Support for JScript .NET
• JSC Error Report