What are my chances of being able to parse the ssi.html file on my homepage using .asp as the extension? www.zioncov.org/index.asp --> main page http://www.zioncov.org/cgi-bin/calendar.pl?calendar=ZEvents --> calendar page
Thanks in advance.
Dave Anderson
Although I don't know much about ASP, I would say the chances are probably nil. But I would say if your ASP page allows you to include other files into it, it should probably be able to do that the same way that SSI does with CalendarScript.
BTW. It's CalendarScript that needs to parse the ssi.html template. Your call would just include the whole CalendarScript application which in turn would process the ssi.html template and return the results of that processing to the calling page.
JMO
Dan O.
------------------
Thanks
Dave
If anyone has any other ideas, please let me know soon!
Currently, my test ASP page with SSI.html gives me this:
Microsoft VBScript compilation error '800a0400'
Expected statement
/cgi-bin/calendarscript/templates/calendars/default/preferences.pl, line 2
# Color Options
I suspect it's choking on the preferences.pl file.
P.S. What is SSI.txt for and how would I use that as my include?
If I'm not mistaken, ASP (or was that only SSI?) include functions goes through Perl so it might be possible.
** would I include ssi.html, or ssi.txt into the page? **
You would include calendar.pl (the script itself).
Hmmm. I don't see how that's possible.
When I try to add:
<!--#include file="cgi-bin/calendar.pl" -->
to my page (asp or basic html page), I see the entire contents of the Perl file (hundreds of lines of code).
I think I'm getting closer, but I'm not sure what I'm doing wrong!
Than it looks like Perl is not processing that file, ASP just including it. I suggest you contact your host's support to see if including a Perl script though ASP is possible.
[This message has been edited by DanO (edited January 24, 2003).]
Bryan K.
<!--#include virtual="/cgi-bin/calendar.pl?template=ssi.html&calendar=default&duration=1d"-->
Now, when i try it in a .asp page I get Active Server Pages error 'ASP 0126' Include file not found. If i try it in a .shtml page the page loads but where the include should be i get:
HTTP/1.1 404 Object Not Found Server: Microsoft-IIS/5.0 Date: Thu, 10 Nov 2005 19:54:26 GMT X-Powered-By: ASP.NET Connection: close Content-Type: text/html 404 Object Not Found
Any help/suggestions on what could be causing the page to not see the files? I know they are all there cause when I issue the include path in the URl it works fine.
I would guess an incorrect path to where the file being included is actually located.
I have no idea about the ASP question as I don't do ASP. Does ASP even recognize SSI tags or does it need its own ASP equivalent tag???
I even tried using the page as a .shtml and it gave the a similar error. I'm still waiting to hear back from my web server host to see if they have any insight.
Here's the links to the site I'm trying to get it to work on if anyone is curious about exactly what its doing. http://www.crandalllibrary.org/cplsite/index.shtml http://www.crandalllibrary.org/cplsite/index.asp
The web path is not necessarily the same as the server path which I believe an SSI tag would rely on. If your site's CGI directory is outside the web root, you may need to adjust the path you use for including CGI files located there... but check with your host's support.
** also used other virtual include calls for various javascripts and html files throughout the pages **
Were they (the files to be included) located in the CGI directory? They are also static files (see below) not a CGI script like the calendar is.
BTW. If you're using the <!--#include file="... SSI tag, I believe it is only an Apache server which will allow you to include CGI files that way, not a Windows? IIS server that I assume you're on? Doing so may be responsible for erroneous error messages.
Just a guess though, check with your host's support.
[This message has been edited by DanO (edited November 15, 2005).]