views:

37

answers:

2

Hey experts,

I have website where I need to show a blog inside my website, so i tried doing that by using iframe.Now the problem is since the blog is bigger in size, my iframe shows scroll bars and I don't want that and also I would like to know if there is any other way to show the blog in my website like if I am able to show the website in div that will be cool since div size grows as data grows.

Thanks in advance.

+1  A: 

You can easily load any web content into a div using Prototype's AJAX updater. To work around the same origin policy you'll need a script on the server side, which loads the blog content for you, and "reflects" it back to the AJAX code, which is pretty straightforward to do using almost any server side solution (PHP, ASP, whatever).

dnet
+1, or you can use the simple jQuery `load` alternative
Makram Saleh
A: 

Can you get a feed of the content in any common standard format (RSS, Atom etc) that you can then display on your site in a style that matches your layout better?

Here's a pretty good tutorial on building a simple RSS reader using jQuery.

David Heggie