Viewing 1 replies (of 1 total)
  • Thread Starter tcrmovies

    (@tcrmovies)

    Example:

    var vaar = "false";
    	$.getJSON("http://site(dot)com/?json=get_post&post_id=3931", function(data) {
    		vaar = "true";
    
        });
    	if(vaar == "false"){
    		alert("Something wrong");
    	}else{
    		alert("Perfectly !");
    	}

    It display: Something wrong

Viewing 1 replies (of 1 total)

The topic ‘getJson does not respond’ is closed to new replies.