Set content type
This commit is contained in:
parent
1474cd118f
commit
8f3ab2a0dc
2 changed files with 8 additions and 2 deletions
|
@ -1,6 +1,11 @@
|
||||||
$ '.send'
|
$ '.send'
|
||||||
.click ->
|
.click ->
|
||||||
$context = $ this
|
$context = $ this
|
||||||
$.ajax "https://kelder.zeus.ugent.be/messages",
|
$.ajax
|
||||||
|
# url: "http://localhost:8080/"
|
||||||
|
url: "https://kelder.zeus.ugent.be/messages/",
|
||||||
|
contentType: "text/plain",
|
||||||
type: "POST"
|
type: "POST"
|
||||||
data: $ '.chatbox'
|
data: $('.chatbox').val()
|
||||||
|
success: $('#chat-response').text('Success! :)')
|
||||||
|
error: $('#chat-response').text('Error !1!')
|
||||||
|
|
|
@ -68,6 +68,7 @@ title: Cammie
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
<div class="columns">
|
<div class="columns">
|
||||||
|
<p id="chat-response"></p>
|
||||||
<div class="field has-addons ">
|
<div class="field has-addons ">
|
||||||
<div class="field control">
|
<div class="field control">
|
||||||
<input class="input chatbox" type="text" placeholder="Zeus is de max!">
|
<input class="input chatbox" type="text" placeholder="Zeus is de max!">
|
||||||
|
|
Loading…
Reference in a new issue