Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8043 Posts in 1856 Topics- by 2099 Members - Latest Member: roi
Pages: [1] 2   Go Down
Print
Author Topic: Using SSI with .asp??  (Read 1105 times)
0 Members and 1 Guest are viewing this topic.
Dave Anderson
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« on: January 22, 2003, 01:19:00 PM »

I want to include x events on my homepage. Trouble is that I currently am running some other dynamic news software that is .asp driven.

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

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #1 on: January 22, 2003, 02:46:00 PM »

** What are my chances of being able to parse the ssi.html file using .asp **

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.

------------------

Logged
Dave Anderson
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #2 on: January 23, 2003, 07:04:00 AM »

So would I include ssi.html, or ssi.txt into the page? ssi.txt looks like what I'd use if I wanted to manually update 'upcoming events'. Is that correct?

Thanks

Dave

------------------

Logged
Dave Anderson
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #3 on: January 23, 2003, 08:12:00 AM »

Okay, I've played around a lot and it appears that I'll need to start looking for an .asp Calendar if I want to be able to include upcoming events in my .asp index page. That's a bummer. I really like this program, sniff, sniff.

If anyone has any other ideas, please let me know soon!

Thanks

Dave

------------------

Logged
Dave Anderson
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #4 on: January 23, 2003, 10:26:00 AM »

Well, I've since found out that ASP *can* parse SSI's using the .asp suffix. What I don't know and am trying to find out is if that only applies to static .html files, or if it works on CGI files as well.

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.

Thanks

Dave Anderson

P.S. What is SSI.txt for and how would I use that as my include?

------------------

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #5 on: January 23, 2003, 08:02:00 PM »

** or if it works on CGI files as well. **

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).

Dan O.

------------------

Logged
Dave Anderson
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #6 on: January 23, 2003, 08:22:00 PM »

"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!

Thanks

Dave Anderson

------------------

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #7 on: January 24, 2003, 12:32:00 PM »

** I see the entire contents of the Perl file **

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.

Dan O.

[This message has been edited by DanO (edited January 24, 2003).]

Logged
Dave Anderson
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #8 on: January 27, 2003, 08:01:00 AM »

Actually, it's happening in Dreamweaver before I even post the file to the ISP! When I put the include statement in the head tag, and point it to the calendar.pl file, it instantly shows all of the Perl code. I will post this to the Dreamweaver newsgroup to see what's up.

Thanks

Dave Anderson

------------------

Logged
Bryan K
Guest
« Reply #9 on: September 18, 2005, 05:32:00 PM »

I know I am more than two years behind but is there a way to call the ssi in on an asp page?  I am trying to learn asp and I am working with a current web site that someone else set up.  Just wondering if I could call the ssi inbetween <panel></panel> command to keep with the way the rest of the page is already set up or maybe I need to start over and try usning some other method.  I am trying to get a small 7 day list view on my home page with the main calendar on a page by itsself. I downloaded the ssi templetes from another web page.  I would be grateful for any help.

Bryan K.

Logged
Junun
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #10 on: November 10, 2005, 02:01:00 PM »

I'm having a similar problem with .ASP pages. I have one main page that i want to be able to include the events for the day. I know the include is correct, because if i try it standalone as a URL it works fine. I'm using the following syntax for my include:

<!--#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.

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #11 on: November 10, 2005, 03:50:00 PM »

** HTTP/1.1 404 Object Not Found -- Any help/suggestions on what could be causing the page to not see the files? **

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???

JMO

Dan O.

------------------

Logged
Dave Anderson
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #12 on: November 10, 2005, 03:53:00 PM »

I don't believe ASP recongnizes SSI. I finally gave up on trying to make it work.

Dave

------------------

Logged
Junun
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #13 on: November 14, 2005, 08:38:00 AM »

I know the path is correct because when I type it into the URL bar it works fine. I've also used other virtual include calls for various javascripts and html files throughout the pages but for some reason it wont take the SSI call for the calendar...no clue whats preventing it.

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

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #14 on: November 15, 2005, 12:22:00 AM »

** I know the path is correct because when I type it into the URL bar it works fine. **

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.

Dan O.

------------------

[This message has been edited by DanO (edited November 15, 2005).]

Logged
Pages: [1] 2   Go Up
Print
Jump to: