Changeset 3794 for branches/xdomain

Show
Ignore:
Timestamp:
05/06/06 23:54:56 (3 years ago)
Author:
jburke
Message:

Merged trunk changes r3792:3793 into xdomain

Location:
branches/xdomain
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/xdomain/demos/demoRegistry.json

    r3792 r3794  
    33                        { 
    44                                name: "Widget Demos", 
    5                                 demos: ["test_DatePicker","Fisheye", "Editor","Mail","test_SortableTable"] 
     5                                demos: [ 
     6                                                "Editor", 
     7                                                "Forms", 
     8                                                "Fisheye", 
     9                                                "Mail", 
     10                                                "Moxie", 
     11                                                "Panes", 
     12                                                "Tree", 
     13                                                "test_Accordion", 
     14                                                "test_Button2", 
     15                                                "test_Chart", 
     16                                                "test_Checkbox", 
     17                                                "test_CiviCrmDateTimePicker", 
     18                                                "test_ColorPalette", 
     19                                                "test_ComboBox", 
     20                                                "test_ContentPane", 
     21                                                "test_DatePicker", 
     22                                                "test_Dialog", 
     23                                                "test_Dialog2", 
     24                                                "test_Dialog3", 
     25                                                "test_DialogRemote", 
     26                                                "test_Editor", 
     27                                                "test_Editor2", 
     28                                                "test_Editor2Toolbar", 
     29                                                "test_Editor_from_textarea", 
     30                                                "test_FisheyeList", 
     31                                                "test_FloatingPane", 
     32                                                "test_GoogleMap", 
     33                                                "test_InlineEditBox", 
     34                                                "test_Layout", 
     35                                                "test_LayoutCode", 
     36                                                "test_LayoutContainer", 
     37                                                "test_LayoutContainer_2", 
     38                                                "test_Menu2", 
     39                                                "test_Menu2_Bar", 
     40                                                "test_Menu2_Node", 
     41                                                "test_RemotePane", 
     42                                                "test_Menu2_Position", 
     43                                                "test_RichText", 
     44                                                "test_SlideShow", 
     45                                                "test_SplitContainer", 
     46                                                "test_SplitContainer_2", 
     47                                                "test_SortableTable", 
     48                                                "test_TabContainer", 
     49                                                "test_TaskBar", 
     50                                                "test_TimePicker", 
     51                                                "test_TitlePane", 
     52                                                "test_Toggler", 
     53                                                "test_Toolbar",  
     54                                                "test_Toolbar_Markup", 
     55                                                "test_Tooltip", 
     56                                                "test_Wizard", 
     57                                                "test_YahooMap" 
     58                                        ] 
    659                        }, 
     60 
    761                        { 
    862                                name: "Event Demos", 
    9                                 demos: ["test_DatePicker","Mail"] 
     63                                demos: ["Mail","test_DatePicker","test_DialogRemote","test_Editor2"] 
    1064                        }, 
    1165                        { 
     
    1468                        }, 
    1569 
     70                        { 
     71                                name: "Storage Demos", 
     72                                demos: ["Moxie"] 
     73                        } 
     74 
    1675                ], 
    1776 
    1877        definitions: { 
     78 
     79                "test_YahooMap": { 
     80                        url: "../tests/widget/test_YahooMap.html", 
     81                        author: "", 
     82                        thumbnail: "", 
     83                        screenShot: "", 
     84                        description: "Demonstrates the use of the Map widget with Yahoo as the src" 
     85                }, 
     86 
     87                "test_Wizard": { 
     88                        url: "../tests/widget/test_Wizard.html", 
     89                        author: "", 
     90                        thumbnail: "", 
     91                        screenShot: "", 
     92                        description: "Demonstrates the use of the Wizard widget" 
     93                }, 
     94 
     95                "test_Tooltip": { 
     96                        url: "../tests/widget/test_Tooltip.html", 
     97                        author: "", 
     98                        thumbnail: "", 
     99                        screenShot: "", 
     100                        description: "Demonstrates the use of the Tooltip widget" 
     101                }, 
     102 
     103                "test_Toolbar_Markup": { 
     104                        url: "../tests/widget/test_Toolbar_Markup.html", 
     105                        author: "", 
     106                        thumbnail: "", 
     107                        screenShot: "", 
     108                        description: "Demonstrates the use of the Toolbar widget with creation from markup" 
     109                }, 
     110 
     111                "test_Toolbar": { 
     112                        url: "../tests/widget/test_Toolbar.html", 
     113                        author: "", 
     114                        thumbnail: "", 
     115                        screenShot: "", 
     116                        description: "Demonstrates the use of the Toolbar widget" 
     117                }, 
     118 
     119                "test_Toggler": { 
     120                        url: "../tests/widget/test_Toggler.html", 
     121                        author: "", 
     122                        thumbnail: "", 
     123                        screenShot: "", 
     124                        description: "Demonstrates the use of the Toggler widget" 
     125                }, 
     126 
     127                "test_TitlePane": { 
     128                        url: "../tests/widget/test_TitlePane.html", 
     129                        author: "", 
     130                        thumbnail: "", 
     131                        screenShot: "", 
     132                        description: "Demonstrates the use of the TitlePane widget" 
     133                }, 
     134 
     135                "test_TimePicker": { 
     136                        url: "../tests/widget/test_TimePicker.html", 
     137                        author: "", 
     138                        thumbnail: "", 
     139                        screenShot: "", 
     140                        description: "Demonstrates the use of the TimePicker widget" 
     141                }, 
     142 
     143                "test_TaskBar": { 
     144                        url: "../tests/widget/test_TaskBar.html", 
     145                        author: "", 
     146                        thumbnail: "", 
     147                        screenShot: "", 
     148                        description: "Demonstrates the use of the Taskbar widget" 
     149                }, 
     150 
     151                "test_TabContainer": { 
     152                        url: "../tests/widget/test_TabContainer.html", 
     153                        author: "", 
     154                        thumbnail: "", 
     155                        screenShot: "", 
     156                        description: "Demonstrates the use of the TabContainer widget" 
     157                }, 
     158 
     159                "test_SplitContainer_2": { 
     160                        url: "../tests/widget/test_SplitContainer_2.html", 
     161                        author: "", 
     162                        thumbnail: "", 
     163                        screenShot: "", 
     164                        description: "Demonstrates the use of the SplitContainer widget" 
     165                }, 
     166 
     167                "test_SplitContainer": { 
     168                        url: "../tests/widget/test_SplitContainer.html", 
     169                        author: "", 
     170                        thumbnail: "", 
     171                        screenShot: "", 
     172                        description: "Demonstrates the use of the SplitContainer widget" 
     173                }, 
     174 
     175                "test_SlideShow": { 
     176                        url: "../tests/widget/test_SlideShow.html", 
     177                        author: "", 
     178                        thumbnail: "", 
     179                        screenShot: "", 
     180                        description: "Demonstrates the use of the SlideShow widget" 
     181                }, 
     182 
     183                "test_RichText": { 
     184                        url: "../tests/widget/test_RichText.html", 
     185                        author: "", 
     186                        thumbnail: "", 
     187                        screenShot: "", 
     188                        description: "Demonstrates the use of the RichText widget" 
     189                }, 
     190 
     191                "test_RemotePane": { 
     192                        url: "../tests/widget/test_RemotePane.html", 
     193                        author: "", 
     194                        thumbnail: "", 
     195                        screenShot: "", 
     196                        description: "Demonstrates the use of the remotely loaded pane" 
     197                }, 
     198 
     199                "test_Menu2_Position": { 
     200                        url: "../tests/widget/test_Menu2_Position.html", 
     201                        author: "", 
     202                        thumbnail: "", 
     203                        screenShot: "", 
     204                        description: "Tests the positioning of popup menus defined within other containers" 
     205                }, 
     206 
     207                "test_Menu2_Node": { 
     208                        url: "../tests/widget/test_Menu2_Node.html", 
     209                        author: "", 
     210                        thumbnail: "", 
     211                        screenShot: "", 
     212                        description: "Demonstrates the use of the ContextMenus attached to a node" 
     213                }, 
     214 
     215                "test_Menu2_Bar": { 
     216                        url: "../tests/widget/test_Menu2_Bar.html", 
     217                        author: "", 
     218                        thumbnail: "", 
     219                        screenShot: "", 
     220                        description: "Demonstrates the use of the MenuBar and ContextMenu widgets" 
     221                }, 
     222 
     223                "test_Menu2": { 
     224                        url: "../tests/widget/test_Menu2.html", 
     225                        author: "", 
     226                        thumbnail: "", 
     227                        screenShot: "", 
     228                        description: "Demonstrates the use of the Menu2 ContextMenu widget" 
     229                }, 
     230 
     231                "test_LayoutContainer_2": { 
     232                        url: "../tests/widget/test_LayoutContainer_2.html", 
     233                        author: "", 
     234                        thumbnail: "", 
     235                        screenShot: "", 
     236                        description: "Demonstrates the use of the LayoutContainer widget" 
     237                }, 
     238 
     239                "test_LayoutContainer": { 
     240                        url: "../tests/widget/test_LayoutContainer.html", 
     241                        author: "", 
     242                        thumbnail: "", 
     243                        screenShot: "", 
     244                        description: "Demonstrates the use of the LayoutContainer widget" 
     245                }, 
     246 
     247                "test_LayoutCode": { 
     248                        url: "../tests/widget/test_LayoutCode.html", 
     249                        author: "", 
     250                        thumbnail: "", 
     251                        screenShot: "", 
     252                        description: "Demonstrates the use of the Layout widgets with programmatic creation" 
     253                }, 
     254 
     255                "test_Layout": { 
     256                        url: "../tests/widget/test_Layout.html", 
     257                        author: "", 
     258                        thumbnail: "", 
     259                        screenShot: "", 
     260                        description: "Demonstrates the use of the Layout widgets" 
     261                }, 
     262 
     263                "test_InlineEditBox": { 
     264                        url: "../tests/widget/test_InlineEditBox.html", 
     265                        author: "", 
     266                        thumbnail: "", 
     267                        screenShot: "", 
     268                        description: "Demonstrates the use of the InlineEditBox widget" 
     269                }, 
     270 
     271                "test_GoogleMap": { 
     272                        url: "../tests/widget/test_GoogleMap.html", 
     273                        author: "", 
     274                        thumbnail: "", 
     275                        screenShot: "", 
     276                        description: "Demonstrates the use of the GoogleMap Widget (use from sites outside of dojotoolkit.org will require a google key)" 
     277                }, 
     278 
     279                "test_FloatingPane": { 
     280                        url: "../tests/widget/test_FloatingPane.html", 
     281                        author: "", 
     282                        thumbnail: "", 
     283                        screenShot: "", 
     284                        description: "Demonstrates the use of the FloatingPane widget" 
     285                }, 
     286 
     287                "test_FisheyeList": { 
     288                        url: "../tests/widget/test_FisheyeList.html", 
     289                        author: "", 
     290                        thumbnail: "", 
     291                        screenShot: "", 
     292                        description: "Demonstrates the use of the Fisheye widget" 
     293                }, 
     294 
     295                "test_Editor_from_textarea": { 
     296                        url: "../tests/widget/test_Editor_from_textarea.html", 
     297                        author: "", 
     298                        thumbnail: "", 
     299                        screenShot: "", 
     300                        description: "Demonstrates the use of the Editor widget with inital content from a textarea" 
     301                }, 
     302 
     303                "test_Editor2Toolbar": { 
     304                        url: "../tests/widget/test_Editor2Toolbar.html", 
     305                        author: "", 
     306                        thumbnail: "", 
     307                        screenShot: "", 
     308                        description: "Demonstrates the use of the Editor2ToolBar widget" 
     309                }, 
     310 
     311                "test_Editor2": { 
     312                        url: "../tests/widget/test_Editor2.html", 
     313                        author: "", 
     314                        thumbnail: "", 
     315                        screenShot: "", 
     316                        description: "Demonstrates the use of the Editor2 widget" 
     317                }, 
     318 
     319                "test_Editor": { 
     320                        url: "../tests/widget/test_Editor.html", 
     321                        author: "", 
     322                        thumbnail: "", 
     323                        screenShot: "", 
     324                        description: "Demonstrates the use of the Editor widget" 
     325                }, 
     326 
     327                "test_DialogRemote": { 
     328                        url: "../tests/widget/test_DialogRemote.html", 
     329                        author: "", 
     330                        thumbnail: "", 
     331                        screenShot: "", 
     332                        description: "Demonstrates the use of the Dialog widget with the dialogs content loaded remotely" 
     333                }, 
     334 
     335                "test_Dialog3": { 
     336                        url: "../tests/widget/test_Dialog3.html", 
     337                        author: "", 
     338                        thumbnail: "", 
     339                        screenShot: "", 
     340                        description: "Demonstrates the use of the Dialog widget" 
     341                }, 
     342 
     343                "test_Dialog2": { 
     344                        url: "../tests/widget/test_Dialog2.html", 
     345                        author: "", 
     346                        thumbnail: "", 
     347                        screenShot: "", 
     348                        description: "Demonstrates the use of the Dialog widget" 
     349                }, 
     350 
     351 
     352                "test_Dialog": { 
     353                        url: "../tests/widget/test_Dialog.html", 
     354                        author: "", 
     355                        thumbnail: "", 
     356                        screenShot: "", 
     357                        description: "Demonstrates the use of the the Dialog widget" 
     358                }, 
     359 
     360 
    19361                "test_DatePicker": { 
    20362                        url: "../tests/widget/test_DatePicker.html", 
     
    25367                }, 
    26368 
     369                "test_Accordion": { 
     370                        url: "../tests/widget/test_Accordion.html", 
     371                        author: "Dustin Machi", 
     372                        thumbnail: "", 
     373                        screenShot: "", 
     374                        description: "test_Accordion demonstrates the use of the the Accordion widget" 
     375                }, 
     376 
     377                "test_Button2": { 
     378                        url: "../tests/widget/test_Button2.html", 
     379                        author: "", 
     380                        thumbnail: "", 
     381                        screenShot: "", 
     382                        description: "test_Button2 demonstrates the use of the the Button2 widget and a custom widget extended from Button" 
     383                }, 
     384 
     385                "test_Chart": { 
     386                        url: "../tests/widget/test_Chart.html", 
     387                        author: "", 
     388                        thumbnail: "", 
     389                        screenShot: "", 
     390                        description: "test_Chart demonstrates SVG Charting in dojo.  It requires a browser capable of inline SVG" 
     391                }, 
     392 
     393                "test_Checkbox": { 
     394                        url: "../tests/widget/test_Checkbox.html", 
     395                        author: "", 
     396                        thumbnail: "", 
     397                        screenShot: "", 
     398                        description: "test_Checkbox demonstrates the use of the the Checkbox widget" 
     399                }, 
     400 
     401                "test_CiviCrmDateTimePicker": { 
     402                        url: "../tests/widget/test_CiviCrmDateTimePicker.html", 
     403                        author: "", 
     404                        thumbnail: "", 
     405                        screenShot: "", 
     406                        description: "Demonstrates the use of the the DatePicker and TimePicker widgets" 
     407                }, 
     408 
     409                "test_ColorPalette": { 
     410                        url: "../tests/widget/test_ColorPalette.html", 
     411                        author: "", 
     412                        thumbnail: "", 
     413                        screenShot: "", 
     414                        description: "Demonstrates the use of the the ColorPalette widget" 
     415                }, 
     416 
     417                "test_ComboBox": { 
     418                        url: "../tests/widget/test_ComboBox.html", 
     419                        author: "", 
     420                        thumbnail: "", 
     421                        screenShot: "", 
     422                        description: "Demonstrates the use of the the ComboBox widget" 
     423                }, 
     424 
     425                "test_ContentPane": { 
     426                        url: "../tests/widget/test_ContentPane.html", 
     427                        author: "", 
     428                        thumbnail: "", 
     429                        screenShot: "", 
     430                        description: "Demonstrates the use of the the ContentPane widget" 
     431                }, 
     432 
     433 
     434                "Tree": { 
     435                        url: "widget/Tree/tree.html", 
     436                        author: "Ilia Kantor", 
     437                        thumbnail: "", 
     438                        screenShot: "", 
     439                        description: "Demonstration of the Dojo's Tree Widget", 
     440                }, 
     441 
     442                "Panes": { 
     443                        url: "widget/Panes.html", 
     444                        author: "Anonymous", 
     445                        thumbnail: "", 
     446                        screenShot: "", 
     447                        description: "Demonstration of Dojo's layout Containers and Panes" 
     448                }, 
     449 
     450                "Moxie": { 
     451                        url: "storage/editor.html", 
     452                        author: "Brad Neuburg", 
     453                        thumbnail: "", 
     454                        screenShot: "", 
     455                        description: "Editor application that demonstrates use of dojo.strorage for offline use" 
     456                }, 
     457 
     458                "Forms": { 
     459                        url: "widget/Form.html", 
     460                        author: "Anonymous", 
     461                        thumbnail: "", 
     462                        screenShot: "", 
     463                        description: "Demonstration of the Dojo's Form Widgets" 
     464                }, 
     465 
    27466                "Fisheye": { 
    28467                        url: "widget/Fisheye.html", 
     
    30469                        thumbnail: "", 
    31470                        screenShot: "", 
    32                         description: "Very Simple demonstration of the Dojo Fisheye Widget", 
     471                        description: "Very Simple demonstration of the Dojo Fisheye Widget" 
    33472                }, 
    34473 
  • branches/xdomain/src/widget/html/DemoEngine.js

    r3792 r3794  
    1717        this.navigationNode=""; 
    1818        this.navigationClass="demoEngineNavigation"; 
     19 
    1920        this.collapseToNode=""; 
    2021        this.collapseToClass="collapseTo"; 
     22 
    2123        this.menuNavigationNode=""; 
    2224        this.menuNavigationClass="demoEngineMenuNavigation"; 
     25 
    2326        this.demoNavigationNode=""; 
    2427        this.demoNavigationClass="demoEngineDemoNavigation"; 
     28 
    2529        this.demoListingsNode=""; 
    2630        this.demoListingsClass="demoEngineDemoListings"; 
     31 
    2732        this.demoListingsTbody=""; 
    2833 
    2934        this.demoContainerNode=""; 
    3035        this.demoContainerClass="demoEngineDemoContainer"; 
     36 
    3137        this.demoHeaderNode=""; 
    3238        this.demoHeaderClass="demoEngineDemoHeader"; 
     39 
    3340        this.collapsedMenuNode=""; 
    3441        this.collapsedMenuClass="demoEngineCollapsedMenu"; 
     42 
    3543        this.aboutNode=""; 
    3644        this.aboutClass="demoEngineAbout"; 
     45 
    3746        this.demoPaneNode="";    
    3847        this.demoTabContainer=""; 
     
    6574                dojo.style.setOpacity(this.demoContainerNode,0); 
    6675 
    67                 //connect to the collapsedMenuNode onclick 
    68                 //dojo.event.connect(this.collapsedMenuNode, "onclick", this, "expandDemoNavigation"); 
    69          
    7076                //Populate the menu 
    7177                this.buildMenu(); 
     
    146152        }, 
    147153 
     154        showIframe: function(e) { 
     155                dojo.lfx.html.fadeShow(e.currentTarget,250).play(); 
     156        }, 
     157 
    148158        launchDemo: function(e) { 
    149159                dojo.debug("Launching Demo: " + e.currentTarget.lastChild.firstChild.innerHTML); 
     
    157167                this.demoTabContainer.destroyChildren(); 
    158168 
    159                 var tempDiv =document.createElement("div"); 
    160169                demoIframe = document.createElement("iframe"); 
    161170                demoIframe.src=this.registry.definitions[e.currentTarget.lastChild.firstChild.innerHTML].url; 
     171                dojo.style.hide(demoIframe); 
     172 
     173                dojo.event.kwConnect({ 
     174                        srcObj:     demoIframe,  
     175                        srcFunc:    "onload",  
     176                        targetObj:    this, 
     177                        targetFunc: "showIframe", 
     178                        once:       true 
     179                }); 
    162180 
    163181                dojo.html.removeChildren(this.aboutNode); 
     
    169187                this.aboutNode.appendChild(about); 
    170188 
    171                 cn = dojo.widget.createWidget("ContentPane",{label: "Live Demo"}); 
    172                 cn.domNode.appendChild(demoIframe); 
    173  
    174                 this.demoTabContainer.addChild(cn); 
     189                liveDemo = dojo.widget.createWidget("ContentPane",{label: "Live Demo"}); 
     190                liveDemo.domNode.appendChild(demoIframe); 
     191 
     192                this.demoTabContainer.addChild(liveDemo); 
    175193                demoIframe.parentNode.style.display="inline"; 
    176194                demoIframe.parentNode.parentNode.style.overflow="hidden"; 
     
    181199                                source = document.createElement("textarea"); 
    182200                                source.appendChild(document.createTextNode(data)); 
    183                                 var cn2 = dojo.widget.createWidget("ContentPane",{label: "Source"}); 
    184                                 cn2.domNode.appendChild(source); 
    185                                 this.demoTabContainer.addChild(cn2); 
    186                                 dojo.style.show(cn2.domNode); 
     201                                var sourcePane = dojo.widget.createWidget("ContentPane",{label: "Source"}); 
     202                                sourcePane.domNode.appendChild(source); 
     203                                this.demoTabContainer.addChild(sourcePane); 
     204                                dojo.style.show(sourcePane.domNode); 
    187205 
    188206                                //let the text area take care of the scrolling  
    189                                 cn2.domNode.style.overflow="hidden"; 
     207                                sourcePane.domNode.style.overflow="hidden"; 
    190208                                 
    191209                        }) 
    192210