[thelist] frames without <frames>

Jonathon Thomas jthomas at firstnet.net.uk
Thu May 9 04:40:01 CDT 2002


What I think you're asking for is the ability to conditionally load
other ASP or HTML pages. ASP includes (which I believe are actually
handled by IIS before ASP gets hold of the page) include the file
whether or not it is included in the flow or your script execution.

This can result in extremely large pages for the ASP processor to work

About the only solution I know is one I used recently - but it only
works in Jscript as far as I know (does VBScript have an equivalent to
eval() ? ):

Var fso=Server.CreateObject("Scripting.FileSystemObject");
Var st=fso.OpenTextFile(yourpage.html);

This allows you to conditionally load other html/asp pages, and also
specify the filenames of said pages. The only weird side effects of this
approach are:

1) When including an ASP page, the page must not start and end with the
usual <% and %> that you are accustomed to.
2) When including a static HTML page, you'll have to prefix the HTML
page with %> and <% (alternatively, you could detect the extension of
the file being loaded and replace the above eval with
eval("%>"+st.ReadAll()+"<%") for HTML pages only...)



-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org] On Behalf Of Simon Hibbard
Sent: 09 May 2002 10:29
To: thelist at lists.evolt.org
Subject: [thelist] frames without <frames>


I have a page in which the content is DB generated and want to
load in pages dependent on certain conditions using ASP.

The problem is i do not want to use frames and I cannot simply
read the files as they are not on the server, and I cannot
'include' the files (html and doc) as the URL to the files
need to be dynamic.

Isnt is a shame you cant <!--#include"<%=some_file%>-->

Should I use IFrames, which i have played with and seemed inconsistent
when used in a table cell, or is there a better way of achieving the
same effect.


For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to:
http://lists.evolt.org Workers of the Web, evolt !

More information about the thelist mailing list