[Laszlo-dev] SOLO DHTML deployment

Max Carlson max at openlaszlo.org
Tue Nov 14 14:36:05 PST 2006


Take a look at a longer resource table, including some components...

-Max

Henry Minsky wrote:
> Well, the resource lib looks like this now, for a view like this
> 
>  <view resource="logo.gif"/>
> 
> The compiler outputs
> 
> LzResourceLibrary.$LZ1={frames:["/legals/test/lfc/logo.gif"],width:178.0,height:124.0} 
> 
> 
> So we could have the compiler write out this without the leading slash, and
> the runtime could have a flag which says whether to interpret the
> paths as relative or absolute.
> 
> 
> 
> On 11/14/06, Henry Minsky <henry.minsky at gmail.com> wrote:
>> Yeah maybe the compiler should output relative paths only for
>> resources, and the runtime is responsible for turning them into URLs.
>>
>> On 11/14/06, Max Carlson <max at openlaszlo.org> wrote:
>> > You'll need to, if the app is going to be self-contained :(.  Also, 
>> this
>> > makes it more difficult to share resources across apps...
>> >
>> > Perhaps we can put them in 'lps/includes/resources'?  That would mean
>> > you'd replace any leading '../' with 'lps/includes/resources'.
>> >
>> > This could be handled by the runtime.  If so, it's another reason for
>> > LzApplicationRoot!
>> >
>> > -Max
>> >
>> >
>> >
>> > Henry Minsky wrote:
>> > > Do you think I should try to rewrite the resource URLs to put them
>> > > into a subdirectory of the SOLO app instead of
>> > > ../../lps/components/lz/blah...?
>> > >
>> > >
>> > >
>> > >
>> > > On 11/14/06, Max Carlson <max at openlaszlo.org> wrote:
>> > >> We will need LzApplicationRoot for other reasons, including 
>> loading a
>> > >> static LFC file.  Please file a bug to add a client-generated 1x1 
>> pixel
>> > >>   transparent image - but it's only required for IE6.
>> > >>
>> > >> For SOLO DHTML, you will need:
>> > >> + the LFC and object code for the app
>> > >> + any media resources the app needs (which include component
>> > >> directories).  These should all be relative URLs.  The resource 
>> table
>> > >> for the app has the list of media you need.
>> > >> + lps/includes/blank.gif - Only needed for IE 6
>> > >> + lps/includes/embed-dhtml.js
>> > >>
>> > >> -Max
>> > >>
>> > >> P T Withington wrote:
>> > >> > I know there is a secret 1x1 .gif that is needed.
>> > >> >
>> > >> > I gave LPP-2916: 'Get rid of LzApplicationRoot' to you, because 
>> I think
>> > >> > it is relevant to this task.
>> > >> >
>> > >> > On 2006-11-13, at 10:52 EST, Henry Minsky wrote:
>> > >> >
>> > >> >> Can anyone tell me what they think is required for DHTML SOLO 
>> deploy?
>> > >> >> That is, what
>> > >> >> auxiliary include files are needed?
>> > >> >>
>> > >> >> Since we serve up the LFC and the app as separate files in 
>> DHTML, the
>> > >> >> new SOLO wizard will at least have to write out copies of 
>> static files
>> > >> >> for these.
>> > >> >>
>> > >> >> For reference the current swf solo wizard makes
>> > >> >>
>> > >> >> 1) recursive copy of all files in the directory in which the app
>> > >> >> resides, and also includes
>> > >> >> 2) An html wrapper file (app.swf.html)
>> > >> >>
>> > >> >> 3) these include files
>> > >> >>    filenames.add("lps/includes/embed.js");
>> > >> >>     filenames.add("lps/includes/h.html");
>> > >> >>     filenames.add("lps/includes/h.swf");
>> > >> >>     filenames.add("lps/includes/vbembed.js");
>> > >> >>
>> > >> >> I will make a master list of what needs to be packaged up, and 
>> make
>> > >> >> fork a version of the
>> > >> >> SWF solo deployment tool for DHTML.
>> > >> >>
>> > >> >>
>> > >> >>
>> > >> >>
>> > >> >> --Henry Minsky
>> > >> >> Software Architect
>> > >> >> hminsky at laszlosystems.com
>> > >> >
>> > >>
>> > >
>> > >
>> >
>>
>>
>> -- 
>> Henry Minsky
>> Software Architect
>> hminsky at laszlosystems.com
>>
> 
> 


More information about the Laszlo-dev mailing list