laravel-4.2


post ajax jquery laravel 4 error 500


I am trying to post datas in laravel 4 with jquery and i have this error, maybe someone can help me :
View :
<div id="compositor">
<?php
echo Form::text('compositor', null, array('class'=>'compositor','autocomplete'=>'off'));
?>
</div>
<div id="scripts">
{{ HTML::script('js/jquery-3.0.0.min.js') }}
{{ HTML::script('js/dinamico.js') }}
</div>
Routes :
Route::get('/chat', 'chatController#chat');
Route::post('/escribir', 'chatController#escribir');
Js :
$(document).ready(michat);
function michat()
{
//escucha();
$('.compositor').keypress(function(event)
{
//var keycode = (event.keyCode ? event.keyCode : event.which);
if(event.which == '13');
{
var chat = $('.compositor').val();
$.ajax({
async: true,
type: "POST",
dataType: "html",
contentType: "application/x-www-form-urlencoded",
url: "http://localhost/test/your-project-name/public/escribir",
data:'chat='+chat,
success: llegada,
timeout: 10000,
error: problemas
});
return false;
function llegada(data)
{
$('.compositor').val('');
}
function problemas(data)
{
$('#chat').html('error...');
}
}
});
}
Error :
jquery-3.0.0.min.js:4 POST http://localhost/test/your-projectname/public/escribir 500 (InternalServer Error)
$.ajax (anonymous function) # dinamico.js:11

Related Links

Itunes api call limit
how to solve update part error in laravel 4.2
How to delete a directory with its file from the public storage in laravel 4.2
Laravel 4.2 site doesn't work on localhost
send value from views in form of {{ FORM:: }} and recieve value in controller
how to count column(with data) number in laravel excel maatwebsite
Where to write common function or logic in laravel 4.2
post ajax jquery laravel 4 error 500
Undefine variable via post method in sending email from array using laravel 4.2
IronQueue sending jobs twice
Upload Log files to different server : Laravel
Url loading the login page again after login in Laravel4

Categories

HOME
spring-data
firebase
typelite
mpdf
antd
mousemove
dafny
filesize
hdfs
theano
magento-2.0
liferay-7
cypher
cdi
siesta
lc3
game-maker
smartgwt
bundler
squid
mixpanel
scheduled-tasks
pfobject
fido-u2f
opentext
nurbs
background-color
android-service
fusion
social-networking
docx4j
mongodb-3.4
sql-execution-plan
cmis
char-pointer
numerics
export-to-pdf
raytracing
access-denied
contactless-smartcard
transparency
oracle-bmcs
doctrine-extensions
jshint
nuclio
audio-converter
linq-to-excel
liteide
swift2.3
.net-micro-framework
webalizer
android-sharing
dex
dynamics-crm-4
maatwebsite-excel
qtextedit
haraka
xcode6.4
e
jpda
p6spy
yii2-model
wicked-pdf
timestamping
flipclock
taco
voronoi
flask-security
grinder
apache-commons-digester
dsa
modern.ie
embeddedwebserver
com0com
actionpack
ipod
pass-by-value
producer
loginview
webautomation
redpitaya
incognito-mode
sql-function
air-native-extension
strcmp
discovery
pageheap
flymake
series-40
liveconnect
boost-foreach
radscheduler
botnet
3-tier
raw-data
facebook-fbml
firephp
ning
motif
server-load

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App