[thelist] Running code on ajax success?

Volkan Özçelik volkan.ozcelik at gmail.com
Thu Oct 1 09:43:09 CDT 2009

On Thu, Oct 1, 2009 at 1:57 PM, Tris <beertastic at gmail.com> wrote:

> when it failes I get an error alert.. but when it succeeds, the sucess
> code does not run... but it DOES succeed..

Do you see observe alert "ajax started" within the onsuccess method.

If so, its most probably inside the onsuccess method body.

Stepping through the code using Firebug will help.

>  var orderStatObj = eval('(' + orderStat + ')');

by the way eval's are "evil". You had better use a JSON parser if you can.

Volkan Ozcelik
+> Front End Architect, MessengerFX : http://www.messengerfx.com/
+> I tweet: http://twitter.com/linkibol
+> linkibol.com - in seek for quality links : http://www.linkibol.com/
+> my blog (in Turkish) : http://www.fikribol.com/donkisot/
+> Sardalya JavaScript Library : http://www.sarmal.com/sardalya/

More information about the thelist mailing list