1 <script type=
"text/javascript">
2 var host
, port
, password
;
4 function show_errors() {
5 if (host
===false || port
===false || password
===false) {
6 $("#vnc_errors").html("Probably your proxy is not running or some errors occured. Try again.");
7 $("#vnc_errors").show();
14 $("#vnc_errors").hide();
16 url1
= "{% url instance-vnc-proxy cluster.slug instance.hostname %}";
21 "success": function(data
, s
, x
){
27 if (!show_errors()) return false;
29 url2
= "{% url instance-vnc-applet cluster.slug instance.hostname %}" + "/" + host
+ "/" + port
+ "/" + password
+ "/";
30 $("#applet").load( url2
);
36 <input type=
"button" id=
"connect" value=
"Connect" onclick=
"start()" />
37 <div id=
"applet"> </div>