Support » Plugin: JSON API » [Cordova\Eclipse] Uncaught SyntaxError

  • i’m trying to retrieve post data from an online WordPress blog for an Android app. I’m using Cordova 3.0

    the simple code is

    function readSinglePost(target_div){
    		url: '',
    		type: 'GET',
    		dataType: 'jsonp',
    	success: function(data) {
    	error: function(){
    		$('#response').text('There was an error loading the data.');
    		alert('There was an error loading the data');

    [Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    but in Eclipse error console i got always

    E/Web Console(2262): Uncaught SyntaxError: Unexpected token < at

    i don’t know why the second “callback” parameter was appended

  • The topic ‘[Cordova\Eclipse] Uncaught SyntaxError’ is closed to new replies.