I think that part is OK, Rolf. The JQuery package can detect that the
second parameter is a function and use it for the success callback.
On Thu, Nov 24, 2011 at 4:33 AM, Rolf Huehne <rhue...@fli-leibniz.de> wrote:
> 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
>
--
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107
If nature does not answer first what we want,
it is better to take what answer we get.
-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
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