I’m trying to do what this guy is doing – basically check that my Solr server is running, except I’m not using jQuery with getJSON, I’m using the ajax-solr library. There’s got to be a proper way to set a timeout handler within the library itself. After scouring the documentation I haven’t been able to figure it out.
Is there a proper way to set this timeout? Right now I’ve got a very inelegant solution that’s just checking if a div has been filled after a setTimeout.
ajax-solr sends all its requests through this method: https://github.com/evolvingweb/ajax-solr/blob/master/managers/Manager.jquery.js
You can create your own custom Manager that sets a timeout and handles it accordingly.