Firebug error: item not found

1 client: send a request to the server through AJAX fn.

2 Server: the answer is in the form of text/xml and it works correctly only 1 or 2 times
response.setContentType("text/xml");

3 , but only after request 1/2, I get an error in the browser (firebug), and it says No element found

client: javascript jQuery ajax server: java servlet

can anyone give any advice for sorting.

+4
source share
3 answers

can anyone give any advice for sorting.

Look at the HTTP traffic. Find out if the problem is due to a broken request or a broken response. This will tell you if you need to examine the server side or client side code.

+3
source

Setting mimeType to "text / html" fixed it for me

+2
source

Put a semicolon at the end of your jquery function, for example, I had a function

$ (document) .on ("change", "#myid", function () {})

changed to

$ (document) .on ("change", "#myid", function () {});

worked for me

0
source

All Articles