<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.StileMessaggioDiPostaElettronica17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:70.85pt 2.0cm 2.0cm 2.0cm;}
div.Section1
        {page:Section1;}
-->
</style><!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>
<body lang="IT" link="blue" vlink="purple">
<div class="Section1">
<p class="MsoNormal">Hello<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">I&#8217;m trying to develop a new type of home page widget.<span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal">This kind of widget is very similar to default widgets: the idea is that an user can choose which one to view from a list of fixed widgets.
<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">The widget has to show an swf object which is generated via a javascript library which come from third party vendor.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">I started from very basic: i managed to create a new type of widget which shows a fixed text hardcoded in the template (for semplicity, at the moment, i created a new template file to show from Homeblock.php). This works.<o:p></o:p></p>
<p class="MsoNormal">Then i modified what i&#8217;ve done before inserting the javascript include and the code in the template. Now i have a problem: in the homepage the widget shows but there is no swf object in it. If i try to access the homeblock widget directly
 (at the url: <i>http://localhost:81/index.php?module=Home&amp;action=HomeAjax&amp;file=HomeBlock&amp;homestuffid=[id]&amp;blockstufftype=[type]</i>) the widget
<u>works</u> and it shows me the swf object. Also, the hardcoded text is shown in either the widget in home page and the single homeblock widget.
<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">So it came to me it could be a problem from javascript library not loaded successfully, as if the library is not reached correctly no swf object is generated. I tryed to put the include for javascript library in either the new template
 file, Homestuff.tpl and MainHomeBlock.tpl, with no success unfortunatly.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Then i need some help, does anyone focus what could be the problem here?<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Thank you<o:p></o:p></p>
<p class="MsoNormal">Alessandro<o:p></o:p></p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1">--<br>
The information transmitted is intended for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information
 by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.<br>
</font>
</body>
</html>