View Full Version : HTML integrated frame
I manage www.ajagra.com. Actually www.ajagra.com/test is were I am working now as I use it as my testing platform. If you go to my testing site you will be shunted to my index page. There are a series of buttons along the top and and iframe were the home page is currently displayed. When you click on the buttons another webpage is displayed. I would like those buttons to only change the contents of that iframe. I think that I have done this before and I have spent the last few hours searching the web for such instructions but have found nothing. I wonder if there is a noble PCGuide citizen here who would point me in the right direction.
Paul Komski
12-31-2011, 11:16 PM
If you want to use a single navigation page that will display different content then I think you should use frames (http://www.w3.org/TR/html4/present/frames.html) and not iframes. You should also be aware that using iframes on one site to display content from another site can (a) lead to copyright issues and (b) mean that you have no control over the content of the iframe.
Frames are more and more deprecated in web-design and can often be replaced by well-designed php/css encoding. If you actually just want to use your methods because you want people to click on "buttons" this can be overcome by creating button images and overlaying with the appropriate text.
I was a little slow to move this morning...for some reason.
Anyway, copyright infringement would not be an issue. We own what is posted on that site.
How could I not have control over the content?
Paul Komski
01-01-2012, 07:14 PM
The HomePage button 3HT Insulation points to http://www.ajagra.com/test/3HT.html
The iframe on that page however points to http://www.insulation3ht.com/thermal_3Ht_insulation_panels/index.html
It is not obvious that both ajagra.com and insulation3ht.com are co-owned. If they are then what I suggested is not correct about copyright.
One of the points about iframes is that they can cross domains and that can involve both copyright and security issues.
vBulletin v3.6.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.