Hi Skar,
On Wednesday 22 July 2009 skar wrote:
> Now I don't know how to override the ajax class qx.io.remote.Request to
> send the additional "&authenticity_token=tokenhere" along with the POST
> parameters. Hope some one with the know how can help me with this.
I've just took a short look at the Request class and as far as I discovered
you do not need to overwrite the class at all. You can simply use the
"setParameter" method to attach your additional GET parameter.
If you really want to change the Request class that it attach the parameters
always you can use a Mixin to include the code at application startup.
--snip--
qx.Class.include(qx.io.remote.Request, yourNamespace.MRequest);
--snip--
Your mixin would look like
--snip--
qx.Mixin.define("yourNamespace.MRequest", {
construct: function()
{
this.setParameter("authenticity_token", "tokenhere");
}
});
--snip--
Since the mixin has its own constructor this constructor gets executed after
the Request object is created.
> Thanks for the great framework btw :)
Thanks for the kudos. Always nice to hear that :)
cheers,
Alex
------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel