[Laszlo-dev] LPP-8107 fullscreen, some questions

Raju Bitter rajubitter at me.com
Thu Jun 11 05:23:28 PDT 2009


Here's what I've understood so far:

Based on the lzt arg value in the HTTP request the LzServlet  
getResponer(ltz) method is processed. If the lzt=html, the  
corresponding responder ResponderHTML.java is used. Then the init  
method is called on the Responder.

lzres.init(lzt, getServletConfig(), mProperties);

For lzt=html html-response.xslt is used to generate the HTML code.  
This XSL in turn embeds the code to generate the SWF, now using the  
lzt=swf setting:
               <xsl:otherwise>
                 <script type="text/javascript">
                   lz.embed.swf({url: '<xsl:value-of select="/canvas/ 
request/@url"/>?lzt=swf<xsl:value-of select="/canvas/request/ 
@query_args"/>', bgcolor: '<xsl:value-of select="/canvas/@bgcolor"/>',  
width: '<xsl:value-of select="/canvas/@width"/>', height: '<xsl:value- 
of select="/canvas/@height"/>', id: '<xsl:value-of select="/canvas/ 
@id"/>', accessible: '<xsl:value-of select="/canvas/@accessible"/>'});

                   lz.embed.<xsl:value-of select="/canvas/@id"/ 
 >.onloadstatus = function loadstatus(p) {
                     // called with a percentage (0-100) indicating  
load progress
                   }

                   lz.embed.<xsl:value-of select="/canvas/@id"/ 
 >.onload = function loaded() {
                     // called when this application is done loading
                   }
                 </script>
               </xsl:otherwise>

That means another request is made to LaszloServlet, this time with  
lzt=swf. But how's the ResponderObject.java used here, and what is the  
connection to the object-tag-reponse.xslt?

- Raju



> Ok,
>
> for the Object tag I've found
> the template: http://svn.openlaszlo.org/openlaszlo/trunk/WEB-INF/lps/templates/object-tag-response.xslt
> and the responder class http://svn.openlaszlo.org/openlaszlo/trunk/WEB-INF/lps/server/src/org/openlaszlo/servlets/responders/ResponderOBJECT.java
>
> If I want to modify the template based on a canvas attribute  
> @fullscreen, how can that be achieved?
>
> Thanks,
> Raju
>
> On Jun 11, 2009, at 1:42 PM, Raju Bitter wrote:
>
>> Max, Henry,
>> I'm back at working on http://jira.openlaszlo.org/jira/browse/ 
>> LPP-8107
>>
>> I have a few qestions:
>> 1) What kind of code do you put into LzScreenKernel, compared to  
>> LaszloCanvas? Would be better to have the code to go into  
>> fullscreen mode in LzScreenKernel? Max already suggested that, so  
>> that will be my approach for now.
>> 2) Where's the connection between canvas attributes and the  
>> templates used for HTML generation. I'll look into that, but some  
>> input would be valuable.
>>
>> I'm documenting my approach here: http://wiki.openlaszlo.org/SWF_Runtime_Fullscreen_Support#Ongoing_work
>>
>> - Raju
>



More information about the Laszlo-dev mailing list