$.ajax() beforeSend ?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

$.ajax() beforeSend ?

Genosse
Hello! How can I write a parameter beforeSend in the Amber?

for example js: beforeSend: function (jqXHR) { jqXHR.setRequestHeader("xxxxx", "yyyyy");},

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: $.ajax() beforeSend ?

Herby Vojčík
PlatformInterface ajax: #{
  'beforeSend' -> [ :jqXHR | jqXHR setRequest: 'xxxxx' with: 'yyyyy' ]
}

Александр Р wrote:

> Hello! How can I write a parameter *beforeSend* in the Amber?
>
> /for example js: beforeSend: function (jqXHR) {
> jqXHR.setRequestHeader("xxxxx", "yyyyy");},/
>
> --
> You received this message because you are subscribed to the Google
> Groups "amber-lang" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [hidden email]
> <mailto:[hidden email]>.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: $.ajax() beforeSend ?

Genosse
Thank you!

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.