Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-09-2010, 07:40 PM
Member
 
Join Date: Feb 2010
Posts: 1
Rep Power: 0
moron3 is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 02-09-2010, 10:17 PM
Fubarable's Avatar
Moderator
 
Join Date: Jun 2008
Posts: 6,321
Rep Power: 8
Fubarable is on a distinguished road
Default
You should always notify others in your post if this is a crosspost in another forum. Nobody likes repeating the same advice given elsewhere. Thanks.
__________________
When posting code, please use code tags so that your code is readable. To do this, place the tag [code] before your block of code and [/code] after your block of code.
How to use Code Tags
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Redirect To Same Page systech44 JavaServer Pages (JSP) and JSTL 1 12-08-2009 12:27 PM
Tomcat Home Page not displayed maverick0681 New To Java 3 10-01-2009 10:07 AM
redirect to html page simo_mon Java Servlet 3 02-12-2009 06:18 PM
Redirect page in web service bluesheeva Advanced Java 3 02-04-2009 12:56 AM
redirect page within a java applet paul Java Applets 1 08-07-2007 06:11 AM


All times are GMT +2. The time now is 09:30 PM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org