• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jquery:- ajaxError

 
Praful Thakare
Ranch Hand
Posts: 642
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64958
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Praful Thakare
Ranch Hand
Posts: 642
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 642
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
okay found this code on web and now console.dir is doing the magic

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64958
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you've got Firebug enabled you shouldn't have to do anything to enable the console.
 
Praful Thakare
Ranch Hand
Posts: 642
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well for some strange reason i get this error in firbug console, so surly my firebug is enabled.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64958
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Weird. Never had any such problems with Firebug.

A simple discovery algorithm:
 
Praful Thakare
Ranch Hand
Posts: 642
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you the Man Bear,

have good weekend.

-P
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic