GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Tech Simple I-frame scrolling problem I have not licked. (https://gfy.com/showthread.php?t=1171917)

suesheboy 08-10-2015 08:03 AM

Simple I-frame scrolling problem I have not licked.
 
I am working on a new way to keep some sponsors honest and have more control by I-framing sites in domains I am sitting on.

The issue I have is I have multiple scroll bars and remove one or both won’t let the whole site be seen. Some sites are worse than others. Code I am using is real simple and one of these sites can be seen at: Real Sex Glass Toys: Glass Adult Products (I know the sponsors site looks like shit)

I spent hours on this problem and the answer must be real simple and right in front of my face.

The I-frame also allows social media sharing and a really cool live chat feature which works like a champ and starts at $15 a month. Highly recommend as it has improved sales and retention in adult and mainstream. When you are not logged on to chat it turns it into an email.

EddyTheDog 08-10-2015 08:10 AM

iframe {
overflow: hidden;
}

In your CSS should work...

suesheboy 08-10-2015 08:31 AM

Long pages like this one still have 2 bars: Real Sex Glass Toys: All Glass Sex Toys

EddyTheDog 08-10-2015 08:37 AM

Quote:

Originally Posted by suesheboy (Post 20546453)
Long pages like this one still have 2 bars: Real Sex Glass Toys: All Glass Sex Toys

I am not great on this stuff - However, setting height to 100% makes sense...

RazorSharpe 08-10-2015 08:38 AM

Quote:

Originally Posted by suesheboy (Post 20546453)
Long pages like this one still have 2 bars: Real Sex Glass Toys: All Glass Sex Toys

Smart iframe, auto adjusting height ? Tech Forum

suesheboy 08-10-2015 08:45 AM

Quote:

Originally Posted by RazorSharpe (Post 20546460)


"Important! This 'smart iframe' will not work if you're pulling content in from something that isn't within the same hosting as the page requesting the data."

Man it looked good though!

suesheboy 08-10-2015 08:49 AM

Quote:

Originally Posted by EddyTheDog (Post 20546458)
I am not great on this stuff - However, setting height to 100% makes sense...

Sure does but it doesn't work - have the long page set that way now. Shows only a 150px long frame.

Like I said I have been banging my head against the wall.

Colmike9 08-10-2015 09:07 AM

If the iframe
{
overflow:hidden;
}
mentioned by ETD doesn't work, it's probably because the overflow happens in the iFrame, which can't be edited because of XSS.

Try putting it in a div:
<div id="whatever" seamless="seamless" scrolling="no" style="width:100%; height: 100%;">IFRAME</div>

RazorSharpe 08-10-2015 09:16 AM

Quote:

Originally Posted by Colmike7 (Post 20546494)
If the iframe
{
overflow:hidden;
}
mentioned by ETD doesn't work, it's probably because the overflow happens in the iFrame, which can't be edited because of XSS.

Try putting it in a div:
<div id="whatever" seamless="seamless" scrolling="no" style="width:100%; height: 100%;">IFRAME</div>

the seamless attribute won't work in all browsers. In fact, I think it currently only works on Chrome. Using it was my first thought ...

Colmike9 08-10-2015 09:17 AM

Quote:

Originally Posted by RazorSharpe (Post 20546506)
the seamless attribute won't work in all browsers. In fact, I think it currently only works on Chrome. Using it was my first thought ...

Aw :/ What about non-seamless but still edit the height in the div?
Edit: nvm, I'll keep thinking..

Or clone the part you want from their site on your server, then iFrame that so that you can change attributes without being XSS anymore.. :upsidedow

suesheboy 08-10-2015 09:31 AM

Quote:

Originally Posted by Colmike7 (Post 20546509)
Aw :/ What about non-seamless but still edit the height in the div?
Edit: nvm, I'll keep thinking..

Or clone the part you want from their site on your server, then iFrame that so that you can change attributes without being XSS anymore.. :upsidedow

Good attempt.

Didn't mention I am a stickler for HTML complainant and cross browser capable.

I swear I lost an entire day on this.

The idea of cloning including processing, databases etc won't go over too well I am sure!

Once this is working you can see what a huge advance it would be to any affiliate.

suesheboy 08-10-2015 04:46 PM

Last bump for new eyes to see...

Anyone else see what we are missing?

daddy_fu 08-10-2015 05:07 PM

I'm not 100% sure what you're trying to do, but it you want the iframe to be essentially hidden. So the visitor to the site doesn't see the iframe. There are a couple css changes you need to make.

html, body {
height: 100%;
overflow: hidden;
}

iframe {
height: 100%;
}

Be sure to get rid of this:

iframe {
height: 100em;
}

The trick with getting an iframe to completely fill the page and look natural, is setting the html, body height to 100%.


All times are GMT -7. The time now is 02:41 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc