TinyPortal

General => Chit chat => Topic started by: sbk on December 08, 2005, 09:45:57 AM

Title: Displaying the content of a webpage into a block
Post by: sbk on December 08, 2005, 09:45:57 AM
Hello,

How can I display the content of a specified web page into a block?
I would like to display this in a left block for example : http://www03.rsr.ch/player/player_couleur3/html/gdplayer.html
Title: Re: Displaying the content of a webpage into a block
Post by: bloc on December 08, 2005, 11:30:46 AM
You could try to use a iframe..especially if the page is a set size. In a html/javascript block.

Or try to include it in a php block..but may not always work as intended.
Title: Re: Displaying the content of a webpage into a block
Post by: sbk on December 08, 2005, 12:28:46 PM
It works great, thanks!
Title: Re: Displaying the content of a webpage into a block
Post by: sbk on December 08, 2005, 02:12:09 PM
But I can't change the width of the iframe, and the iframe is bigger than the other left blocks...

My code : <iframe src="http://www03.rsr.ch/player/player_couleur3/html/gdplayer.html" name="zone1" frameborder=no scrolling=yes width="50"></iframe>

Does anybody know about how to force this width?
Title: Re: Displaying the content of a webpage into a block
Post by: gerrymo on December 08, 2005, 02:21:40 PM
Set the width to 100% in the iFrame (or similar). Also check the page being displayed is set to % and not fixed width in pixels.
Title: Re: Displaying the content of a webpage into a block
Post by: sbk on December 08, 2005, 03:18:27 PM
Both % or pixel size in the iFrame don't have any influence, and I have no control on the page being displayed...
Title: Re: Displaying the content of a webpage into a block
Post by: gerrymo on December 08, 2005, 03:47:52 PM
Have you got a link?
Title: Re: Displaying the content of a webpage into a block
Post by: sbk on December 08, 2005, 03:55:21 PM
http://www03.rsr.ch/player/player_couleur3/html/gdplayer.html
Title: Re: Displaying the content of a webpage into a block
Post by: gerrymo on December 08, 2005, 04:14:54 PM
I meant to the page with it inside the block.
Title: Re: Displaying the content of a webpage into a block
Post by: sbk on December 08, 2005, 04:30:37 PM
sorry ;) http://calamarcru.tonneaux.org
Title: Re: Displaying the content of a webpage into a block
Post by: gerrymo on December 08, 2005, 05:05:31 PM
I see what you mean. The code you give above works OK on my site, as does the one below. Check your right block size is the same as the left. However, the scrollbars dont show up. I suspect this is down to the script used to make the popup you are trying to frame. See if the site that it comes from does a normal page version, rather that popup.


<iframe src="http://www03.rsr.ch/player/player_couleur3/html/gdplayer.html" height="200" width="100%" scrolling="yes"></iframe>