I'm working on a webapp that will list the up/down status of several remote servers on a network, and can't seem to find any sort of functionality that would enable me to query the status of these servers without ajax. Does such a functionality exist, or should I be looking into other languages for this? If the latter case is true, what should I use?
Asked
Active
Viewed 133 times
0
-
What's wrong with using AJAX? – Old Pro May 27 '13 at 19:55
-
2Check [this page](http://stackoverflow.com/questions/4282151/is-it-possible-to-ping-a-server-from-javascript) it was previously answered. – Yotam Omer May 27 '13 at 19:57
-
@YotamOmer I saw that, but I wasn't certain exactly how it worked. I'm attempting to run a function based on the result of the "ping", and so I need something that returns true or false. If what you linked does that, can you explain it a little? – ChickenWing May 27 '13 at 20:09
-
1Regarding not using ajax - I tried using xmlhttprequests, but from my understanding, using them across domains doesn't work. This was further backed up by me recieving the error: `Failed to load resource: Origin http://localhost is not allowed by Access-Control-Allow-Origin.` – ChickenWing May 27 '13 at 20:11
-
yeah, then the image trick proposed on @YotamOmer's link should do the trick – Sebas May 27 '13 at 20:12