Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Oct 2004
    Posts
    117
    Thanks
    0
    Thanked 0 Times in 0 Posts

    window.location.replace

    1st, i am new at this. I have 3 includes in 1 asp doc-left,header,main. header contains my menu. I want to click the menu and change the main incude file, but I don't know how to. I though a window.location.replace line could work. what should i do?

  • #2
    Senior Coder
    Join Date
    Apr 2003
    Location
    England
    Posts
    1,192
    Thanks
    5
    Thanked 13 Times in 13 Posts
    number a, thats javascript

    this is pretty siple, the page generated is just these 3 includes put together but you cnt do dynamic includes.. however you should be able to do this

    <!--#include file="header.asp" -->
    ...
    <!--#include file="left.asp"-->
    ...
    <%Server.Execute(Request.QueryString("page"))%>
    ...

    so if you put this on a file called default.asp you could go to http://..../?page=home.asp


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •