Answer the question
In order to leave comments, you need to log in
How to set a key in a CoffeeScript data structure?
$.ajax
url: '/мой/урл'
method: 'POST'
headers: {
Accept : 'text/xml, text/html; charset=utf-8'
}
data: {id: id,
'g-recaptcha-response': recaptchaResp}
success: (result)->
button.html result
captchaBtn = button......
SyntaxError: [stdin]:179:27: unexpected :
data: {id: id
'g-recaptcha-response': recaptchaResp}
data: {
id: id({
'g-recaptcha-response': recaptchaResp
})
},
...
headers: {Accept : 'text/xml, text/html; charset=utf-8'},
data: {id: id, 'g-recaptcha-response': recaptchaResp},
success: .....
Answer the question
In order to leave comments, you need to log in
This is how it should work:
data: {
id: id,
'g-recaptcha-response': recaptchaResp,
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question