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="JAVAS CRIPT" TYPE="TEXT/JAVASCRIPT">
<!--
myWindow = window.open("", "tinyWindow ", 'toolbar,width= 150,height=100' )
myWindow.docume nt.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:80 80/cocoon/cuypers/oai/text?Content=Bi ography&width=6 78&height=60&du ration=84&fonts ize=6&fgcolor=% 23600000&bgcolo r=%23f6d42a&ext =.rt"
dur="84"/></par></body></smil>")
myWindow.docume nt.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