[Javascript] Include Problem

Rodney Myers rodney at aflyingstart.net
Fri Oct 26 10:28:46 CDT 2001


Howard,

It is my understanding that #includes are resolved before any server side
code is parsed.


Since the included file may contain executable code this is something to be
thankful for really.
even though it makes what you are trying to do not possible.


Rodney

Howard Salter wrote:

> I've been beating my head against a wall trying to figure out why I can't
> make an include work, so now I'm going to ask you all.
>
> I've got a place in the middle of my asp page where I include another ASP
> page. I want to determine from the query string (I already have a query
> string parsing function) which asp file I want to include. My problem is,
> that after the --> in my include everything becomes plain text. Here's an
> example of the code:
>
> if QueryString("cond") = "CONDITION1"
>         {
>                 document.write ("<!-- #Include File='include1.asp' -->");
>         }
> else if QueryString("cond") = "CONDITION2"
>         {
>                 document.write ("<!-- #Include File='include2.asp' -->");
>
>         }
>
> Beware the wrap.
>
> TIA,
> Howard
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> http://www.LaTech.edu/mailman/listinfo/javascript

--
Shop at ssistant Add-ons and Developer Workshops
http://www.aflyingstart.net/addons/

Enquiries regarding Shop at ssistant Classic training :
Call 01256 880770

Rodney Myers
Based in Oxford, England
Technical Director, Shop at ssistant eCommerce Solutions





More information about the Javascript mailing list