Ajax POST Don't Work

31 views
Skip to first unread message

Valdeci Jr

unread,
Feb 4, 2010, 3:55:39 PM2/4/10
to Delphi on Rails
Hi Henri,

I'm trying to submit a form with ajax using method POST, but the
request is not captured by DoR. If I use GET do work. There are some
parts of my code below. I'm using the latest version of jQuery.

--------------------- AJAX CODE ---------------------------------

var x = $('input#x').val();
var y = $('input#y').val();
var z = $('input#z').val();

var dataString = 'data.x=' + x + '&data.y=' + y +
'&data.z=' + z;

$.ajax({
type: "POST",
url: "/teste",
data: dataString,
dataType: "html",
success: function(data, textStatus,
XMLHttpRequest) {
$('#ui-tabs-5').html(data);
}
});

--------------------- DELPHI CODE ---------------------------------

TTesteController = class(TActionController)
public
procedure index_post(const data: TDataTeste; out btns:
ISuperObject);
procedure index_get(out btns: ISuperObject);
end;

procedure TTesteController.index_get(out btns: ISuperObject);
begin
//Here work
end;

procedure TTesteController.index_post(const data: TDataTeste; out
btns: ISuperObject);
begin
//Here don't work
end;

Can you help me, please!!!

Henri Gourvest

unread,
Feb 5, 2010, 5:25:54 AM2/5/10
to delphi...@googlegroups.com
Welcome to the DOR group !
I corrected this bug, you can now update your SVN.
Thank you

Henri


2010/2/4 Valdeci Jr <vocj...@gmail.com>

Valdeci Jr

unread,
Feb 5, 2010, 7:12:30 AM2/5/10
to Delphi on Rails
Hi Henri, worked perfectly!!!

Thank you very much!!!


On 5 fev, 07:25, Henri Gourvest <hgourv...@gmail.com> wrote:
> Welcome to the DOR group !
> I corrected this bug, you can now update your SVN.
> Thank you
>
> Henri
>

> 2010/2/4 Valdeci Jr <vocjun...@gmail.com>

Reply all
Reply to author
Forward
0 new messages