Home
TeamSite
TeamSite, LiveSite and OpenDeploy
Using javascript within a custom menu item CGI
tvaughan
Hi,
This is kind of a two-parter.
The short question is: within my custom cgi script, if I use the syntax:
< HEAD>
< SCRIPT language="JavaScript" src="/iw-bin/timeout.js">< /SCRIPT>
< /HEAD>
To replace some big ugly javascript code that used to spit out directly from within my cgi, the javascript doesn't work. I'm pretty sure it isn't a matter of the javascript not working and that it's more a matter of the file "timeout.js" not being found.
Shouldn't I be able to reference a *.js file in my httpd/iw-bin directory?
Do I need to configure the httpd that ships with Interwoven to enable this?
That said, when I look at my show_env.cgi, I notice that my "DOCUMENT_ROOT" is set to "/teamsite/iw-home/iw-webd/htdocs" which is very interesting, because when I refer to "/iw-icons" in my custom cgis, those images get pulled in just fine. This would leave me to believe that the doc root is actually "/teamsite/iw-home/httpd". Who's right?
Thanks,
Tom
Find more posts tagged with
Comments
There are no comments yet