[thelist] frames without <frames>

Simon Hibbard shibbard at seri.co.uk
Thu May 9 08:14:01 CDT 2002


http://www.15seconds.com/issue/010220.htm discusses server.Execute.
Although seems only useful to actually execute other scripts, don't
know what it would do with a *.doc/html

perhaps i should just use frames :(

surely this sort of dynamic content without frames is used all the
time?

> -----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 13:19
> To: thelist at lists.evolt.org
> Subject: RE: [thelist] frames without <frames>
>
>
> The following URL suggests that you can use Server.Execute to include
> remote files, don't know how you would specify the path though:
>
> http://www.asptechniques.com/content.asp?a=co&cID=977
>
> 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 12:52
> To: thelist at lists.evolt.org
> Subject: RE: [thelist] frames without <frames>
>
> 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 !
> --
> 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