Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

conditional link

0 views
Skip to first unread message

Mike

unread,
Jul 11, 2006, 12:39:55 PM7/11/06
to
How to avoid the 404 error, Page Cannot be Displayed.

I don't know if this is the right news group. Is there a more appropriate
group?

I need a link that accesses a disc file, which has been submitted by a site
visitor. That's easy enough to accomplish with an ordinary hyperlink My
submit functionality also works fine. I use a link like this.

<a href="ulpoads/user123.doc">Retrieve resume for User123</a>

Generally, this works great. But if the user has not submitted any such
file, then an ugly error is displayed. Can this be handled in a more
friendly way? For example, if the file does not exist, then simple text
should be displayed instead of the hyperlink saying "The resume for User123
is not available."

My javascript and HTML skills are limited.

0 new messages