httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Taylor" <>
Subject [users@httpd] Cgi Script using Javascript Calendar
Date Tue, 11 Nov 2003 13:08:08 GMT

I have been traversing the learning curve of Apache, CGI and Javascript this
week. I hope this isn't too much of a newbie question.

What works:-

<FORM name="simon_form">
&nbsp;Date Field: <input name="simon" value="" size="11"><a
onclick="gfPop.fPopCalendar(document.simon_form.simon);return fal
se;" HIDEFOCUS><img name="popcal" align="absmiddle" src="js/calbtn.gif"
width="34" height="22" border="0" alt=""></a>

<iframe width=174 height=189 name="gToday:normal:agenda.js"
id="gToday:normal:agenda.js" src="ipopeng.htm" scrolling="no"
frameborder="0" style="visibi
lity:visible; z-index:999; position:absolute; left:-500px; top:0px;">

In a file - when all the other components are in the same directory.

What doesn't work is when I try to use Perl CGI::Formbuilder and Template
Toolkit to autogenerate a page with this Javascript Calendar widget on it.
Apache doesn't like trying to read the html and css components if they are
in the cgi-bin directory.

[Tue Nov 11 10:33:40 2003] [error] (8)Exec format error: exec of
/export/www/devel/htdocs/www-default/cgi-bin/ipopeng.htm failed

I tried moving them out to another directory and changing the URL's in the
script to reference them but as soon as I do it the javascript doesn't
function. Mozilla renders the page and IE5 doesn't render at all - but
neither throw an error message.
Whats the correct approach for setting up and executing Javascript from
within a cgi script?

Simon Taylor
Managed Services Technology Consultant
Nortel Networks
p -  01279 404289 (ESN 742 4289)
m - 07740 533743 (ESN 748 3743)
e -

"I code therefore I am"

View raw message