I googled data.success, but I could not proper document.
What is data.success in the following jquery? Is it javascript, jquery or json?
function remove_row(data){
if(!data.success)
return alert(data.error);
$('#delete_link_'+data.id)
.closest('li')
.slideUp('slow',function(){
$(this).remove();
});
--E...
Can some one please tell me where I have gone wrong. What ever I do I get the answer "no"
JQuery to send data to php query
$j.post("logincheck.php",{
username:$j('#username').attr('value'),
password:$j('#password').attr('value'),
rand:Math.random() } ,
function(data) {
if(data=='yes') {alert('yes');}
else {alert('no');}
}
);
...
This is my code,
$.ajax({
type:"get",
//this doesn't work
//url:'http://example.com/json.php',
//But this works
url:'http://api.flickr.com/services/feeds/photos_public.gne?tags=cat&tagmode=any&format=json&jsoncallback=?',
dataType:"jsonp",
...