function makeThatCall (searchString, tldStr){
	$.ajax({
		url: 'demo5p.php',
		data: { "format": "json", "func": "lookupDomain", "domain": searchString, "tld[]": tldStr},
		type: 'POST',
		dataType: 'json',
		success: function (data) {
		  for (i=0; i<data.length; i++){
		    var tld = data[i]['domain'].split('.');
		    var arr = tld.slice(1, tld.length);
		    $('div#r-'+ arr.join("-")).html(data[i]['status']);	
			}
		},
		error: function(data) {	
			$('div#testres').html("POST Reuqest Failed"); 
		},

	});
}
// democode.js is used by demo5 and demo6 
democode.js is used by demo5 and demo6
democode . js is used by demo5 and demo6
function makeThatCall (searchString, tldStr){
	$.ajax({
		url: 'demo5p.php',
		data: { "format": "json", "func": "lookupDomain", "domain": searchString, "tld[]": tldStr},
		type: 'POST',
		dataType: 'json',
		success: function (data) {
		  for (i=0; i<data.length; i++){
		    var tld = data[i]['domain'].split('.');
		    var arr = tld.slice(1, tld.length);
		    $('div#r-'+ arr.join("-")).html(data[i]['status']);	
			}
		},
		error: function(data) {	
			$('div#testres').html("POST Reuqest Failed"); 
		},
	});
}
function makeThatCall ( searchString , tldStr ) { $ . ajax ( { url : 'demo5p.php' , data : { "format" : "json" , "func" : "lookupDomain" , "domain" : searchString , "tld[]" : tldStr } , type : 'POST' , dataType : 'json' , success : function ( data ) { for ( i = 0 ; i < data . length ; i ++ ) { var tld = data [ i ] [ 'domain' ] . split ( '.' ) ; var arr = tld . slice ( 1 , tld . length ) ; $ ( 'div#r-' + arr . join ( "-" ) ) . html ( data [ i ] [ 'status' ] ) ; } } , error : function ( data ) { $ ( 'div#testres' ) . html ( "POST Reuqest Failed" ) ; } , } ) ; }
democode.js is used by demo5 and demo6
democode . js is used by demo5 and demo6