PDA

View Full Version : open an Ext.Window with an html with external javascripts



NelsonN
14 Jun 2011, 10:39 AM
Hi,

I would like to open an Ext.Window that will exectute a javascript from LinkedIn.
I have the following code:


Ext.create('Ext.window.Window', {
title: 'About us',
height: 400,
width: 800,
layout: 'fit',
items:[{
autoLoad: {url:'linkedin_emp1.html', scripts: true},
}]


}).show();


and the linkedin_emp1.html file is:


<h1> List of people </h1>


<script src= "http://platform.linkedin.com/in.js" type="text/javascript"></script>
<script type=IN/CompanyInsider data-id="2160110" data-modules="innetwork,newhires,jobchanges"></script>



The html file is loaded and I see inside the window just the "List of People" string but not the content that comes from the linkedin javascript.

When I open the same html file from the browser I see everything fine.

It looks like I cannot run an external javascript inside an html.
Any ideas how to do that?







Thanks,

NelsonN