[thelist] frames without <frames>

Simon Hibbard shibbard at seri.co.uk
Thu May 9 06:52:00 CDT 2002


I came accross this possible solution, the problem is that this only
allows access to files on the actual server via the FileSystemObject.

The files i need to display are URL's to files elsewhere.

> -----Original Message-----
> From: thelist-admin at lists.evolt.org
> [mailto:thelist-admin at lists.evolt.org]On Behalf Of Jonathon Thomas
> Sent: 09 May 2002 10:39
> To: thelist at lists.evolt.org
> Subject: RE: [thelist] frames without <frames>
>
>
> Simon
>
> 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
> through.
>
> 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);
> Eval(st.ReadAll());
> st.close();
>
> 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...)
>
> Cheers
>
> Jon
>
> -----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>
>
> Hi,
>
> 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.
>
> thanks,
>
> Simon.
> --
> For unsubscribe and other options, including
> the Tip Harvester and archive of thelist go to:
> http://lists.evolt.org Workers of the Web, evolt !
>
> --
> 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