• 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

Yii Ajax Submit button

Sentry + Laravel: how to log an already catched Exception?

CONCAT columns with Laravel 5 eloquent

How to add a sidebar to Woocommerce Shop Page?

Issue with laravel eloquent model property

Refresh specific HTML content that retrieves data from MySQL

java URL working on browser but not in client program

selected value from the listbox in php

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

Refresh specific HTML content that retrieves data from MySQL

"properties should not be accessed directly" issue during WooCommerce 3.0 checkout

Show only featured products in Woocommerce shop page

Warning: sqlite_query() expects parameter 1 to be resource, string given

PHP Form Not Inserting

How do I refresh a DIV content?

About Contact Privacy policy Terms and conditions