<HTML dir=ltr><HEAD><TITLE>question about xerte</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6000.16850" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText431 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>the line breaks will be messing it up.</FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Sokratis Iliadis [mailto:si8189@bristol.ac.uk]<BR><B>Sent:</B> Sat 04/07/2009 13:42<BR><B>To:</B> xerte@lists.nottingham.ac.uk<BR><B>Subject:</B> question about xerte<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>Hello,<BR><BR>i made a textcion and i gave it id=t<BR>the i added a script icon and i wrote<BR><BR>t.txt.html=false;<BR>t.txt.text="<BR><html><BR><body><BR><script type="text/javascript"><BR>document.write("This is my first JavaScript!");<BR></script><BR></body><BR></html><BR>";<BR>tf = new TextFormat();<BR>tf.font = "Andale Mono";<BR>t.setTextFormat(tf);<BR><BR>and i took as a result NaN<BR><BR>but when i put just html code as text it works. for exmple this worked:<BR><BR>t.txt.html=false;<BR>t.txt.text="<BR><html><BR><body><BR>hello world<BR></body><BR></html><BR>";<BR>tf = new TextFormat();<BR>tf.font = "Andale Mono";<BR>t.setTextFormat(tf);<BR><BR>It doesn't take the javascript code as text. it may be that the program<BR>works with javascript. Can i disable javascript in the text as we did with<BR>html?<BR><BR>Thanks for your time.<BR><BR><BR><BR><BR><BR><BR><BR>---------------------------- Original Message ----------------------------<BR>Subject: RE: question about xerte<BR>From: "Julian Tenney" <Julian.Tenney@nottingham.ac.uk><BR>Date: Fri, July 3, 2009 10:27 pm<BR>To: "Sokratis Iliadis" <si8189@bristol.ac.uk><BR> xerte@lists.nottingham.ac.uk<BR>--------------------------------------------------------------------------<BR><BR>RE: question about xerte In the model you save: PageIcon //select<BR>and save this as a model + TextIcon //leave this blank, give it an ID<BR>t - this is used in the script below to set text + ScriptIcon //as<BR>below You can then embellish it with graphics / panels / interactions<BR>etc. Welcome to Xerte. You will eventually want to use other media in<BR>your models: panels, buttons, images and so on, or sounds or video. To<BR>upload graphics you can use from your raw Xerte code like this, use the<BR>Media and Quota panel on the project's properties. Then use the resulting<BR>URL in the code in your model. You can abbreviate this using templatePath<BR>+ 'media/yourfilename.swf' in the icon's url property, or in your script.<BR> Please address questions to the list. Everyone can benefit, and others<BR>can help you. J<BR> From: Sokratis Iliadis [<A href="mailto:si8189@bristol.ac.uk">mailto:si8189@bristol.ac.uk</A>]<BR>Sent: Fri 03/07/2009 21:03<BR>To: xerte@lists.nottingham.ac.uk<BR>Subject: RE: question about xerte<BR><BR><BR>That worked. Now i understood that i can make some job in xerte and save<BR>it as model and load it to the template wizard. very nice.<BR><BR>But i haven't yet solved my problem.i want to do the example with the<BR>code. i want to have text in the left and at the right i want to have the<BR>code as text. like the tabbed navigator in templates. You have told me to<BR>do this<BR><BR>t.txt.html = false;<BR>t.txt.text="HERE IS CODE";<BR><BR> and then format it with a codey font:<BR><BR>tf = new TextFormat();<BR>tf.font = "Andale Mono";<BR>t.setTextFormat(tf);<BR><BR>But i do not know how to do this in xerte.<BR>I don't know how and where to manipulate the source code and make this<BR>tabbed navigator with the code as text in xerte. If i could make this i<BR>would load it as model to xerte templates and solve my problem. Can you<BR>give me a tip please how to make this in xerte?<BR><BR>Thanks for your time. You are realy very helpful. Forgive me if i became<BR>annoying.<BR><BR><BR>On Fri, July 3, 2009 1:10 pm, Julian Tenney wrote:<BR>> Follow these steps and you will see what I mean:<BR>><BR>> Open Xerte.<BR>> Create a new page.<BR>> In the page add a text icon<BR>> Write some text in it.<BR>> Select the page icon<BR>> Click 'file, save as model' and save the model<BR>><BR>> ...<BR>><BR>> Now go back to your template project.<BR>> Insert -> Media - >Xerte content<BR>> Load up the model you just saved.<BR>> Run the piece.<BR>><BR>> So now you can create custom pages to go alongside those included in the<BR>> template. That is what you need to do.<BR>><BR>> Please address questions to the list.<BR>><BR>> J<BR>><BR>> -----Original Message-----<BR>> From: Sokratis Iliadis [<A href="mailto:si8189@bristol.ac.uk">mailto:si8189@bristol.ac.uk</A>]<BR>> Sent: Friday, July 03, 2009 1:02 PM<BR>> To: Julian Tenney<BR>> Subject: RE: question about xerte<BR>><BR>><BR>> But i have already installed xerte. i opened xerte and then i choosed<BR>> templates->page templates and i work there because i found it easier.<BR>> Also i choosed to publish the project from there and upload this to my<BR>> web<BR>> application. i Just do not know how can i see the source code of my<BR>> published pages to put the code you gave me and display the example as<BR>> text and not as code.<BR>><BR>> This may be a stupid question but it is my first touch with<BR>> xerte.forgive me.<BR>><BR>> From the xerte (not the templates) i tried to do something but when i<BR>> published it it did not produce me the web files. i do not know why and<BR>> what was my mistake. so i am working with templates wich is more simple.<BR>> but if there is a better way let me know please.<BR>><BR>> Thanks for your time.<BR>><BR>><BR>><BR>><BR>> On Fri, July 3, 2009 11:33 am, Julian Tenney wrote:<BR>>> Sorry - I missed that you were working with templates.<BR>>><BR>>> You can use Xerte to create a page that does what you want, and then<BR>>> save that page as a model. Then upload that page into your project as<BR>>> Media -> Xerte Content.<BR>>><BR>>> That way you can integrte more complex content. You can include flash<BR>>> movies in a similar way. Download Xerte from<BR>>> www.nottingham.ac.uk/xerte/downloads/setup.exe<BR>>><BR>>> J<BR>>><BR>>> -----Original Message-----<BR>>> From: Sokratis Iliadis [<A href="mailto:si8189@bristol.ac.uk">mailto:si8189@bristol.ac.uk</A>]<BR>>> Sent: Friday, July 03, 2009 11:31 AM<BR>>> To: Julian Tenney<BR>>> Subject: RE: question about xerte<BR>>><BR>>> Thanks for your time,<BR>>> But where can i find the source code of my project to insert this code<BR>>> there.I am working with the xertre template wizard and i cannot find<BR>> the<BR>>> source code.<BR>>><BR>>><BR>>><BR>>><BR>>> On Fri, July 3, 2009 8:11 am, Julian Tenney wrote:<BR>>>> You need to set the .text property of the text field<BR>>>><BR>>>> t.txt.html = false;<BR>>>> t.txt.text="HERE IS CODE";<BR>>>><BR>>>> and then format it with a codey font:<BR>>>><BR>>>> tf = new TextFormat();<BR>>>> tf.font = "Andale Mono";<BR>>>> t.setTextFormat(tf);<BR>>>><BR>>>> J<BR>>>><BR>>>> -----Original Message-----<BR>>>> From: Sokratis Iliadis [<A href="mailto:si8189@bristol.ac.uk">mailto:si8189@bristol.ac.uk</A>]<BR>>>> Sent: Thursday, July 02, 2009 11:25 PM<BR>>>> To: xerte@lists.nottingham.ac.uk<BR>>>> Subject: question about xerte<BR>>>><BR>>>> Hello,<BR>>>><BR>>>> I am working with xerte and i am working in xerte template wizard and<BR>>> i<BR>>>> am<BR>>>> trying to make a lesson about javascript.<BR>>>> I want to put code in a textbox as example in a tabbed navigator (in<BR>>> the<BR>>>> text area of the white box).<BR>>>> but because is html code with javascript it does not show the code<BR>> but<BR>>>> the<BR>>>> result of code.<BR>>>> i am trying to put the code<BR>>>><BR>>>><BR>>>><BR>>>> document.write("Hello World!");<BR>>>><BR>>>><BR>>>><BR>>>><BR>>>> and after that i tried with<BR>>>><BR>>>> &amp;lt;html&amp;gt;<BR>>>> &amp;lt;body&amp;gt;<BR>>>> &amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;<BR>>>> document.write(&amp;quot;&amp;lt;h1&amp;gt;Hello<BR>World!&amp;lt;/h1&amp;gt;&amp;quot;);<BR>>>> &amp;lt;/script&amp;gt;<BR>>>> &amp;lt;/body&amp;gt;<BR>>>> &amp;lt;/html&amp;gt;<BR>>>><BR>>>> but in both situations the result is desplaying.<BR>>>> I tried tio fnd the source code of my project to put it there but i<BR>>>> cannot<BR>>>> find the code.<BR>>>> i do not know where i can find it.<BR>>>> can you please tell me where i can find the source code of my<BR>> project.<BR>>>> Also what solution can i follow to put the code as text to a tabbed<BR>>>> navigator?<BR>>>><BR>>>> Thanks for your time.<BR>>>> forgive me it is my first experiance with xerte.<BR>>>><BR>>>><BR>>>><BR>>>> This message has been checked for viruses but the contents of an<BR>>>> attachment<BR>>>> may still contain software viruses, which could damage your computer<BR>>>> system:<BR>>>> you are advised to perform your own checks. Email communications with<BR>>> the<BR>>>> University of Nottingham may be monitored as permitted by UK<BR>>> legislation.<BR>>>><BR>>>><BR>>><BR>>><BR>>> --<BR>>><BR>>><BR>>><BR>><BR>><BR>> --<BR>><BR>><BR>><BR><BR><BR>--<BR><BR><BR><BR><BR><BR>--<BR><BR><BR></FONT></P></DIV></BODY></HTML>