Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 11-08-2009
Member
 
Join Date: Feb 2009
Posts: 62
How to use iframes applications for redirecting offers

Search engines catalogue the Wordpress posts and link back to them, not the main site. URL's for individual posts also don't work in the main site. meaning that if a page A is loaded as an IFRAME inside an parent page P some Javascript in A redirects the outer window to A. I've read that it is possible to create a redirect to overcome this problem but don't know how to do it.
Reply With Quote
  #2  
Old 11-08-2009
Member
 
Join Date: Jan 2006
Posts: 7,109
Re: How to use iframes applications for redirecting offers

If you wanted to redirect from one site to another site you may use the href command in you program to redirect and this will be done as under.

<frameset rows="100%,*" border="0">
<frame name="__main" src="http://www.anothersite.com/folder/"
noresize frameborder="0">
<noframes>
<h2>Your Web browser does not support frames</h2>
<p>
Please click the link to visit
<a href="http://www.anothersite.com/folder/">http://www.anothersite.com/folder/</a>
directly.
Reply With Quote
  #3  
Old 11-08-2009
Member
 
Join Date: Feb 2006
Posts: 159
Re: How to use iframes applications for redirecting offers

Usually, most people don't usually type in the specific page they want, they use the site's navigation. Try using the onbeforeunload property, which will let the user choose whether he wants to navigate away from the page.But let's say for example, a user does type in the exact URL of the page they want to go to like. This works OK.... until you get to a site that uses frames.
Reply With Quote
  #4  
Old 11-08-2009
Member
 
Join Date: Feb 2006
Posts: 172
Re: How to use iframes applications for redirecting offers

A way to go around this limitation woould be to put a script in each page that checks to see if the page was loaded with the proper frames. Since the page you load inside the iframe can execute the "break out" code with a setInterval, If the user types in a direct URL, the script redirects you to the index page which loads the site using the proper frameset.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to use iframes applications for redirecting offers"
Thread Thread Starter Forum Replies Last Post
Will using iFrames hurts SEO Weeraz Software Development 7 21-02-2012 07:42 AM
Problem of iframes Hashim Software Development 3 21-11-2009 08:19 PM
How to Implement iframes in a form Shanbaag Software Development 3 23-09-2009 12:52 PM
How to use $_GET in iframes BansiJ Software Development 2 26-08-2009 09:54 PM
Embed iframes in Flash Chain-SmokeR Technology & Internet 3 13-07-2009 11:59 AM


All times are GMT +5.5. The time now is 05:18 PM.