Debian Codegraph @

dojox/form/tests/test_FileUploaderDialog.html

raw symbols SCIP
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
2 <html lang="en">
3 <head>
4 <title>FileUploader Dialog Test</title>
5 <link href="../../../dijit/themes/dijit.css" rel="stylesheet" />
6 <link href="../../../dijit/themes/dijit.css" rel="stylesheet" />
7 <link href="../../../dijit/themes/tundra/form/Button.css" rel="stylesheet" />
8 <link href="../../../dijit/themes/tundra/Dialog.css" rel="stylesheet" />
9 <link href="../../../dijit/themes/tundra/layout/TabContainer.css" rel="stylesheet" />
10 <link href="../resources/FileUploader.css" rel="stylesheet" />
11 <script>
12 djConfig = {
13 isDebug: true,
14 popup:true,
15 parseOnLoad: true
16 }
17 </script>
18 <script src="../../../dojo/dojo.js"></script>
19 <script>
20 dojo.require("dojo.parser");
21 dojo.require("dojox.form.FileUploader");
22 dojo.require("dijit.form.Button");
23 dojo.require("dijit.Dialog");
24 dojo.require("dijit.form.Form");
25 dojo.require("dijit.layout.ContentPane");
26 dojo.require("dijit.layout.TabContainer");
27
28 dojo.addOnLoad(function(){
29 console.warn("show")
30 console.log("CP:", dijit.byId("dialogContentPane"))
31 var w = dijit.byId("myDialog");
32 if(w){
33 w.show();
34 }
35 });
36
37
38 </script>
39 <style>
40 html{
41 height:100%;
42 }
43 body{
44 font-family:sans-serif;
45 font-size:12px;
46 height:100%;
47 }
48 #tabs{
49 width:100%;
50 height:100%;
51 }
52 .dijitContentPane{
53 padding:10px;
54 }
55 table td{
56 width:33%;
57 vertical-align:top;
58 }
59 .scrolls{
60 width:100%;
61 height:75px;
62 overflow-y:scroll;
63 position:relative;
64 }
65 .note{
66 font-size:11px;
67 font-family:sans-serif;
68 color:#666;
69 width:400px;
70 margin-top:15px;
71 }
72 .note.nw{
73 width:auto !important;
74 }
75 h3{
76 width:600px;
77 font-weight:normal;
78 font-size:14px;
79 }
80 .formContent{
81 width:300px;
82 height:150px;
83 }
84
85 #myDialog #dialogContentPane{
86 width:400px;
87 height:200px;
88
89 }
90 </style>
91 <script>
92 dojo.ready(function(){
93 var fu = dijit.byId("fu")
94 console.log(fu.domNode)
95 });
96 </script>
97
98 </head>
99 <body class="tundra">
100 <h1>FileUploader Dialog Test</h1>
101 <p>
102 Tests that FileUploader will load in a dialog box. Its detecting that an ancestor is
103 a dialog and if so makes it display="block" while it gets measurements, then changes it
104 back. It then connects to the dialog's onShow and is built at that time.
105 <strong>NOTE: This test opens a Browse Dialog, but does not upload.</strong>
106 </p>
107 <div id="myDialog" class="dialog" dojoType="dijit.Dialog" title="Edit Account">
108
109 <div id="dialogContentPane" dojoType="dijit.layout.ContentPane">
110 <label>Dummy Upload:</label>
111 <span id="editUsername"></span>
112 <label>Password:</label>
113 <div id="editerror"></div>
114 <div id="editSubmitBtn" class="authButton" dojoType="dijit.form.Button">Submit</div>
115
116 <button id="fu" isDebug="true" devMode="false" dojoType="dojox.form.FileUploader">Default Markup Flash</button>
117 <!--<button isDebug="false" devMode="true" force="html" dojoType="dojox.form.FileUploader">Default Markup HTML</button>-->
118 </div>
119 </div>
120
121 </body>
122 </html>