You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xap-commits@incubator.apache.org by mt...@apache.org on 2006/08/11 19:58:52 UTC
svn commit: r430880 - in /incubator/xap/trunk/WebContent/examples:
basic/dom0.html dojo/colorPicker.html dojo/colorPickerHandler.js
dojo/dateAndColorPickers.html dojo/datePicker.html
dojo/datePickerHandler.js dojo/dojo1.html dojo/dojoExample_0.html
Author: mturyn
Date: Fri Aug 11 12:58:51 2006
New Revision: 430880
URL: http://svn.apache.org/viewvc?rev=430880&view=rev
Log:
Updated special xap attributes to final[?] names: xapI,xapContext,xapToolkit,xapSrc.
Modified:
incubator/xap/trunk/WebContent/examples/basic/dom0.html
incubator/xap/trunk/WebContent/examples/dojo/colorPicker.html
incubator/xap/trunk/WebContent/examples/dojo/colorPickerHandler.js
incubator/xap/trunk/WebContent/examples/dojo/dateAndColorPickers.html
incubator/xap/trunk/WebContent/examples/dojo/datePicker.html
incubator/xap/trunk/WebContent/examples/dojo/datePickerHandler.js
incubator/xap/trunk/WebContent/examples/dojo/dojo1.html
incubator/xap/trunk/WebContent/examples/dojo/dojoExample_0.html
Modified: incubator/xap/trunk/WebContent/examples/basic/dom0.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/basic/dom0.html?rev=430880&r1=430879&r2=430880&view=diff
==============================================================================
--- incubator/xap/trunk/WebContent/examples/basic/dom0.html (original)
+++ incubator/xap/trunk/WebContent/examples/basic/dom0.html Fri Aug 11 12:58:51 2006
@@ -90,11 +90,11 @@
<tr><th width="30%">0.</th><th>1.</th></tr>
<tr><td><td/><td/></tr>
<tr><td id="xapStat"></td>
- <td><div context="../../" id="applicationHome"
- appName="MyApp" src="dom0.xal" toolkit="dojo">This cell is the xap ClientSession "MyApp"'s home-base.</div>
+ <td><div xapContext="../../" id="applicationHome"
+ xapId="MyApp" xapSrc="dom0.xal" xapToolkit="dojo">This cell is the xap ClientSession "MyApp"'s home-base.</div>
</td>
</tr>
- <tr><td height="5em" id="targetNode" valign="top" align="left" onmouseover="javascript:document.onAnotherEvent()">FOObar</td><td/></tr>
+ <tr><td height="5em" id="targetNode" valign="top" align="left" onmouseover="javascript:document.onAnotherEvent()"> </td><td/></tr>
<tr><td height="30px" bgColor="#884466"><td id="mouseOverDisplayer"/>Mouse-over number 0.<td/></tr>
</table>
Modified: incubator/xap/trunk/WebContent/examples/dojo/colorPicker.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/dojo/colorPicker.html?rev=430880&r1=430879&r2=430880&view=diff
==============================================================================
--- incubator/xap/trunk/WebContent/examples/dojo/colorPicker.html (original)
+++ incubator/xap/trunk/WebContent/examples/dojo/colorPicker.html Fri Aug 11 12:58:51 2006
@@ -61,7 +61,7 @@
<script type="text/javascript">
DBG = new AjxDebug( AjxDebug.NONE, null, false );
</script>
- <h1>A Dojo "ColorPalette" wrapped by an AbstractBlackBoxWidgetBridge subclass, managed by a xaplet in a different cell.</h1>
+ <h1>A Dojo "ColorPalette" wrapped by an AbstractBlackBoxWidgetBridge subclass, managed by a xaplet in that cell.</h1>
<table id="bigtable" border="4px" borderColor="#8866AA" width="80%" height="80%"
style="left:10%;top:10%"
@@ -70,8 +70,8 @@
<tr><th width="30%">0.</th><th>1.</th></tr>
<tr><td>This is put here by plain old Dojo.<div id="dp"/><td/><td></td></tr>
<tr><td id="xapStat"></td>
- <td><div context="../../" id="applicationHome1"
- appName="ColorPicker" src="colorPicker.xal" toolkit="dojo">This cell is the xap ClientSession "MyApp"'s home-base.</div>
+ <td><div id="applicationHome1"
+ xapId="ColorPicker" xapSrc="colorPicker.xal" xapToolkit="dojo">This cell is the xap ClientSession "MyApp"'s home-base.</div>
</td>
</tr>
<tr><td>This ColorPicker was put here via a xap application:<div height="5em" id="colorPickerHome" valign="top" align="left"/></div></td><td></td></tr>
Modified: incubator/xap/trunk/WebContent/examples/dojo/colorPickerHandler.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/dojo/colorPickerHandler.js?rev=430880&r1=430879&r2=430880&view=diff
==============================================================================
--- incubator/xap/trunk/WebContent/examples/dojo/colorPickerHandler.js (original)
+++ incubator/xap/trunk/WebContent/examples/dojo/colorPickerHandler.js Fri Aug 11 12:58:51 2006
@@ -39,11 +39,11 @@
+colour
+ "</div>"
+"</font>"
- +" = rgb("
+ +" = <b>rgb("
+"<font color=\" #"+rgbHex.r+"0000\">" +rgb.r +"</font>,"
+"<font color=\" #00"+rgbHex.g+"00\">" +rgb.g +"</font>,"
+"<font color=\" #0000"+rgbHex.b+"\">" +rgb.b +"</font>"
- +")"
+ +")</b>"
+"</font></font>" ;
displayer.innerHTML =str ;
}
Modified: incubator/xap/trunk/WebContent/examples/dojo/dateAndColorPickers.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/dojo/dateAndColorPickers.html?rev=430880&r1=430879&r2=430880&view=diff
==============================================================================
--- incubator/xap/trunk/WebContent/examples/dojo/dateAndColorPickers.html (original)
+++ incubator/xap/trunk/WebContent/examples/dojo/dateAndColorPickers.html Fri Aug 11 12:58:51 2006
@@ -61,11 +61,11 @@
</head>
- <body onload="Xap.scanPage();if(document.showXapStatus){document.showXapStatus('DatePicker');document.showXapStatus('ColorPicker');}; ">
+ <body onload="Xap.scanPage();if(document.showXapStatus){document.showXapStatus(['DatePicker','ColorPicker']);}; ">
<script type="text/javascript">
DBG = new AjxDebug( AjxDebug.NONE, null, false );
</script>
- <h1>Two Xap-specd applications in one page.</h1>
+ <h1>Two Xap-spec'd applications in one page.</h1>
<table id="bigtable" border="5px" borderColor="#88FF88" width="80%" height="80%"
style="left:10%;top:10%"
@@ -74,17 +74,18 @@
<tr><th width="50%">0.</th><th>1.</th></tr>
<tr><td><div id="dp"/><td/><td></td></tr>
<tr><td id="xapStat"></td>
- <td><div context="../../" id="datePickerHome0"
- appName="DatePicker" src="datePicker.xal" toolkit="dojo">DatePicker's home-base.</div>
+ <td><div xapContext="../../"
+ xapId="DatePicker" xapSrc="datePicker.xal" xapToolkit="dojo">DatePicker's home-base.</div>
</td>
</tr>
- <tr><td>This DatePicker was put here via a xap application:based elsewhere.<div height="5em" id="targetNode" valign="top" align="left"/></div></td><td><div id="displ"><b>Pick a day....</b></div></td></tr>
+ <tr><td ><div id="displ"><b>Pick a day....</b></div><div height="5em" id="targetNode" valign="top" align="left"/>
+ </div></td><td><div><div id="datePickerHome">This DatePicker was put here via a xap application:based elsewhere.</div></div></td></tr>
<tr><td></td><td height="30px" bgColor="#FFFFee"></td></tr>
<tr>
<td>
- <div context="../../" id="colorPickerHome"
- appName="ColorPicker" src="colorPicker.xal" toolkit="dojo">This cell is the xap ClientSession "ColorPicker"'s home-base.
+ <div xapContext="../../"
+ xapId="ColorPicker" xapSrc="colorPicker.xal" xapToolkit="dojo">This cell is the xap ClientSession "ColorPicker"'s home-base.
</div>
</td>
<td>
Modified: incubator/xap/trunk/WebContent/examples/dojo/datePicker.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/dojo/datePicker.html?rev=430880&r1=430879&r2=430880&view=diff
==============================================================================
--- incubator/xap/trunk/WebContent/examples/dojo/datePicker.html (original)
+++ incubator/xap/trunk/WebContent/examples/dojo/datePicker.html Fri Aug 11 12:58:51 2006
@@ -47,7 +47,8 @@
// including the object dojo.widget needed to create one
dojo.require("dojo.widget.*");
dojo.require("dojo.event.*");
- dojo.require("dojo.widget.DatePicker");
+// Now loaded with the bridge that wraps it:
+// dojo.require("dojo.widget.DatePicker");
</script>
<script language="JavaScript" src="xapStatus.js"> </script>
@@ -74,11 +75,11 @@
<tr><th width="60%">0.</th><th>1.</th></tr>
<tr><td>This is put here by plain old Dojo.<div id="dp"/><td/><td></td></tr>
<tr><td id="xapStat"></td>
- <td><div context="../../" id="datePickerHome"
- appName="DatePicker" src="datePicker.xal" toolkit="dojo"><div>This DatePicker was put here via a xap application:</div>This cell is the xap ClientSession "DatePicker"'s home-base.</div>
+ <td><div xapContext="../../"
+ xapId="DatePicker" xapSrc="datePicker.xal" xapToolkit="dojo">This cell is the xap ClientSession "DatePicker"'s home-base.</div>
</td>
</tr>
- <tr><td></td><td></td></tr>
+ <tr><td><div id="datePickerHome" >This DatePicker was put here via a xap application:</div></td><td></td></tr>
<tr><td height="30px" bgColor="#FFFFee"><div id="displ"><b>Pick a day....</b></div></td><td id="mouseOverDisplayer"/><td/></tr>
</table>
Modified: incubator/xap/trunk/WebContent/examples/dojo/datePickerHandler.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/dojo/datePickerHandler.js?rev=430880&r1=430879&r2=430880&view=diff
==============================================================================
--- incubator/xap/trunk/WebContent/examples/dojo/datePickerHandler.js (original)
+++ incubator/xap/trunk/WebContent/examples/dojo/datePickerHandler.js Fri Aug 11 12:58:51 2006
@@ -44,7 +44,7 @@
+attributes[ii].nodeValue+"</font>" ;
}
}
- var ticker = document.showXapStatus("DatePicker") ;
+ var ticker = document.showXapStatus() ;
ticker.innerHTML = ticker.innerHTML + resultString ;
}
Modified: incubator/xap/trunk/WebContent/examples/dojo/dojo1.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/dojo/dojo1.html?rev=430880&r1=430879&r2=430880&view=diff
==============================================================================
--- incubator/xap/trunk/WebContent/examples/dojo/dojo1.html (original)
+++ incubator/xap/trunk/WebContent/examples/dojo/dojo1.html Fri Aug 11 12:58:51 2006
@@ -49,7 +49,7 @@
dojo.require("dojo.widget.Button");
</script>
- <script language="JavaScript" src="dojo1.js"> </script>
+ <script language="JavaScript" src="xapStatus.js"> </script>
<script language="JavaScript" src="dojo1Handler.js"> </script>
</head>
@@ -68,8 +68,8 @@
<tr><th width="30%">0.</th><th>1.</th></tr>
<tr><td/><td/><td/><td/></tr>
<tr><td id="xapStat"></td>
- <td><div context="../../"
- appName="MyApp" src="dojo1.xal" toolkit="dojo">
+ <td><div xapContext="../../"
+ xapId="MyApp" xapSrc="dojo1.xal" xapToolkit="dojo">
</td>
</tr>
<tr><td colspan="2" height="5em"></td></tr>
Modified: incubator/xap/trunk/WebContent/examples/dojo/dojoExample_0.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/dojo/dojoExample_0.html?rev=430880&r1=430879&r2=430880&view=diff
==============================================================================
--- incubator/xap/trunk/WebContent/examples/dojo/dojoExample_0.html (original)
+++ incubator/xap/trunk/WebContent/examples/dojo/dojoExample_0.html Fri Aug 11 12:58:51 2006
@@ -63,7 +63,7 @@
SOME TEXT
<h1>SOME BIG TEXT</h1>
- <div context="../../" appName="MyApp" src="dojoExample_0.xal" toolkit="dojo" >
+ <div xapContext="../../" xapId="MyApp" xapSrc="dojoExample_0.xal" xapToolkit="dojo" >
</div>
<!-- MyApp as the app name is a top-level alias for session