HTML Help Forum HTML Help
Please Search for the answer to your question before asking it! Thanks.
 

Auto resize a child iframe
Post a Reply to this Topic Ask a New Question
Click here to go to the original topic
       HTML Help Forum -> HTML Frame
View previous topic :: View next topic  
Author Message
KrinkleGator



Joined: 08 Dec 2008
Posts: 2

Posted: Mon Dec 08, 2008 8:28 am     Auto resize a child iframe  

Okay, I am trying to figure out an iframe question. After looking all over online, I cannot find an answer. Maybe someone can shed some light on this.

I am redesiging a website. The current website is kjv1611.org - looks kind of bland, huh? That's why I am redesigning it. Anyways, we are adding an online shopping cart. It is located at http://host248.ebm.bestsoftwarehost.com/iw_products.m4p.pvx?;products_no_tree?company=bbb

I want to embed (or create an iframe) to put http://host248.ebm.bestsoftwarehost.com/iw_products.m4p.pvx?;products_no_tree?company=bbb onto kjv1611.org but the trick is that I want the width to be 900px (which I can do) and the height to automatically adjust to the height (which I cannot do). I have found several javascripts that would allow you to do this, but the child frame has to be from the same domain as the parent frame, which mine is not.

Any help out there would be appreciated.
PayneLess Designs



Joined: 28 Feb 2007
Posts: 4289
Location: MS

Posted: Thu Dec 11, 2008 5:06 am      

Try: Code: <div style="width:600px; height:400px;"><object type="text/html" data="http://host248.ebm.bestsoftwarehost.com/iw_products.m4p.pvx?;products_no_tree?company=bbb" style="width:100%; height:100%; margin:1%;"></object></div> BY the way, the shockwave media was reported as having errors in it.

Ser sizes to your preferences for div container. Code was checked and worked for me. Validates Strict.
KrinkleGator



Joined: 08 Dec 2008
Posts: 2

Posted: Fri Jan 08, 2010 9:06 am     Thanks  

I know this is WAY past due, but thanks for the help. We ended up just editing the code that was provided for the shopping cart and added our header and navigation bar to it instead of trying to embed it. I really appreciate everything. Thanks, again.
PayneLess Designs



Joined: 28 Feb 2007
Posts: 4289
Location: MS

Posted: Fri Jan 08, 2010 11:06 am      

You're welcome. Quite ok for being late. I'm so far behind in answering some of these posts that I am downright embarrass to even start.

Thank you for posting back with an update.
 
 
DARFUR
HOSTING / DESIGN
MAKE MONEY

       HTML Help Forum -> HTML Frame
Page 1 of 1


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.19 © 2001, 2002 phpBB Group