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