AJAX/JSON connectivity failure

I posted an issue a month ago (WI-13423) about the IDE debugger not responding to AJAX POST requests. My code works fine when I launch it from the browser, but the IDE does not catch the response from the server.

I cannot believe that an IDE that is supposed to be used with JavaScript cannot handle a simple AJAX request+response pair.

If I leave the debugger running after a failure and open a new tab directly to the server IP and port (or refresh the browser page), I can see from the console log that the browser has successfully received and processed the JSON.

My application is a data-driven HTML5 canvas application that depends heavily upon back-and-forth communication between the browser and the server. I have gone as far as I can go just working within the browser.

Please look at this and either work with me to get it fixed or tell me what I'm not doing right.

The code in my demo file illustrates the browser/debugger problem, but it doesn't function completely correctly. I now have my JSON communication working fine when running from the browser, but I need to be able to debug and use JSON at the same time. I can't do that now, and it's painful.

Thank you. :D


I apologize for the delay. See issue for details.


It would be great if you could post the answer here as well.



Here's the issue link: https://youtrack.jetbrains.com/issue/WEB-1137
Although the thread is almost 10 years old, I don't really think that whatever issue you are experiencing is related to the one described here.


Please sign in to leave a comment.