Why? it doesnt look like you are returning a structure of any sort other
than if you are just returning a JSON object just to contain  the text "ok"
?

  _____  

From: limodou [mailto:[email protected]] 
Sent: Thursday, 10 September 2009 1:47 AM
To: [email protected]
Subject: [Moo] Re: mootools 1.2 - set('send', ... Not working evalResponse
or EvalScripts




On Wed, Sep 9, 2009 at 11:39 PM, Steve Onnis <[email protected]> wrote:


For  Request.HTML the success function is defined as.....
 
onSuccess(responseTree, responseElements, responseHTML, responseJavaScript)
 
so you are asking in your example if response.response is equal to the
string "ok" but the position of the argument, in position 1 indicates that
in your case response.response will be equal to an element, not the response
string.
 
so if you had 


  onSuccess: function(tree, responseElements, responseHTML){ 
                   if (responseHTML == 'ok') {
                       alert('ok');
                   }

then maybe that will work?
 
Steve



Yes, you are right. But I think I should use Request.JSON instead. Thanks a
lot.

-- 
I like python! 
UliPad <<The Python Editor>>: http://code.google.com/p/ulipad/
UliWeb <<simple web framework>>: http://uliwebproject.appspot.com
My Blog: http://hi.baidu.com/limodou

Reply via email to