If you want a website loaded in a div, then that would be a little bit
difficult - I was really talking about loading content from another website
(not the whole thing with stylesheets, images, video, scripts, etc.). 
I think it would be possible if you could run scripts in both the parent
document and the one in the iFrame, which means you would have to have
access to both sites. I'm presuming you don't have access to the site which
you are planning to embed, so I don't think this is possible.


themba-2 wrote:
> 
> 
> Thanks, guys, basically, I want an iframe auto-resize, how can use use
> Ajax to load the other website in a div. I want to embed a php driven
> page in a asp.net website.
> 
> I found this script online, but the script does not work:
> 
> 
> 
> http://www.kaali.co.uk/article-Cross-bowser-iframe-auto-resize-script-94.htm
> 
> 2009/3/28 bjorsq <p...@bjorsq.net>:
>>
>>
>> Have you thought of using AJAX to embed the remote page within a <div>
>> instead of using an iFrame? I know you would have to use JSONP to get it
>> to
>> work across domains, so it kind of depends on how much control you have
>> over
>> each site. Another way of doing it would be using a proxy script to fetch
>> the page, then use AJAX to fetch it from the proxy.
>>
>> Otherwise, the  only way I can think you would do this is by loading the
>> page in an iframe which is the correct width (set the height to 1px or
>> something), waiting for the page to load, getting the height of the page
>> in
>> the iframe, then destroying the iframe and re-creating it with the
>> correct
>> height. You then have the problem that if the user changes the font size,
>> you get a scrolling iframe again.
>>
>> hth
>>
>>
>> themba-2 wrote:
>>>
>>>
>>> Hi Guys is it possible to embed a php website on an asp website using
>>> jQuey or is possible to create a dynamic height iframe for embedding
>>> another website running a different technology?
>>>
>>> Thank you.
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/iframe-ang-jQuery-tp22748742s27240p22757539.html
>> Sent from the jQuery General Discussion mailing list archive at
>> Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/iframe-ang-jQuery-tp22748742s27240p22772265.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to