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/16 05:53:10 UTC
svn commit: r431836 - in /incubator/xap/trunk/WebContent/examples/basic:
dom0.html dom0.xal
Author: mturyn
Date: Tue Aug 15 22:53:10 2006
New Revision: 431836
URL: http://svn.apache.org/viewvc?rev=431836&view=rev
Log:
Altered to go with a change in terminology in the bridge class---DomNodeBridge---that this demonstrates.
Modified:
incubator/xap/trunk/WebContent/examples/basic/dom0.html
incubator/xap/trunk/WebContent/examples/basic/dom0.xal
Modified: incubator/xap/trunk/WebContent/examples/basic/dom0.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/basic/dom0.html?rev=431836&r1=431835&r2=431836&view=diff
==============================================================================
--- incubator/xap/trunk/WebContent/examples/basic/dom0.html (original)
+++ incubator/xap/trunk/WebContent/examples/basic/dom0.html Tue Aug 15 22:53:10 2006
@@ -26,8 +26,7 @@
// look like
Xap.addDebuggables(
"xap.taghandling.AbstractTagImpl",
- "xap.bridges.dojo.DojoWidgetBridge",
- "xap.bridges.dojo.DojoButtonBridge",
+ "xap.bridges.basic.AbstractBlackBoxWidgetBridge",
"xap.bridges.basic.DomNodeBridge"
) ;
</script>
@@ -62,11 +61,11 @@
var iii=0 ;
-
+// A simple test of dojo attachment, independent of Xap:
document.attachOurEvent = function(){
var displayer = document.getElementById("mouseOverDisplayer") ;
displayer.lastCallInChain = function(){
- displayer.innerHTML = "Mouse-over number "+ (++iii) +"." ;
+ displayer.innerHTML = "<b> Mouse over/off transitions: <font color=\"#660000\">"+ (++iii) +"</font>.</b>" ;
}
dojo.event.connect(document,"onAnotherEvent",displayer,"lastCallInChain") ;
}
@@ -94,7 +93,9 @@
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()"> </td><td id="mouseOverDisplayer"/>Mouse-over number 0.<td/></tr>
+ <tr><td height="5em" valign="top" align="left" onmouseover="javascript:document.onAnotherEvent()" id="targetNode"> target was here</div> </td>
+ <td id="mouseOverDisplayer" valign="middle"><b> Mouse over/off transitions: <font color="#660000">0</font>.<td/>
+ </tr>
</table>
Modified: incubator/xap/trunk/WebContent/examples/basic/dom0.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/basic/dom0.xal?rev=431836&r1=431835&r2=431836&view=diff
==============================================================================
--- incubator/xap/trunk/WebContent/examples/basic/dom0.xal (original)
+++ incubator/xap/trunk/WebContent/examples/basic/dom0.xal Tue Aug 15 22:53:10 2006
@@ -12,10 +12,10 @@
<xm:modifications xmlns:xm="http://www.openxal.org/xmodify">
<xm:append select="/xal">
<dom xmlns="http://www.dojotoolkit.org/"
- displayerId="targetNode"
+ wrappedNodeId="targetNode"
bgColor="#eeddFF"
color="#ffeeff"
- innerHTML="Mouse over me!"
+ innerHTML="<b>Mouse over this cell...</b>"
valign="middle"
align="center"
/>