• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

AJAX call fails with SyntaxError: Unexpected end of JSON input

javascriptphpjqueryajax


PHP Snippet 1:

var data = {};
 data['rawFiles'] =$('#projectIDs').val(); 
 data['metadata'] = $('#getData').val();
  data['type']=  $('#submitType').val();
  data['pid']='csv';
   data['command']='data/qcTest'

PHP Snippet 2:

$.ajax({type: "POST", url: posturl, data: JSON.stringify(data), dataType: 'json'})

Related Snippets

PHP Warning: Module already loaded in Unknown on line 0

Set quantity minimum, maximum and step at product level in Woocommerce

PHP returning an error message and false

How to install LDAP in Docker php-fpm alpine

How to get result of the formula on import xlsx with maatwebsite using Laravel? I get formula and not value of the formula

Laravel unique validation on multiple columns

How can I create a Download Page with post php method?

"Mixed content blocked" when running an HTTP AJAX operation in an HTTPS page

php mysql + create a friend request system

PHP and WebView - Cookie doesn't are the same

CodeIgniter force_download is not working

Elastic Beanstalk with Laravel Envoy

cakephp save drag and drop list order to database

wordpress : How to specify the cause "This site can’t be reached"

XSS attack still works despite htmlspecialchars() doing its work

About Contact Privacy policy Terms and conditions