|
| |
|
|
Ezra
Posts: 4 Joined: 6/29/2005 Status: offline
|
#include Problems - 6/29/2005 16:24:21
I'm working on rolling out a new ASP based webpage, and am having a lot of trouble including our old forums into the new format. Originally I had used an iframe, but that became a scrolling nightmare. I either had 2 scrollbars, one visible and one invisible scrollbar or one scrollbar with limited access. So I've pretty much given up on that, especially since the iframe needed to be the whole width and height of the page minus the top div. I've now been attempting to use a #include statement. This statement works fine for whatever page I include except my forum. Either nothing is shown or I get the following error. Microsoft VBScript compilation error '800a0400' Expected statement /forum/default.asp, line 2 Option Explicit I've putting my parent file in several different folders and trying various schemes. I'm trying to avoid at all costs have to dump the content of all of my forum files into this template. Any suggestions to fix either the include or iframe problem? Thanks in advance
|
|
|
|
dpf
Posts: 7126 Joined: 11/12/2003 From: India-napolis Status: offline
|
RE: #include Problems - 6/29/2005 16:25:43
quote:
Option Explicit do you have an option expicit statemnt? if you do, can you post it.
_____________________________
Dan
|
|
|
|
Ezra
Posts: 4 Joined: 6/29/2005 Status: offline
|
RE: #include Problems - 6/29/2005 16:35:52
Yes, I do have an option explicit tag. Here is the first few lines of the file i'm trying to include. Here is the first few lines of the file i'm trying to include <% @ Language=VBScript %> <% Option Explicit %> <!--#include file="common.asp" --> <!--#include file="functions/functions_date_time_format.asp" --> Thanks
|
|
|
|
rdouglass
Posts: 9280 From: Biddeford, ME USA Status: offline
|
RE: #include Problems - 6/29/2005 19:51:34
Needs to be the very first line AFAIK. Do your include files have "Option Explicit" also? They should not - only use it once per page (and remember an include is part of that page during compilation.) Also IIRC using Option Explicit requires you to DIM all your variables but that doesn't seem to be the issue the way I read the error. Hope it helps.
< Message edited by rdouglass -- 6/29/2005 20:06:55 >
_____________________________
Don't take you're eye off your final destination. ASP Checkbox Function Tutorial.
|
|
|
|
Ezra
Posts: 4 Joined: 6/29/2005 Status: offline
|
RE: #include Problems - 6/30/2005 15:50:41
Alright, I hacked through this and got it working. It's taken me hours but through a combination of dumb luck and step by step problem solving I got things straightened out.
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|