This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 594
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: 60785
    
  65

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: 594
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: 60785
    
  65

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: 594
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: 60785
    
  65

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: 594
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: 60785
    
  65

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: 60785
    
  65

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: 594
thank you.
 
jQuery in Action, 2nd edition
 
subject: how to debug and solve Ajax issues when no error message is displayed?
 
Similar Threads
Downloading a file to client side without saving the file on the server - dynamically
Need Help in accessing the JSON object in Jquery ajax call.
jQuery advantages over javascript
Auto Refresh Table in JSP
Receiving the ajax response using jQuery