Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: HTTP 404 Not Found


Message #1 by tzhang@h... on Wed, 31 Jul 2002 23:08:03
U can change messages like 404, displaying another page u like, ON
SERVER SIDE, using IIS for example. NOT on CLIENT side.

  _____ 

Claudio M. E. Bastos Iorio
Blumer -=3DExcelence in IT Solutions=3D-
-Web Development
-Web Design
-Web Solutions
To Contact point your browser to http://www.blumer.com.ar
MSN: clauska@h...
Yahoo! Messenger: selecters75@y...
Phone: 54 11 1551467975
Adress: Av Chiclana 3735 Of: C (1262) - Cap Fed
2002 Buenos Aires - Rep. Argentina
=A5=A4=A5clau=A7ka=A5=A4=A5=AE =A5=A4=A5=A7electer=A7=A5=A4=A5=AE
ICQ#: 24094716
Current ICQ status:  	  =09
  _____ 



-----Original Message-----
From: David Scott-Bigsby [mailto:DScott-Bigsby@P...]
Sent: Mi=E9rcoles, 31 de Julio de 2002 07:22 p.m.
To: javascript
Subject: [javascript] RE: HTTP 404 Not Found


> Are there any way to intercept "HTTP 404 Not Found" response using
> JavaScript at client side, then display some customized
> message instead of
> standard "page not found" message?  I can't customeize error
> message at server.

I very much doubt it, at least with a basic web page -- it's the browser
that recieves the 404 response, not the referring page.

It may be possible to do something with JS if you're using frames, i.e.,
if one frame's content changes and comes to hold a 404 page, JS in
another frame may be able to pick up on that and load a different page
into the 404 frame. However this would require (a.) for JS in one frame
to pick up on whatever the new page event is in another frame, and (b.)
be able to access the HTTP header info (which would contain the 404
code). I don't know if either one is possible.

dsb

***************************************       
David Scott-Bigsby
Product Manager, Web Site and PEDN

PureEdge Solutions
The Leader in Secure XML e-Forms

v:250-708-8145  f:250-708-8010
1-888-517-2675   www.PureEdge.com
***************************************


---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
r-20



  Return to Index