<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<STYLE>.hmmessage P {
        PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}
BODY.hmmessage {
        FONT-SIZE: 10pt; FONT-FAMILY: Tahoma
}
</STYLE>
<META content="MSHTML 6.00.6000.16674" name=GENERATOR></HEAD>
<BODY class=hmmessage>
<DIV dir=ltr align=left><SPAN class=808434014-04072008><FONT face=Arial
color=#0000ff>All perpetual really means is 'don't wait for the interaction to
exit - carry on into the page';</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=808434014-04072008><FONT face=Arial
color=#0000ff></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=808434014-04072008><FONT face=Arial
color=#0000ff>You need to get an icon to do the sendAndLoading for
you:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=808434014-04072008><FONT face=Arial
color=#0000ff></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=808434014-04072008><FONT face=Arial
color=#0000ff>create a page</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=808434014-04072008><FONT face=Arial
color=#0000ff>give it id 'myPage'</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=808434014-04072008><FONT face=Arial
color=#0000ff></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=808434014-04072008><FONT face=Arial
color=#0000ff>add a script: </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=808434014-04072008><FONT face=Arial
color=#0000ff>myXML = new XML('<request/>');</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=808434014-04072008><FONT face=Arial
color=#0000ff>myPage.sendAndLoad(myXML, URLforXML); //you must send an xml
packet - even a small one, but this is handy for parameterising the middleware
as it is posted into the page for you to handle there</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=808434014-04072008><FONT face=Arial
color=#0000ff></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=808434014-04072008><FONT face=Arial
color=#0000ff>add an interaction with an event response:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=808434014-04072008><FONT face=Arial
color=#0000ff>icon: myPage</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=808434014-04072008><FONT face=Arial
color=#0000ff>eventName: onSendAndLoad</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=808434014-04072008><FONT face=Arial
color=#0000ff></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=808434014-04072008><FONT face=Arial
color=#0000ff>add asc ript to the response:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=808434014-04072008><FONT face=Arial
color=#0000ff>debug(myPage.serverXML); //is the xml object created from the
loaded file;</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=808434014-04072008><FONT face=Arial
color=#0000ff>debug(myPage.templateData);//is the xml2object result from
serverXML</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=808434014-04072008><FONT face=Arial
color=#0000ff></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=808434014-04072008><FONT face=Arial
color=#0000ff>?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=808434014-04072008><FONT face=Arial
color=#0000ff></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=808434014-04072008><FONT face=Arial
color=#0000ff>J</FONT></SPAN></DIV>
<DIV dir=ltr align=left>
<HR tabIndex=-1>
</DIV>
<DIV dir=ltr align=left><FONT face=Tahoma><B>From:</B>
xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] <B>On Behalf Of </B>Dave
Burnett<BR><B>Sent:</B> 04 July 2008 15:21<BR><B>To:</B> Xerte
list<BR><B>Subject:</B> [Xerte] (no subject)<BR></FONT><BR></DIV>
<DIV></DIV>The parser dives through the xml sideways, so page 2 doesn't exist as
it<BR>sets up the icons in the entry frame.<BR><BR>The way around it is set up a
listener to rootIcon, which will exist,<BR>and then ask rootIcon to broadcast
custom events for you.<BR><BR>You can set up a rootIcon.myCustomEvent handler,
and at any time fire<BR>rootIcon.broadcast('myCustomEvent');<BR><BR>It doesn't
usually require this though.<BR><BR>===========<BR> <BR> <BR>OK,
thanks.<BR> <BR>This was all really an exercise to try and find a way to
trap that XML loaded event.<BR>As you said, the XML does load, but I can't find
a way to get the event.<BR>I tried both load and sendandload, but no
luck.<BR> <BR>So I was trying toi get a handle on the scope of the
"perpetual" event structure.<BR>Or does the engine just not pass that event at
this
point?<BR> <BR>-dave<BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR><BR> <BR><BR>
<HR>
Need to know now? Get instant answers with Windows Live Messenger. <A
href="http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_messenger_072008"
target=_new>IM on your terms.</A> </BODY></HTML>