Meaningless Drivel is fun!*
The moose likes HTML, CSS and JavaScript and the fly likes Jquery:- ajaxError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Jquery:- ajaxError" Watch "Jquery:- ajaxError" New topic
Author

Jquery:- ajaxError

Praful Thakare
Ranch Hand

Joined: Feb 10, 2001
Posts: 613
Hi,

I used ajaxError for the first time and wondering how to display the content of first parameter to this method, in code below the output is [object, Object] where as i expected some useful error text.



This also brings be to one more question, is there a way we can discover fields and methods of an jQuery object? in this case errorData?
-P
[ August 28, 2008: Message edited by: Praful Thakare ]

All desirable things in life are either illegal, banned, expensive or married to someone else !!!
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60074
    
  65

In Firebug: console.dir(object);

In script, you can write a "discovery" algorithm using the for-in statement.
[ August 28, 2008: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Praful Thakare
Ranch Hand

Joined: Feb 10, 2001
Posts: 613
I get error message console is not definedfor code



"discovery" algorithm


i have no idea what that is.

-P
[ August 29, 2008: Message edited by: Praful Thakare ]
Praful Thakare
Ranch Hand

Joined: Feb 10, 2001
Posts: 613
okay found this code on web and now console.dir is doing the magic

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60074
    
  65

If you've got Firebug enabled you shouldn't have to do anything to enable the console.
Praful Thakare
Ranch Hand

Joined: Feb 10, 2001
Posts: 613
well for some strange reason i get this error in firbug console, so surly my firebug is enabled.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60074
    
  65

Weird. Never had any such problems with Firebug.

A simple discovery algorithm:
Praful Thakare
Ranch Hand

Joined: Feb 10, 2001
Posts: 613
you the Man Bear,

have good weekend.

-P
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jquery:- ajaxError
 
Similar Threads
Embedding Lists in XHTML
jquery ajaxError question
Not achieving space between div blocks containing lists
JQuery XML parsing and HTML construction
selecting pure text in jquery