error pages and an iFrame

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • llamaXing@gmail.com

    error pages and an iFrame

    My website uses an iFrame to display information, and when you click
    any of the links, only the iFrame changes and nothing else.
    What I would like to do is, when a link is clicked, to see if there are
    any errors (400, 404, 500, etc.) before changing the iFrame, and if so,
    it displays the error page; if there are no errors, then send the user
    the information requested. Is it possible to do this, or would I need
    to use something like ASP/PHP?

  • Jay

    #2
    Re: error pages and an iFrame


    <llamaXing@gmai l.com> wrote in message
    news:1114954626 .959638.49320@z 14g2000cwz.goog legroups.com...[color=blue]
    > My website uses an iFrame to display information, and when you click
    > any of the links, only the iFrame changes and nothing else.
    > What I would like to do is, when a link is clicked, to see if there are
    > any errors (400, 404, 500, etc.) before changing the iFrame, and if so,
    > it displays the error page; if there are no errors, then send the user
    > the information requested. Is it possible to do this, or would I need
    > to use something like ASP/PHP?[/color]

    Unless my sleepy brain is missing something..... don't you get the desired
    result by default?
    If no such... then the iframe displays a 404 else it displays the page
    referenced in the link?


    Jay


    Comment

    Working...