> for the last couple days i am working on asp.net based website and > try to perform ajax request using Request class. to debug the code, > i tried to alert the responseText and got all default.aspx html > tags.
> It cannot hit the method that i wanted to be > executed. By "method" you mean the JSON callback? Well, that would make sense if the response is not JSON. > i try to resolve this problem by changing the header's content-type > to "this.headers['Content-type'] = 'application/json' + encoding". If changing the C-T of the request changes whether the response is sent in the right format, then obvs. you are doing some REST-type switching on the server, no? But it should be based on the Accept header. Perhaps you need to explain more what you're doing on each side. It isn't clear to me exactly what you have modified. -- Sandy
