2018-04-27 02:13:05 +02:00
|
|
|
$ '.send'
|
|
|
|
.click ->
|
|
|
|
$context = $ this
|
2018-04-27 04:05:25 +02:00
|
|
|
$.ajax
|
|
|
|
url: "https://kelder.zeus.ugent.be/messages/",
|
|
|
|
contentType: "text/plain",
|
2018-04-27 02:13:05 +02:00
|
|
|
type: "POST"
|
2018-04-27 04:05:25 +02:00
|
|
|
data: $('.chatbox').val()
|
2018-08-21 16:58:52 +02:00
|
|
|
success: _ -> $('#chat-response').text('Success! :)')
|
|
|
|
error: _ -> $('#chat-response').text('Error !1!')
|