Hi guys,
We need to load an external page (from another domain) into ours. The problem is that the height cannot be adjusted according to the height of the external content. First I tried using an iframe, but the height wouldn't adjust. Then I was told that I could load the content in a div using an Ajax script. I was given this example:
Code:
<script type="text/javascript">
new Ajax.PeriodicalUpdater('external', 'http://www.external.com/content.php', {
method: 'get', frequency: 30, decay: 3
});
</script>.
<div name="external">here comes the content</div>
Anyone knows how to complete the code?
I have no experience with Ajax scripts.
Your help is appreciated.
Kind regards
Henrik
Last edited by chrisper : 01-09-2009 at 04:24 AM.
|