Re: external javascript and cgi generated page

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Save one of the pages generated by your CGI scripts as static HTML, on the same server that is serving your CGI scripts.
Load this page, and work out why the .js functions are not working, and fix your CGI until it generates html that works.

On 17/12/06, michaeljay <emjay@xxxxxxx> wrote:
I generated a page with C. All executed fine as far as serving up
the correct markup. CSS and external ecmascript, though, ignored.
Made both links to those absolute to the document root, that is, I
moved the .js and .css files out of the cgi-bin folder and into
the htdocs folder and in the <script> element had the source be
ipaddress/x.css and ipaddress/x.js. This solved the css problem.
The .js functions not being found by the browser still.
"Undefined" warning in debugger. When I view the source of cgi
output and save that as a static document, it works perfectly.
Please enlighten.

< emjay! >


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




--
Steve Swift
http://www.swiftys.org.uk
[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux