I've got this problem that I can't solve. Partly because I can't explain it with the right terms. I'm new to this so sorry for this clumsy question.
Below you can see an overview of my goal.
I'm using Magento CE 1.7.0.2 & Solr 4.6.0.
var url1 ="http://127.0.0.1:8080/solr/select?q=iphon&wt=json&json.wrf=?";
$.getJSON(url1,function(result){
// my logic
});
when the Solr Server is Running means this script is working fine.But if my Solr Server is Not Running means it'll not work.
But my goal is to write this script like this...
if( Solr Server is Running){
var url1 ="http://127.0.0.1:8080/solr/select?q=iphon&wt=json&json.wrf=?";
$.getJSON(url1,function(result){
// my logic-1
});
}else{
// my logic-2
}
So how do i know that whether the Solr Server is running or Not ?
& i know this is the duplicate question but i never find solution so please ignore it.
Any Ideas ?