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/15 17:22:36 UTC

svn commit: r431645 - /incubator/xap/trunk/WebContent/examples/dojo/dateAndColorPickers.html

Author: mturyn
Date: Tue Aug 15 10:22:35 2006
New Revision: 431645

URL: http://svn.apache.org/viewvc?rev=431645&view=rev
Log:
Tweaked bridge.attributeSet, other changes made in examples along the way.

Modified:
    incubator/xap/trunk/WebContent/examples/dojo/dateAndColorPickers.html

Modified: incubator/xap/trunk/WebContent/examples/dojo/dateAndColorPickers.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/dojo/dateAndColorPickers.html?rev=431645&r1=431644&r2=431645&view=diff
==============================================================================
--- incubator/xap/trunk/WebContent/examples/dojo/dateAndColorPickers.html (original)
+++ incubator/xap/trunk/WebContent/examples/dojo/dateAndColorPickers.html Tue Aug 15 10:22:35 2006
@@ -35,9 +35,13 @@
 							) ;
     </script>
    
-    <script language="JavaScript" type="text/javascript">
-    	Xap.bootstrap( "../../", true);
-  	</script>
+	<script language="JavaScript" type="text/javascript">
+    		Xap.bootstrap( "../../", true);
+    		
+    		// Define the color-picker:
+    		//Xap.defineSession = function(src, xapletName,xapHomeId,context,toolkit)
+    		Xap.defineSession("colorPicker.xal", "ColorPicker","colorPickerHome","../../","dojo") ; 
+	</script>
 <!--  Do this as late as possible---brings in script tags: -->
 <script language="JavaScript"> Xap._loadDebuggables();</script>
 
@@ -56,14 +60,7 @@
 	<script language="JavaScript" src="datePickerHandler.js"> </script>	
 	<script language="JavaScript" src="colorPickerHandler.js"> </script>		
 
-<SCRIPT language="JavaScript">
-	Xap.defineSession("datePicker.xal", 
-						"DatePicker",
-						"datePickerHome",
-						"../../",
-						"dojo"
-						) ;
-</SCRIPT>
+
  
  
  </head>
@@ -82,17 +79,16 @@
 		<tr><td><div  id="dp"/><td/><td></td></tr>
 		<tr><td id="xapStat"></td>		
 			<td><div xapContext="../../" 
-				xapId="DatePicker" xapSrcc="datePicker.xal" xapToolkit="dojo">DatePicker's home-base.</div>
+				xapId="DatePicker" xapSrc="datePicker.xal" xapToolkit="dojo">DatePicker's home-base.</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>
+			</div></td><td><div><div  id="datePickerDisplayer">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 xapContext="../../"  
-						xapId="ColorPicker" xapSrc="colorPicker.xal" xapToolkit="dojo">This cell is the xap ClientSession "ColorPicker"'s home-base.
+				<div  id="colorPickerHome">This cell is the xap ClientSession "ColorPicker"'s home-base.
 				</div>
 			</td>
 			<td>