And if I understand that right then I get the response like this :

var resp = arguments[3];

Or am I way off here?

/Martin

On 3 Feb., 17:41, Aaron Newton <[email protected]> wrote:
> open your console and submit this form:http://jsfiddle.net/gyvMx/
>
> The success event is returned a custom set of arguments in FormRequest
> instances, basically it gets the element being updated followed by all the
> events from Request.HTML:
>
>    1. the target being updated
>    2. responseTree - (element) The node list of the remote response.
>    3. responseElements - (array) An array containing all elements of the
>    remote response.
>    4. responseHTML - (string) The content of the remote response.
>    5. responseJavaScript - (string) The portion of JavaScript from the
>    remote response.
>
> On Thu, Feb 3, 2011 at 4:08 AM, websam <[email protected]> wrote:
> > I'm using the following codesnipet to send a form:
>
> > $('submit').addEvent('click', function (e) {
> >    e.stop();
>
> >    var errorLabel = $$('.lbl_error');
> >    var request = new Form.Request(form, errorLabel, {
> >        resetForm: false,
> >        extraData: {
> >            'content': tinyMCE.activeEditor.getContent()
> >        },
> >        onSuccess: function (resp) {
> >            alert(resp);
> >        }
> >    });
> >    request.send();
> > });
>
> > However the line alert(resp); returns null even when i see the
> > returned text in firebug. What am I doing wrong here?
>
> > /Martin

Reply via email to