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 2007/01/27 18:17:20 UTC

svn commit: r500581 - /incubator/xap/trunk/samples/WebContent/examples/basic/index.html

Author: mturyn
Date: Sat Jan 27 10:17:19 2007
New Revision: 500581

URL: http://svn.apache.org/viewvc?view=rev&rev=500581
Log:
changed the file to index.html

Added:
    incubator/xap/trunk/samples/WebContent/examples/basic/index.html

Added: incubator/xap/trunk/samples/WebContent/examples/basic/index.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/basic/index.html?view=auto&rev=500581
==============================================================================
--- incubator/xap/trunk/samples/WebContent/examples/basic/index.html (added)
+++ incubator/xap/trunk/samples/WebContent/examples/basic/index.html Sat Jan 27 10:17:19 2007
@@ -0,0 +1,74 @@
+<html>
+<head>
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+    <title>Wrapped DOM example 0</title>
+
+	<style type="text/css">
+      <!--
+          @import url(../../css/xapDefault.css);
+      -->
+    </style>
+    
+	<!-- Keep dojo from trying to scan this whole page for dojoType'd tags: -->
+	<script type="text/javascript">
+		djConfig = {
+			parseWidgets: false,
+		};
+	</script>    
+	
+    <script language="JavaScript" type="text/javascript"> 
+    	// These should be in this order, as this is what their dependencies
+    	// look like   	
+		debug_config = { 
+			_debugList:[ 
+						"xap.taghandling.AbstractTagImpl",
+						"xap.bridges.basic.AbstractWidgetBridge",
+						"xap.bridges.basic.DomNodeBridge"
+							]} ;
+    </script>					
+	
+    <script language="JavaScript" type="text/javascript" src="../../xapcore.js"></script>
+    	
+  	
+  	  <!-- SECTION 2 -->
+
+
+	<script language="JavaScript" src="dom0.js"> </script>
+
+	<!-- must do this before we load the actual application: -->
+	<script language="JavaScript">						
+		xap.util.Debug.loadDebuggables() ;
+	</script>   
+ 
+ </head>
+ 
+ <body onLoad="Xap.createEmbeddedApplications();">
+	<h1>Wrapped DIV managed by a xaplet embedded in another table cell:</h1>
+	
+	<table id="bigtable" border="4px" borderColor="#8866AA" width="700px" height="550px"
+		style="left:10%;top:10%"
+		cellpadding="20em" cellspacing="2px">
+		<TR>
+			<TD COLSPAN="2">
+				This is a demo of basic events and behavior of dojo components inside a XAP application. Clicking in the text field increments a counter that you see in the lower right cell. Clicking the button displays information about the mouse click. The information is displayed on the right.
+			</TD>
+		</TR>
+		<tr>		
+			<td width="50%" height="200px"><div id="applicationHome" startPage="dom0.xal"></div>
+			</td>
+			<td id="xapStat" width="50%" height="400px"></td>
+		</tr>
+		<tr>
+			<td> 
+				<div id="textInputFieldHolder">
+					<input type="text" size="50"  height="5em" valign="top" align="left" id="targetNode"/>
+				</div>
+			</td>
+			<td id="mouseOverDisplayer"  valign="middle"><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Text field mouse clicks: <font color="#660000">0</font>.<td/>
+		</tr>
+	</table>
+
+
+
+</body>
+</html>