the_oliver Posted May 18, 2007 Share Posted May 18, 2007 Hello. How can i have a link that will open in an iframe. (So if i click a link in a submenu it will load new content into the iframe). Some think similer to adding <a href="" target="_iframe"> Thanks! Link to comment https://forums.phpfreaks.com/topic/51998-solved-changing-iframe-form-link-in-main-frame/ Share on other sites More sharing options...
the_oliver Posted May 18, 2007 Author Share Posted May 18, 2007 Also how can i make the height of the frame auto fit to contents? Thanks! Link to comment https://forums.phpfreaks.com/topic/51998-solved-changing-iframe-form-link-in-main-frame/#findComment-256518 Share on other sites More sharing options...
tushar707 Posted May 21, 2007 Share Posted May 21, 2007 I have solved both problems just today for my website. I will help you out. Okay as far as the loading content into iframe. here it is. <iframe src="thing.html" name="content"></iframe> The name is the important part. now in the link do this: <a href="homepage.html" target="content"> the target and name should be the same. to auto adjust the height. go here: http://www.dynamicdrive.com/dynamicindex17/iframessi2.htm (Id and name are two different commands for iframe) I used this to solve the auto adjust the height, and it works great with almost every browser. IE, Firefox have given me no problems. Link to comment https://forums.phpfreaks.com/topic/51998-solved-changing-iframe-form-link-in-main-frame/#findComment-258546 Share on other sites More sharing options...
the_oliver Posted May 21, 2007 Author Share Posted May 21, 2007 Fantastic! Many Thanks! Link to comment https://forums.phpfreaks.com/topic/51998-solved-changing-iframe-form-link-in-main-frame/#findComment-258631 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.