Viewing 1 replies (of 1 total)
  • This should help you out, it’s the basic ajax call you need. Use firebug or press ctrl+shift+j in chrome to view the post object layout.

    $(function(){
    	$.ajax({
        	type:'get',
            dataType:"jsonp",
            url:'http://yourdomain.com/',
            data:{json:"get_recent_posts"},
            success:function(data){
            	if(data)
                	$.each(data.posts,function(k, v){
                    	console.log(v);
                    });
            }
        });
    });
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: JSON API] Help with giving a simple example’ is closed to new replies.