Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Include Problem
- From: javascript@xxxxxxxxxx (Rodney Myers)
- Subject: [Javascript] Include Problem
- Date: Fri, 26 Oct 2001 16:28:46 +0100
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@xxxxxxxxxx
> http://www.LaTech.edu/mailman/listinfo/javascript
--
Shop@ssistant Add-ons and Developer Workshops
http://www.aflyingstart.net/addons/
Enquiries regarding Shop@ssistant Classic training :
Call 01256 880770
Rodney Myers
Based in Oxford, England
Technical Director, Shop@ssistant eCommerce Solutions
- References:
- [Javascript] Include Problem
- From: Howard Salter
- [Javascript] Include Problem
- Prev by Date: [Javascript] Include Problem
- Next by Date: [Javascript] How to handle when the enter key pressed
- Previous by thread: [Javascript] Include Problem
- Next by thread: [Javascript] Include Problem
- Index(es):