Hi,
I am guessing the syntax is <script language="JavaScript"> instead of
<javascript>. In ProgramD the <javascript>'s code will run at the server
instead of in the browser which renders the document object.
HTH,
Gary Dubuque, just lurking among the AIML these days...
-----Original Message-----
From:
alicebot-general-bounces@...
[mailto:
alicebot-general-bounces@...] On Behalf Of
superantonio
Sent: Friday, October 05, 2007 11:41 PM
To:
alicebot-general@...
Subject: [alicebot-general] Javascript to manipulate document objects
I'm trying to manipulate some elements on my programD pages, such as images
by usin the Javascript tag
but doesn't work
the code is something like this
<template>Showing the image
<javascript>
var capa = document.getElementById("muestra")
capa.style.visibility = "visible"
</javascript>
</template>
but it gives me this error on the activity log
[2007-10-04 19:36:32,687] WARN: Got exception:
ReferenceError: "document" is not defined.
it this could work? am I doing any thing wrong?
I also need to open a popup window like window.open("whatever")
Thanks
--
View this message in context:
http://www.nabble.com/Javascript-to-manipulate-document-objects-tf4570323.html#a13045074
Sent from the Alicebot General mailing list archive at Nabble.com.
_______________________________________________
This is the alicebot-general mailing list
Reply to
alicebot-general@...
Unsubscribe and change preferences at
http://list.alicebot.org/mailman/listinfo/alicebot-generalLearn netiquette at
http://www.dtcc.edu/cs/rfc1855.htmlLearn to read at
http://www.literacy.org/_______________________________________________
This is the alicebot-general mailing list
Reply to
alicebot-general@...
Unsubscribe and change preferences at
http://list.alicebot.org/mailman/listinfo/alicebot-generalLearn netiquette at
http://www.dtcc.edu/cs/rfc1855.htmlLearn to read at
http://www.literacy.org/