File: xhr-multiple-requests-responseText.html

package info (click to toggle)
qtwebkit 2.3.4.dfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 290,116 kB
  • ctags: 272,544
  • sloc: cpp: 1,417,496; python: 85,048; ansic: 39,353; perl: 38,858; ruby: 10,313; objc: 9,505; xml: 8,679; asm: 3,864; yacc: 2,458; sh: 1,237; lex: 813; makefile: 592; java: 228; php: 79
file content (57 lines) | stat: -rw-r--r-- 2,728 bytes parent folder | download | duplicates (16)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
        <head>
                <title>TestWidget 1.3</title>
                <script type="text/javascript">
                        var mainDiv;
                        var widgetID = "12345678";
                                        
                        function init() {
                                mainDiv = document.getElementById( "main" );
                        
                                if ( window.widget ) {
                                        widget.setCloseBoxOffset( 304, 16 );
                                        window.resizeTo( 640, 480 );
                                        //widgetID = widget.identifier;
                                }
                        }
                                        
                        function getLocalMailIDList() {
                                var storedLocalMailIDList = new Array();
                                var xmlHttp = new XMLHttpRequest();
                                xmlHttp.open("GET", "MessageUidsAlreadyDownloaded2", false);                                
                                xmlHttp.send(null);
                                
                                if (xmlHttp.readyState == 4) {
                                      xmlHttp.responseText;
                                }
                        }
                        
                        function getLocalMailIDList2() {
                                var storedLocalMailIDList = new Array();
                                var xmlHttp = new XMLHttpRequest();
                                xmlHttp.open("GET", "MessageUidsAlreadyDownloaded2", false);                                
                                xmlHttp.send(null);
                                
                                
                                if (xmlHttp.readyState == 4) {
                                      xmlHttp.responseText;
                                }
                        }
                        
                        function clear() {
                                mainDiv.innerText = "C:\\>";
                        }
                        
                        function fillMyRam() {
                                getLocalMailIDList2();
                                setTimeout( "fillMyRam();", 500 );
                        }
                </script>
        </head>
        
        <body onLoad="init();">
             <div><a href="javascript:fillMyRam();">fillMyRam</a></div>
        </body>
</html>