- Keyboard layout/internationalization support
- convert keyCode into proper charCode
-- Test on IE 9 preview 3.
+- IE 9 improvements.
+ - https://github.com/gimite/web-socket-js/issues#issue/41
+ - try window.atob instead of decode for better performance
- Status bar menu/buttons:
- Explanatory hover text over buttons
*/
"use strict";
/*jslint white: false */
-/*global $, Util, RFB, Canvas, VNC_uri_prefix, Element, Fx */
+/*global $, Util, RFB, Canvas, Element, Fx */
var UI = {
"use strict";
/*jslint evil: true */
-/*global window, document, VNC_uri_prefix */
+/*global window, document, INCLUDE_URI */
// Globals defined here
var VNC_native_ws, WEB_SOCKET_SWF_LOCATION;
/*
* Load supporting scripts
*/
-function get_VNC_uri_prefix() {
- return (typeof VNC_uri_prefix !== "undefined") ? VNC_uri_prefix : "include/";
+function get_INCLUDE_URI() {
+ return (typeof INCLUDE_URI !== "undefined") ? INCLUDE_URI : "include/";
}
(function () {
var extra = "", start, end;
- start = "<script src='" + get_VNC_uri_prefix();
+ start = "<script src='" + get_INCLUDE_URI();
end = "'><\/script>";
// Uncomment to activate firebug lite
end = "'><\/script>", extra = "";
WEB_SOCKET_SWF_LOCATION = get_INCLUDE_URI() +
- "web-socket-js/WebSocketMain.swf";
+ "web-socket-js/WebSocketMain.swf?" + Math.random();
+ if (Util.Engine.trident) {
+ Util.Debug("Forcing uncached load of WebSocketMain.swf");
+ WEB_SOCKET_SWF_LOCATION += "?" + Math.random();
+ }
extra += start + "web-socket-js/swfobject.js" + end;
extra += start + "web-socket-js/FABridge.js" + end;
extra += start + "web-socket-js/web_socket.js" + end;