Hi all,
I am trying to use javascript to generate a SMIL document to give as
input to the browser (in another window or in the same). I tried this:
<HTML>
<HEAD>
<TITLE>My First JavaScript</TITLE>
</HEAD>
<BODY>
<SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">
<!--
myWindow = window.open("", "tinyWindow", 'toolbar,width=150,height=100')
myWindow.document.write("<smil><head><layout><root-layout width="678"
height="624" background-color="#fcf4e5"/><region id="title-region"
left="0" top="0" width="678" height="60"
fit="meet"/></layout></head><body><par><text id="title"
region="title-region" begin="0"
src="http://media.cwi.nl:8080/cocoon/cuypers/oai/text?Content=Biography&width=678&height=60&duratio n=84&fontsize=6&fgcolor=%23600000&bgcolor=%23f6d42 a&ext=.rt"
dur="84"/></par></body></smil>")
myWindow.document.close()
//-->
</SCRIPT>
</BODY>
</HTML>
but it does not work. I had a look at some FAQ but I could not find
anything. Now I am doubting that Javascript can only generate HTML
documents. Any clue?
Thanks,
Stefano
--
Stefano Bocconi (St*************@cwi.nl) http://www.cwi.nl/~sbocconi
Multimedia and Human-Computer Interaction
CWI (www.cwi.nl), Kruislaan 413, 1098 SJ Amsterdam, The Netherlands Tel: +31 20 592 4202 Fax: +31 20 592 4312