aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes how to debug and solve Ajax issues when no error message is displayed? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "how to debug and solve Ajax issues when no error message is displayed?" Watch "how to debug and solve Ajax issues when no error message is displayed?" New topic
Author

how to debug and solve Ajax issues when no error message is displayed?

Monica. Shiralkar
Ranch Hand

Joined: Jul 07, 2012
Posts: 639
I am new to jquery.I want to know that once we call AJAX using Jquery and we do not get any response than how to know what is the problem.In java we get error message using which we resolve the issue.But in Jquery AJAX call if it does not fetch the required data how to isolate what is the problem as no error messages are captured.Please advice.
Thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61064
    
  66

I know I've said this to you before in previous posts: learn to use the browser debugging tools. They have all the info you need to debug problems such as this.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Monica. Shiralkar
Ranch Hand

Joined: Jul 07, 2012
Posts: 639
Thanks. As I have started to search these tools and would search which one is easiest for my requirement of debugging Jquery AJAX calls.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61064
    
  66

I personally prefer the tools in Chrome, but all modern browsers have a decent set of debugging tools*.



* You have to load Firebug into Firefox.
Monica. Shiralkar
Ranch Hand

Joined: Jul 07, 2012
Posts: 639
I found that Control shift J is the way to debug in chrome.Thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61064
    
  66

Or toolbar menu > Tools > Developer tools
Rob Crowther
author
Ranch Hand

Joined: Nov 06, 2012
Posts: 295
    
    5

Here is a nice introduction to Chrome developer tools.

Bear Bibeault wrote:* You have to load Firebug into Firefox.


Firefox has a fairly competent set of debugging tools built in these days, hit Ctrl+Shift+K. I still use Firebug myself, but I think mostly through familiarity and habit rather than because it's clearly better than the built in stuff.


Read my books: Hello! HTML5 & CSS3 | HTML5 in Action | Read my blog
Monica. Shiralkar
Ranch Hand

Joined: Jul 07, 2012
Posts: 639
all modern browsers have a decent set of debugging tools


I wonder how debugging would have been done in older versions of IE.

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61064
    
  66

Rob Crowther wrote:Firefox has a fairly competent set of debugging tools built in these days

Cool beans! I hardly ever use Firefox anymore, so they snuck that one in on me. I knew they were working on one.

Now I can stop saying "except Firefox".
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61064
    
  66

Monica. Shiralkar wrote:I wonder how debugging would have been done in older versions of IE.

alert()

Seriously, even older version of IE have some debugging tools -- but I find them almost unusably cumbersome, especially in comparison to modern tools.
Monica. Shiralkar
Ranch Hand

Joined: Jul 07, 2012
Posts: 639
thank you.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to debug and solve Ajax issues when no error message is displayed?