Combination of Dialog and Autocomplete not working in server environment
At the moment I'm quite confused. I created a function which works as expected when run in a local html-file. But when I move the code to a js-file which I include in my asp.net-page it's no longer working properly.
The dialog gets displayed, but soon after (I guess it's the data processing) it gets closed and I get a postback on my page.
I tried debugging it using firebug and as it seems the event defined in 'source' is not fired. I have no idea why.
var tag = $("#txbSearchDataSource").autocomplete({ minLength: 0, source: function (request, response) { //this never gets called } })
Any guesses?