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
    Nov 2002
    Posts
    567
    Thanks
    2
    Thanked 4 Times in 4 Posts

    HTML ASP and Javascript or what?

    This is, to me, a complex issue. I may have to change a lot depending on the answers I get here.

    My default asp page has includes to build the page the way I want (maybe the first mistake). The part I call the header determines that the user is a regular user and notifies him of the number of private messages he/she has. I am using a link to get the messages.asp page, but I want that page to appear in the content section of this default page. A lot of forums may call up a new page and that may be the way I have to go, but I want to maintain the layout and reduce the amount of downloading required. So here is the default page.
    Code:
    <%
        Dim Login, Password
        if request.cookies("LJ4H").haskeys then
            session("LoginUser") = Request.Cookies("LJ4H")("V2")
            session("PWord") = Request.Cookies("LJ4H")("V1")
            response.cookies("LJ4H")("LastVisit") = now()
            response.cookies("LJ4H").Expires = date + 30
    		response.write "In Default.asp<br>"
        End If
    	
    %>
    <html>
        <head>
        <meta name="Author" content="Scott Stewart">
        <meta http-equiv="Content-Language" content="en-us">
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
        <title>Lake Jackson 4-H</title>
        </head>
        <body>
            <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" height="90%">
            	   <tr><td>
            	  <!-- #include File="header.asp" -->
            	  <!-- #include file="TopSponsors.asp" -->
    			  <!-- #include File="Content.asp" -->
            	  <!-- #include file="Footer.asp" -->
            	  </td></tr>
            </table>
        </body>
    </html>
    And here is the content page.
    Code:
    <body>
    <div id="content" float="right">
    	  </td>
    	  <td valign="top">
    	  <iframe scroll="yes" width="100%" id="content" name="content" src="<% =session("ContentPage") %>">
    	  </iframe>
    	  </td>
    	 </tr>
    </table>
    </div>
    And finally in the header there is this cell;
    Code:
                      <tr valign="top"><% If aryMemInfo(6) > 0 Then 
    				  	  MyID = aryMemInfo(8) %>
                        <td class="WelcomeSquare">You have <% = aryMemInfo(6) %><a href="PrivateMessages.asp?ID=<% =MyID %>" Target = "document.content" name="PrivateMsgs"> private messages.</a></td>
    					<% Else %>
                        <td class="WelcomeSquare">You have 0 private messages.</td>
    					<% End If %>
                      </tr>
    So, please tell me the best way to handle this question. I realy appreciate your help.
    Scott Stewart
    Always happy to learn from pros.

  • #2
    Regular Coder
    Join Date
    Sep 2002
    Location
    Adelaide, Australia
    Posts
    472
    Thanks
    3
    Thanked 0 Times in 0 Posts
    I don't understand the question?

    You want the messages.asp page to be in the content.asp page?


  •  

    Posting Permissions

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