Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Include Problem
- From: javascript@xxxxxxxxxx (Howard Salter)
- Subject: [Javascript] Include Problem
- Date: Fri, 26 Oct 2001 11:22:50 -0400
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
- Follow-Ups:
- [Javascript] Include Problem
- From: Rodney Myers
- [Javascript] Include Problem
- Prev by Date: [Javascript] (no subject)
- Next by Date: [Javascript] Include Problem
- Previous by thread: [Javascript] How to do scripting inside a html email
- Next by thread: [Javascript] Include Problem
- Index(es):