i am displaying a page inside a iframe.Following is the markup:
<iframe src="/home/index" width="700px" height="300px"/>
Now , using jquery i am trying to add content of another page to this iframe:
$('iframe').bind('load',function()
{
$('iframe).contents().find('body').load('/user/profile');
});
Page (user/profile) content is getting rendered except javascript files i.e the head section of 'user/profile' page contains reference to javascript files like jquery.js,profile.js etc.I checked iframe's content in firebug.There is no reference to these js files. Please help.