wdvlTalk Roundup August 2002 Page 30
September 3, 2002
I just made a custom error page for my site.
I have the option of adding all of these to the page, but I don't know
which ones might be necessary:
<!--#echo var="HTTP_REFERER" -->
<!--#echo var="REMOTE_ADDR" -->
<!--#echo var="REQUEST_URI" -->
<!--#echo var="HTTP_HOST" -->
<!--#echo var="HTTP_USER_AGENT" -->
<!--#echo var="REDIRECT_STATUS" -->
When I put them all in, I got this showing up on the error page:
(none) 66.191.126.113 /kiddo.html www.kentuckyadoptionservices.org Mozilla/4.76 [en] (Windows NT 5.0; U) 404
Obviously, I don't want that there, can someone tell me which of the "echo" lines to remove
to cure this problem, and maybe give me some input on what each line is for (briefly in
kid-talk). Thanks!
-
To go through them one by one:
<!--#echo var="HTTP_REFERER" -->
Address of the page the visitor was last looking at. Not sent by all
browsers, but pretty reliable.
<!--#echo var="REMOTE_ADDR" -->
Remote IP address of the visitor. May contain the IP of their proxy if
they're using one, in which case you need to check HTTP_X_FORWARDED_FOR.
<!--#echo var="REQUEST_URI" -->
URL of the visitor's request.
<!--#echo var="HTTP_HOST" -->
Server address - stick this in front of REQUEST_URI and you have a complete
web address.
<!--#echo var="HTTP_USER_AGENT" -->
The browser that the visitor is using (looks like Netscape 4 on Windows 2000
in this case).
<!--#echo var="REDIRECT_STATUS" -->
HTTP error code showing why you were redirected here - in normal use you
might find 301 or 302 (moved permanently or moved temporarily), but in this
case it's our old friend 404 (not found).
Like I said, you don't *need* to show any of this to the visitor, but if you
have any server-side scripting it's quite helpful to write an error page
that emails you this information whenever it gets triggered.
Hello, I'm trying to mimic frames on my personal website. I'm not sure
if this is an HTML question, DHTML, CSS, or Javascript, so if I've found
the wrong ng, please let me know.
-
You should be able to do what you want with CSS. Find a CSS tutorial that
covers CSS Positioning (such as
http://www.scripterspad.com/dhtml/csspos.html) and you'll see you can set a
div to be a certain height and width, with optional scrolling if the text
overflows the size of the div
<div style="position: absolute; left: 180; top: 0;
overflow: auto">
Text goes here
</div>
-
Let's take this concept a step farther. If the portion of your site that is
intended to scroll is confined to the inner DIV with "overflow:auto", why
not do away with the unsightly double scroll bar. If your content is
designed to flow with the height of the screen and does not exceed the
window size. We can get rid of the window scrollbar by assigning
"overflow:hidden" to the body tag. Your site will have less clutter, and
your design will look more intentional. This CSS tip will work in IE5.5,
IE6, and NN6, Mozilla 1.0. Opera and NN4x do not support the "overflow:auto"
property.
-
When filled with text, a DIV will grow in height, if the content is greater
than your height value for the DIV. If you set the width and height values
of the DIV using CSS and don't want the DIV to expand in length, you can set
the "overflow" property to; "auto"(hides content that extends below the
bottom limit of the DIV and creates a vertical scrollbar only as needed.),
"scroll"(hides excess content, and creates a vertical and horizontal
scrollbar, whether you need them or not.), or "hidden" (hides all content
that extends beyond the dimensions of the DIV, and displays no scrollbars.)
To hide the browser window scrollbar, you can use CSS to set the overflow
property of the body tag.
<style type="text/css">
body {background-color:#ffffff; margin:0; padding:0; border:0;
overflow:hidden;}
wdvlTalk Roundup August 2002 Page 29
wdvltalk Roundup
wdvlTalk Roundup August 2002 Page 31
|