Skip to content

Commit

Permalink
Web Socket : $post instead of $ajax
Browse files Browse the repository at this point in the history
  • Loading branch information
loicdescotte committed May 21, 2011
1 parent ad835a4 commit c573f88
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions app/views/Application/testWebSocket.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,10 @@ <h1>Test</h1>
}

$(document).ready(function() {
var message = 'Ok it works!!! ';
$('#longTask').click(
function() {
$.ajax({
url: '@@{Application.publishEvent()}',
type: "POST",
data: {message: message}
});
}
function() {
$.post('@@{Application.publishEvent()}', { message: 'Ok it works!!! ' } );
}
);
});
</script>
Expand Down

0 comments on commit c573f88

Please sign in to comment.