Hi,
Now I created a vSphere Web Client plugin, and I wanna my plugin communicate with JavaScript.
So now I do not know where should I put it. I checked my plugin html source code as following:
----------------
.....
<link type="image/x-icon" href="assets/application.ico" rel="shortcut icon" />
<script type="text/javascript" src="history/history.js"></script>
<script type="text/javascript" src="assets/swfobject.js"></script>
<script type="text/javascript" src="assets/jquery.min.js"></script>
<script type="text/javascript" src="assets/jquery.scrollbars.js"></script>
<script type="text/javascript">
//<![CDATA[
swfobject.embedSWF(
'UI.swf',
'flashContent',
'100%',
'100%',
'11.1.0',
'playerProductInstall.swf',
false, {
quality: 'high',
bgcolor: '#ffffff',
allowscriptaccess: 'sameDomain',
allowfullscreen: 'true',
menu: false,
flashvars: 'locale=en_US&localeChain=en_US&resourceModuleURLs=locales/UI-en_US.swf',
scale: 'noscale',
wmode: 'opaque'
}, {
id: 'container_app',
name: 'container_app',
align: 'middle'
});
swfobject.createCSS('#flashContent', 'display: block; text-align: left;');
$.scrollbars({
swfId: '#container_app'
});
//]]>
</script>
...
//other code
-----------------------------
Here I wanna to add my javascript such as app.js after <script type="text/javascript" src="assets/jquery.scrollbars.js"></script>
.Just like
--------
<link type="image/x-icon" href="assets/application.ico" rel="shortcut icon" />
<script type="text/javascript" src="history/history.js"></script>
<script type="text/javascript" src="assets/swfobject.js"></script>
<script type="text/javascript" src="assets/jquery.min.js"></script>
<script type="text/javascript" src="assets/jquery.scrollbars.js"></script>
<script type="text/javascript" src="assets/app.js"></script>
-------
Could anyone reply me ?
I will be appreciated that.