[alicebot-general] Javascript to manipulate document objects

Gary Dubuque gdubuque at scattercreek.com
Sat Oct 6 09:53:52 PDT 2007


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 at list.alicebot.org
[mailto:alicebot-general-bounces at list.alicebot.org] On Behalf Of
superantonio
Sent: Friday, October 05, 2007 11:41 PM
To: alicebot-general at list.alicebot.org
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.ht
ml#a13045074
Sent from the Alicebot General mailing list archive at Nabble.com.

_______________________________________________
This is the alicebot-general mailing list
Reply to alicebot-general at list.alicebot.org
Unsubscribe and change preferences at
http://list.alicebot.org/mailman/listinfo/alicebot-general
Learn netiquette at http://www.dtcc.edu/cs/rfc1855.html
Learn to read at http://www.literacy.org/




More information about the alicebot-general mailing list