Callback from JQuery get() function always sends "success"

D

David Karr

I'm not real familiar with JQuery, but it's my understanding that the
callback called back from the "get()" function takes two parameters,
the first being the data returned from the call, and the second is
always the string "success". Is that correct? What is the point of
always sending the second parameter, if it's always the same value?
In examples on the net, I've never seen anyone define a callback
function for "get()" that defines that second parameter, acknowledging
that there's no point to it.
 
E

Evertjan.

David Karr wrote on 30 jul 2009 in comp.lang.javascript:
Callback from JQuery get() function always sends "success"

Evidently: JQuery thinks itself always to be a success.

Most of us in this NG know better.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top