TinyPortal

General => Chit chat => Topic started by: Crip on November 29, 2010, 12:09:13 AM

Title: IFrame Poll
Post by: Crip on November 29, 2010, 12:09:13 AM
I have a jquery poll in an IFrame html/javascript block , works good. :)

http://www.jpr62.com/theme/index.php
Title: Re: IFrame Poll
Post by: WillyP on November 29, 2010, 12:11:44 AM
Nice!... I voted for jQuery.  ;)  The double horizontal scroll bar is a little odd, though.  ???
Title: Re: IFrame Poll
Post by: lurkalot on November 29, 2010, 07:56:05 AM
Looks neat Jeff.  O0  voted Moo.

Quote from: WillyP on November 29, 2010, 12:11:44 AM
The double horizontal scroll bar is a little odd, though.  ???

Agreed, Very odd.  ???
Title: Re: IFrame Poll
Post by: ZarPrime on November 29, 2010, 10:11:47 AM
The double scrollbar is in there because the code itself has scrolling set to "auto".  Setting it to "no" fixes that.  Also, the width of the iframe is set to 220px, which is also the width of the panel.  I had to set the panel width to 235px with no frame to display it on my test site without either scrollbar --> http://talesofthehavenexpanse.com/smf2test/index.php

The height was set to 500px as well for the iframe so I changed that to 250px.  Displays good this way.

ZarPrime
Title: Re: IFrame Poll
Post by: Crip on November 29, 2010, 11:12:33 AM
thanks Zar -- i will use those settings ..

i tried 1st [php code] block with the include ( ); gave error tho ..\/[/php]
Title: Re: IFrame Poll
Post by: ZarPrime on November 29, 2010, 11:45:24 AM
Hi Jeff,

No reason to use an include in a php block for the iframe.  If you want to use it in an iframe, try something like this ...


echo '<center><iframe CODE></iframe></center>';


for instance, the code for that Carve a pumpkin php article is ...


echo '<center><iframe frameborder=0 scrolling=no width=1000 height=750 src="http://www.theoworlds.com/halloween/" align=top></iframe></center>';


Of course, the center tags might not be necessary.

ZarPrime
Title: Re: IFrame Poll
Post by: Crip on November 29, 2010, 11:52:36 AM
i will try that ZarPrime. :)