<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Julian:</DIV>
<DIV> </DIV>
<DIV>Building a new Xerte file using the Page templates, selecting "Page templates"</DIV>
<DIV> </DIV>
<DIV>Insert "Title page" (1st. page) </DIV>
<DIV> </DIV>
<DIV>Insert "Plain text" (2nd. page)</DIV>
<DIV> </DIV>
<DIV>Insert "Plain text" (3rd. page) </DIV>
<DIV> </DIV>
<DIV>After building, and uploading, the user access Module. (secuencially)</DIV>
<DIV> </DIV>
<DIV>(SCORM 1.2) Default value: cmi.core.lesson_status ---> NOT ATTEMPTED</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Accesing "Title page" (1st. page) ---> script to change cmi.core.lesson_status to INCOMPLETE ---> the user starts the lesson.</DIV>
<DIV> </DIV>
<DIV>Accesing "Plain text" (2nd. page)---> no change in status</DIV>
<DIV> </DIV>
<DIV>Accesing "Plain text" (3rd last. page) ---> script to change cmi.core.lesson_status to COMPLETE ---> the user finished the lesson.</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>To acomplish this i need to put scripts to comunicate the results. (ex. _level0.setValue('cmi.core.lesson_status', 'completed');)</DIV>
<DIV> </DIV>
<DIV>I do it using standard Xerte package building (each page with its own script icon). </DIV>
<DIV> </DIV>
<DIV>But templates provide powerful tools to use but i do not know how to script inside them. </DIV>
<DIV> </DIV>
<DIV>Now, I use one last page (added as a Insert> Media > Xerte content, using a model with a page and the script).</DIV>
<DIV> </DIV>
<DIV>Thanks for support!</DIV>
<DIV> </DIV>
<DIV>Martin</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><BR>--- El <B>lun 27-jul-09, Julian Tenney <I><Julian.Tenney@nottingham.ac.uk></I></B> escribió:<BR></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid"><BR>De: Julian Tenney <Julian.Tenney@nottingham.ac.uk><BR>Asunto: RE: [Xerte] Including some scripts while using Page templates<BR>Para: "Xerte discussion list" <xerte@lists.nottingham.ac.uk><BR>Fecha: lunes, 27 de julio de 2009, 12:02 pm<BR><BR>
<DIV id=yiv1716195199>
<STYLE>
<!--
#yiv1716195199
_filtered #yiv1716195199 {font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
_filtered #yiv1716195199 {font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
_filtered #yiv1716195199 {font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
_filtered #yiv1716195199 {font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
_filtered #yiv1716195199 {font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
_filtered #yiv1716195199 {
panose-1:2 1 6 0 3 1 1 1 1 1;}
#yiv1716195199
#yiv1716195199 p.MsoNormal, #yiv1716195199 li.MsoNormal, #yiv1716195199 div.MsoNormal
        {margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman", "serif";}
#yiv1716195199 a:link, #yiv1716195199 span.MsoHyperlink
        {
color:blue;
text-decoration:underline;}
#yiv1716195199 a:visited, #yiv1716195199 span.MsoHyperlinkFollowed
        {
color:purple;
text-decoration:underline;}
#yiv1716195199 span.EmailStyle17
        {
font-family:"Calibri", "sans-serif";
color:#1F497D;}
#yiv1716195199 .MsoChpDefault
        {}
_filtered #yiv1716195199 {
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
#yiv1716195199 div.Section1
        {}
-->
</STYLE>
<DIV class=Section1>
<P class=MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri', 'sans-serif'">I’m not sure what you mean…?</SPAN></DIV>
<P class=MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri', 'sans-serif'"> </SPAN></DIV>
<DIV style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><B><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma', 'sans-serif'">From:</SPAN></B><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma', 'sans-serif'"> xerte-bounces@lists.nottingham.ac.uk [mailto:xerte-bounces@lists.nottingham.ac.uk] <B>On Behalf Of </B>Martín Dobovšek<BR><B>Sent:</B> Monday, July 27, 2009 3:07 PM<BR><B>To:</B> xerte@lists.nottingham.ac.uk<BR><B>Subject:</B> [Xerte] Including some scripts while using Page templates</SPAN></DIV></DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"> </DIV>
<TABLE class=MsoNormalTable style="MARGIN-LEFT: 36pt; WIDTH: 468pt" cellSpacing=0 cellPadding=0 width=624 border=0>
<TBODY>
<TR>
<TD style="PADDING-RIGHT: 0cm; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; PADDING-TOP: 0cm" vAlign=top>
<DIV>
<P class=MsoNormal>Julian:</DIV></DIV>
<DIV>
<P class=MsoNormal> </DIV></DIV>
<DIV>
<P class=MsoNormal>How can I include some scripts using page templates to generate a Xerte file ?. (ex. to change the lesson status of the module to "completed" after the user browsed a page?. </DIV></DIV>
<DIV>
<P class=MsoNormal> </DIV></DIV>
<DIV>
<P class=MsoNormal>The idea is to have a "text window" for ex. to include simple scripting in some template forms to generate tracking and results SCORM comunication. (like eXe for Javascript in pages templates)</DIV></DIV>
<DIV>
<P class=MsoNormal> </DIV></DIV>
<DIV>
<P class=MsoNormal>I tried including Xerte models: it works fine but add a page (blank) to the file (for ex. the last one). </DIV></DIV>
<DIV>
<P class=MsoNormal> </DIV></DIV>
<DIV>
<P class=MsoNormal>Best regards and thanks for support.</DIV></DIV>
<DIV>
<P class=MsoNormal> </DIV></DIV>
<DIV>
<P class=MsoNormal>Martin</DIV></DIV></TD></TR></TBODY></TABLE>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Calibri', 'sans-serif'"> </SPAN></DIV>
<DIV class=MsoNormal style="MARGIN-LEFT: 36pt; TEXT-ALIGN: center" align=center><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Calibri', 'sans-serif'">
<HR align=center width="100%" SIZE=1>
</SPAN></DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Calibri', 'sans-serif'"><BR></SPAN><SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'Verdana', 'sans-serif'">¡Viví la mejor experiencia en la web!<BR>Descargá gratis el nuevo Internet Explorer 8<BR>http://downloads.yahoo.com/ieak8/?l=ar</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Calibri', 'sans-serif'"></SPAN></DIV></DIV></DIV><BR>-----Adjunto en línea a continuación-----<BR><BR>
<DIV class=plainMail>_______________________________________________<BR>Xerte mailing list<BR><A href="http://ar.mc550.mail.yahoo.com/mc/compose?to=Xerte@lists.nottingham.ac.uk" ymailto="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</A><BR><A href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target=_blank>http://lists.nottingham.ac.uk/mailman/listinfo/xerte</A><BR></DIV></BLOCKQUOTE></td></tr></table><br>
<hr size=1><br><font face="Verdana" size="-2">¡Viví la mejor experiencia en la web!<br>Descargá gratis el nuevo Internet Explorer 8<br>
http://downloads.yahoo.com/ieak8/?l=ar</font>