On 11/23/2011 11:11 PM, Tamas Hegedus wrote:
> Rolf,
>
> The success part is not missing. The callback function is there. The
> data part is missing, I do not send any data to the server, but it seems
> for me that it is not a problem. Javascript recognizes that the second
> 'parameter' is the callback function.
>
My own AJAX experiences (without using any framework) were made a few 
years ago, but as far as I remember the callback function has to deal 
with the different states since it is an asynchronous process in order 
not to block the browser.
My assumption was, that the 'success' keyword in the jQuery API would 
simplify this and the callback function would only have to deal with the 
susccess case (like your function does).  But without that you might 
need to take care of the different states of your request yourself and 
wait until it is finished successfully.
But if you are familiar with the API you will know that better.

Regards,
Rolf

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to