Pixelated Reality
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Forum in iframe?

2 posters

Go down

Forum in iframe? Empty Forum in iframe?

Post by tatater56 Tue Apr 30, 2013 3:57 pm

btw ive noticed that this forum is inside an iframe right?

i find it kind of annoying that you scroll individually in the iframe when the content is taller than the frame itself, just personally sayin, and i know this simple script that fits the height of an iframe to its content (in case youre interested, i happen to use it on my little website too)

in any case, here it is:
(apparently, i cant post the code because it contains external links D:<
so heres a fake link to the code on my site
imthebossDOTx10DOTmx/stuff/iframe/
)
tatater56
tatater56
Moderator
Moderator

Posts : 13
Join date : 2013-04-30
Location : New Jersey

Back to top Go down

Forum in iframe? Empty Re: Forum in iframe?

Post by N0_GRIEF Wed May 01, 2013 1:12 am

didnt work Very Happy thank you for the code though haha it could definatly prove helpful in the future Very Happy
N0_GRIEF
N0_GRIEF
Admin
Admin

Posts : 242
Join date : 2013-04-27
Age : 27
Location : Las Vegas

https://pixealtedreality.forumotion.com

Back to top Go down

Forum in iframe? Empty Re: Forum in iframe?

Post by tatater56 Thu May 02, 2013 10:56 pm

I was confused why it didn't work and tested it out myself. Turns out their was a typo lol
Try this page and tell me if it works:

imtheboss_DOT_x10_DOT_mx/stuff/iframe/test.html
tatater56
tatater56
Moderator
Moderator

Posts : 13
Join date : 2013-04-30
Location : New Jersey

Back to top Go down

Forum in iframe? Empty Re: Forum in iframe?

Post by tatater56 Fri May 03, 2013 2:57 pm

wut.

I thought it worked because I was on my phone, I didn't realize that android automatically expands iframes.

the reason it doesnt work is probably because the script waits for the iframe to stop loading, whereas the way this forum is probably setup is that it is constantly checking for updates, so it never actually "stops loading."

the best way i could think of to fix this would be to run the resizing script regardless of whether-or-not the iframe is done loading, continuously or every couple of seconds. ill have to look into that though, im a bit rusty when it comes to javascript : P
tatater56
tatater56
Moderator
Moderator

Posts : 13
Join date : 2013-04-30
Location : New Jersey

Back to top Go down

Forum in iframe? Empty Re: Forum in iframe?

Post by N0_GRIEF Sat May 04, 2013 3:34 am

Razz yeah if you find another solution let me know, otherwise, to prevent scrolling in scrolling i will take off the site banner on this page with the server info and the screenshot to make the page smaller so you dont scroll in the page, instead just in the forums
N0_GRIEF
N0_GRIEF
Admin
Admin

Posts : 242
Join date : 2013-04-27
Age : 27
Location : Las Vegas

https://pixealtedreality.forumotion.com

Back to top Go down

Forum in iframe? Empty Re: Forum in iframe?

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum