8 replies
I'm trying to iframe this one part of a website but it's not really working. I typed no for scrolling but it's not really working.

Here's the website: http://coupon.idolhealth.com/africanmango

and I want to display it in my page but I don't want to display any part after "Start My Order" button.

Can someone please help me out with this? I would truly appreciate it.
#iframe
  • Profile picture of the author Aliaksandr
    Anyone? bump
    {{ DiscussionBoard.errors[3519848].message }}
  • Profile picture of the author Jonas B
    i think its easier te recreate that part and make an iframe instead of doing something which isn't even possible (?) unless you add some javascript to force the page to scroll to the top (even if that is possible)
    Signature
    Proud owner of the most flexible mobile app builder. Check it out at http://bit.ly/hybrica!
    Mobile Web Expert & Android Developer
    {{ DiscussionBoard.errors[3519888].message }}
    • Profile picture of the author jminkler
      Originally Posted by zebix View Post

      unless you add some javascript to force the page to scroll to the top (even if that is possible)
      scroll(0,0)
      {{ DiscussionBoard.errors[3525693].message }}
  • You will need to code the size of the iframe, or frameset to a max size that is smaller than the rest of the site, if you want to cut off the signup form.
    {{ DiscussionBoard.errors[3523624].message }}
    • Profile picture of the author jminkler
      Originally Posted by Cash Money Hosting View Post

      You will need to code the size of the iframe, or frameset to a max size that is smaller than the rest of the site, if you want to cut off the signup form.
      This is correct but ..

      For one you are not using an i frame here is your code

      PHP Code:
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <
      html xmlns="http://www.w3.org/1999/xhtml">
      <
      head>
      <
      META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
      <
      title></title>
      </
      head>
      <
      frameset rows='*' frameborder="0" border="0" >
          <
      frame frameborder="0" border="0" name='main' src='http://www.africanmangoplus.com/trial.php'>
      </
      frameset>
      <
      body>
      <!--  
      body  -->
      </
      body>
      <!-- 
      PINGDOM -->
      </
      html
      And iframe with the correct height would look like

      PHP Code:
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <
      html xmlns="http://www.w3.org/1999/xhtml">
      <
      head>
      <
      META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
      <
      title></title>
      </
      head>
      <
      iframe width="100%" height="811px" src='http://www.africanmangoplus.com/trial.php'>
      <
      p>Your browser does not support iframes</p>
      </
      iframe>
      <
      body>
      <!--  
      body  -->
      </
      body>
      <!-- 
      PINGDOM -->
      </
      html
      {{ DiscussionBoard.errors[3525722].message }}
  • Profile picture of the author Aliaksandr
    Thanks a bunch guys!
    {{ DiscussionBoard.errors[3531768].message }}
    • Profile picture of the author jminkler
      Originally Posted by Aliaksandr View Post

      Thanks a bunch guys!
      I think you might need to tackle this in a different way

      curl out to get the html, strip the head and body tags themselves, then put that html inside a div with overflow: hidden

      The other routes? copy their html? pretty shady though ..
      {{ DiscussionBoard.errors[3542671].message }}
    • Profile picture of the author mream815
      I've checked your site, which part of the page do you want to place the <iframe>? And its size, what probably?

      You need to specify first the size and location on the page, then try to use <div> like above mentioned to serve as a container of your <iframe>.

      And try to use a z-index of CSS so the container of the <iframe> would be prioritized, so you can overlay it if you want to.

      And I've noticed that you're using frameset, Classic u! ;-).

      Don't force yourself to put the iframe on the primary page with the frameset. You really get into trouble... ;-p

      Instead, apply the iframe on the page you have linked using frameset. And I believe its trial.php.


      You can do it. iframe is a lot easier to manage than frameset.

      Gud luck!
      {{ DiscussionBoard.errors[3542882].message }}

Trending Topics