Results 1 to 2 of 2
  1. #1
    moron3 is offline Member
    Join Date
    Feb 2010
    Posts
    1
    Rep Power
    0

    Default redirect iframe if page cannot be displayed

    Is it possible to use Java to redirect an iframe if the page cannot be displayed or the server is down?

    One way I thought of doing it would be to direct the iframe to a page, wait a few seconds, then check the locationName to see if it is blank. If it is, then redirect the iframe to the alternate page. But that's probably cheesy and I don't know how to write the code for it anyway.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

Similar Threads

  1. Redirect To Same Page
    By systech44 in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 12-08-2009, 11:27 AM
  2. Tomcat Home Page not displayed
    By maverick0681 in forum New To Java
    Replies: 3
    Last Post: 10-01-2009, 09:07 AM
  3. redirect to html page
    By simo_mon in forum Java Servlet
    Replies: 3
    Last Post: 02-12-2009, 05:18 PM
  4. Redirect page in web service
    By bluesheeva in forum Advanced Java
    Replies: 3
    Last Post: 02-03-2009, 11:56 PM
  5. redirect page within a java applet
    By paul in forum Java Applets
    Replies: 1
    Last Post: 08-07-2007, 05:11 AM

Posting Permissions

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