Grüß Euch,
Ich komme einfach nicht weiter. Dem ajax request wird einfach nicht die richtige URL übergeben.
Mein JS Code:
Die Route:
Im JS console log sehe ich dann folgendes:
GET http://localhost/calendar/public/adm...=1484832778812 404 (Not Found)
Kann mir bitte jemand sagen was ich da falsch mache?
Danke,
Reinhard
Ich komme einfach nicht weiter. Dem ajax request wird einfach nicht die richtige URL übergeben.
Mein JS Code:
Code:
self.load = function() { var id = self.countryid(); $.ajax( { url: 'admin/getholidays/' + id, type: 'get', dataType: 'json', success: function(data) { self.originalholidays.removeAll(); self.holidays.removeAll(); self.tobeadded.removeAll(); self.toberemoved.removeAll(); self.update(data); }, error: function( jqXhr, textStatus, errorThrown ){ console.log( errorThrown ); } }); }
PHP-Code:
Route::group(['prefix' => 'admin'], function() {
Route::get('/getholidays/{country?}', 'CountryController@get');
});
GET http://localhost/calendar/public/adm...=1484832778812 404 (Not Found)
Kann mir bitte jemand sagen was ich da falsch mache?
Danke,
Reinhard
Kommentar