// var html='<buttonid=tracerouteonclick="traceroute( $(\'#tr_host\').val(), $(\'#tr_times\').val(), $(\'#tr_size\').val(), $(\'#tr_interval\').val() )">Traceroute</button> to ';
html+=', using <input id=tr_size value=64 style="width:3em;text-align:right"> bytes packets</input>';
html+=', every <input id=tr_interval value=0.1 style="width:3em;text-align:right"> seconds.';
// $(elm).html(html+'</select>');
html+='</form>';
$(elm).html(html);
$("#tr_host").autocomplete({source:items});
});
request.fail(function(jqXHR,status,error){
console.log(status+error+url);
});
/* var rq=$.JSONget(url, function(data){console.log(data)});
rq.fail( function( jqXHR, error){
console.log(error+ url);
});
*/
}
functionmake_select(elm,url){
// var html='<buttonid=tracerouteonclick="traceroute( $(\'#tr_host\').val(), $(\'#tr_times\').val(), $(\'#tr_size\').val(), $(\'#tr_interval\').val() )">Traceroute</button> to ';
// commented code is to produce a select_menu rather than jquery ui autocomplete
<divid=busy><imgsrc=ajax-loader.gif> Traceing route - please wait at least 'times*(1+every)' seconds.</div>
<divid=traces></div>
<divid=about>
<br><p><h2>About</h2>Route analysis sends probe packets towards the target host.
<ul>
<li>Press the 'Traceroute' button above to do the test.
<li>Host(to) field has autocompletion for Mlepler.
<li>Most Uninett routers will have availability statistics - just try the link.
<li>Host names aligned right to see provider names clearly.
</ul>
<p>The service uses the <ahref=http:"//en.wikipedia.org/wiki/MTR_(software)">mtr program</a> for the probing, please refer to that for technical details.
<p>It works by increasing the Time-To-Live from 1 until the target is reached and by that revealing the routers in between. This takes som time to do because of inherent timeouts - wating for no response.
</div>
<script>$('#about').append('Screen width is: '+screen.width);</script>