On April 27, 2024, our Sign-in and Create Account options will be unavailable from 9am-12pm ET. During this maintenance window, developer account access and free trial registration will be unavailable.
Using javascript within a custom menu item CGI
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
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
Categories
- All Categories
- Cloud Editions
- 1 Thrust Services
- cat as link
- 1 Core SaaS Application development
- 10 Developer Announcements
- 15 General Questions
- 33.4K TeamSite
- 141 Application Governance & Archiving
- 15.2K Designing Analytics Reports
- 1K DevShare Downloads
- Core SaaS Applications
- nested parent
- 4.3K Developing Analytics Applications
- 8.8K Documentum Developer Forum
- Media Management developer
- 159 Transactional Content Processing (TCP)
- 1.7K Web Experience Management
- 55 Tempo Social
- 1 XM Fax