[Xerte] RE: question about xerte
Julian Tenney
Julian.Tenney at nottingham.ac.uk
Fri Jul 3 08:11:18 BST 2009
You need to set the .text property of the text field
t.txt.html = false;
t.txt.text="<>HERE IS CODE<>";
and then format it with a codey font:
tf = new TextFormat();
tf.font = "Andale Mono";
t.setTextFormat(tf);
J
-----Original Message-----
From: Sokratis Iliadis [mailto:si8189 at bristol.ac.uk]
Sent: Thursday, July 02, 2009 11:25 PM
To: xerte at lists.nottingham.ac.uk
Subject: question about xerte
Hello,
I am working with xerte and i am working in xerte template wizard and i
am
trying to make a lesson about javascript.
I want to put code in a textbox as example in a tabbed navigator (in the
text area of the white box).
but because is html code with javascript it does not show the code but
the
result of code.
i am trying to put the code
<html>
<body>
<script type="text/javascript">
document.write("Hello World!");
</script>
</body>
</html>
and after that i tried with
<html>
<body>
<script type="text/javascript">
document.write("<h1>Hello World!</h1>");
</script>
</body>
</html>
but in both situations the result is desplaying.
I tried tio fnd the source code of my project to put it there but i
cannot
find the code.
i do not know where i can find it.
can you please tell me where i can find the source code of my project.
Also what solution can i follow to put the code as text to a tabbed
navigator?
Thanks for your time.
forgive me it is my first experiance with xerte.
More information about the Xerte
mailing list