SSI kills javascript date functions . . .

SSI kills javascript date functions . . .

Post by acadia.ne.mediaone.net Webmaste » Thu, 13 Apr 2000 04:00:00



Hi all.  I am trying to add SSI parsing to *.html files, by adding the
following line in httpd.conf:

AddHandler server-parsed .html

I also have mod_perl and javascript code on the site.  The problem is
that I have a standard javascript generated footer that prints copyright
stuff and the last mod date of the document.  When the above line is
enabled in Apache, the mod date is always:
Wednesday December 31, 1969 at 7:00:00 P.M.
The javascript function works perfectly when SSI is not enabled, and the
other date functions work fine even when it is enabled.  The function is
nearly identical to the current date function, and never causes errors.

Is there some obscure conflict between SSI and javascript dates?  I have
tried this with both 4.7 and 4.7.2.

Thanks

Lou

 
 
 

SSI kills javascript date functions . . .

Post by Alan J. Flavel » Thu, 13 Apr 2000 04:00:00



> AddHandler server-parsed .html

> I also have mod_perl and javascript code on the site.

(not clear where mod_perl comes into this here.  However...)

Quote:> The problem is
> that I have a standard javascript generated footer that prints copyright
> stuff and the last mod date of the document.  When the above line is
> enabled in Apache, the mod date is always:
> Wednesday December 31, 1969 at 7:00:00 P.M.

So the javascript seems to be defective: it fails to recognise that no
last-modified date has been provided - which is one of the
consequences of using plain SSI - and prints some dummy value instead.  
Another important consequence is loss of cacheability.

Quote:> Is there some obscure conflict between SSI and javascript dates?

You might want to look at the possibilities offered by XBitHack full
(depending on what it is that you're really trying to achieve).

 
 
 

1. Functions for JavaScript function are needed

I am building a program  that uses The  " FindProxyForURL(url,host) "
function (
http://home.netscape.com/eng/mozilla/2.0/relnotes/demo/proxy-live.html )

that browsers uses in order to evaluate which proxy server to send the
requests.

The program  download this function  and then run it in order to get the
proxy server address,
my question is about the Methods that  function
FindProxyForURL(url,host)
     uses like : isPlainHostName()       dnsDomainIs() ,
localHostOrDomainIs() ,
                        isResolvable()  dnsResolve()   myIpAddress()
dnsDomainLevels()
                        shExpMatch()      weekdayRange()
dateRange()          timeRange()
where can i find their implementation in order to run this function in
my program.

the program run on linux  , written in C and uses an API libraries
(http://www.nombas.com/us/toolkit/index.htm )
to run the FindProxyForURL(...) function.

Thanks in advance raanan.

2. Can Linux handle SCO files?

3. redefined Functions for JavaScript function are needed

4. help with SLIP

5. Apache: SSI and JavaScript

6. Problems compiling X clients

7. Server-side javascript in SSI on Netscape

8. OpenBSD on x86, boot problem

9. SSI Problems with Javascript?

10. killing javascript in fortified netscape

11. redefined Functions for JavaScript are needed

12. JavaScript Functions for proxy auto config file

13. SSI, index.html and Date GMT