PageSourceSearch

https://aussiefloyd.com/ScriptResource.axd?d=g1Zmfd9EuBjq-fGpSHQ7P…6WfgPZQAcZhMyXzxaMtexoaFE3kwjtA2&t=51e37521

js aussiefloyd.com collected 2026-10-02 06:17:22 UTC 3,542 bytes, 92 lines download raw bytes

1// Name:        HTMLEditor.PreviewPanel.debug.js
2// Assembly:    AjaxControlToolkit
3// Version:     4.1.7.1213
4// FileVersion: 4.1.7.1213
5Type.registerNamespace("Sys.Extended.UI.HTMLEditor");
6
7Sys.Extended.UI.HTMLEditor.PreviewPanel = function(element) {
8    Sys.Extended.UI.HTMLEditor.PreviewPanel.initializeBase(this, [element]);
9    this._focus$delegate = Function.createDelegate(this, this._focus_event);
10    this._blur$delegate = Function.createDelegate(this, this._blur_event);
11    this._doc = null;
12    this._content = "";
13    this._panel_timer = null;
14}
15
16Sys.Extended.UI.HTMLEditor.PreviewPanel.prototype = {
17    _focus: function() {
18        try { // some browsers fail when invisible
19            this.get_element().contentWindow.focus();
20        } catch (e) { }
21        this._focused();
22    },
23
24    _focus_event: function() {
25        if (this._panel_timer == null) {
26            var contentWindow = this.get_element().contentWindow;
27            var panel = this;
28            this._really_focused();
29            this._panel_timer = setTimeout(function() { contentWindow.focus(); panel._really_focused(); panel._panel_timer = null; }, 0);
30        }
31        return true;
32    },
33
34    _blur_event: function() {
35        if (this._panel_timer != null) {
36            clearTimeout(this._panel_timer);
37            this._panel_timer = null;
38        }
39        return true;
40    },
41
42    _activate: function(value) {
43        Sys.Extended.UI.HTMLEditor.PreviewPanel.callBaseMethod(this, "_activate");
44        this._content = value;
45        this._wasFocused = false;
46        this._initIframe(value);
47        Sys.Extended.UI.HTMLEditor._addEvents(this.get_element().contentWindow, ["focus"], this._focus$delegate);
48        Sys.Extended.UI.HTMLEditor._addEvents(this.get_element().contentWindow, ["blur"], this._blur$delegate);
49        this._activateFinished();
50    },
51
52    _deactivate: function() {
53        Sys.Extended.UI.HTMLEditor._removeEvents(this.get_element().contentWindow, ["blur"], this._blur$delegate);
54        Sys.Extended.UI.HTMLEditor._removeEvents(this.get_element().contentWindow, ["focus"], this._focus$delegate);
55        if (Sys.Extended.UI.HTMLEditor.isIE) {
56            try { // if src changed (with link in document) - security exception can occur in IE
57                this._doc.open();
58                this._doc.write("");
59                this._doc.close();
60                this.get_element().src = "javascript:false;";
61            } catch (ex) { }
62        }
63        this._doc = null;
64        this._content = "";
65        Sys.Extended.UI.HTMLEditor.PreviewPanel.callBaseMethod(this, "_deactivate");
66    },
67
68    _initIframe: function(value) {
69        var str = Sys.Extended.UI.HTMLEditor.Trim(value);
70        this._doc = this.get_element().contentWindow.document;
71
72        if (!Sys.Extended.UI.HTMLEditor.isIE) {
73        } else {
74            str = str.replace(/&/ig, "&");
75        }
76
77        this._doc.open();
78        this._doc.write("<html><head><link rel=\"stylesheet\" href=\"" + this._editPanel.get_documentCssPath() + "\" media=\"all\" /></head><body>" + str + "</body></html>");
79        this._doc.close();
80    },
81
82    _getContent: function() {
83        return this._content;
84    },
85
86    _setContent: function(value) {
87        this._content = value;
88        this._initIframe(value);
89    }
90}
91
92Sys.Extended.UI.HTMLEditor.PreviewPanel.registerClass("Sys.Extended.UI.HTMLEditor.PreviewPanel",Sys.Extended.UI.HTMLEditor.ModePanel);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.