Based on a search, I came across this stackoverflow thread, 'Is it possible to ping a server from Javascript?', and decided to follow trante's jfiddle example. It works for what I need it to do with the jquery and CSS part all in the same page as the html code.
My issue is and would like to see if some one could help me, is that when I create a .js file and a .css and reference them in the header of the html, the function does not work.
So here is what I am trying to accomplish. - jquery in .js file - stylesheet in .css file - HTML output in html page
Here is trante's jfiddle example: http://jsfiddle.net/GSSCD/203/
Here is my html example reference:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="../favicon.ico">
<link rel="stylesheet" href="dist/css/bootstrap.min.css"/>
<link rel="stylesheet" href="dist/css/panel_dropdown.css"/>
<link rel="stylesheet" href="dist/css/ping_response.css"/>
<script type="text/javascript" src="dist/js/jquery-2.0.3.min.js"></script>
<script type="text/javascript" src="dist/js/bootstrap.min.js"></script>
<script type="text/javascript" src="dist/js/modals.js"></script>
<script type="text/javascript" src="dist/js/ping-function.js"></script>
<title>Test Ping</title>
</head>
<body>
<ul data-bind="foreach:servers">
<li> <a href="#" data-bind="text:name,attr:{href: 'http://'+name}">tester</a>
<span data-bind="text:status,css:status"></span>
</li>
</ul>
</body>
Thanks,
Karsten