The (Legal's)[http://www.openlaszlo.org/legals] page is indeed correct.

But, I am suggesting this because it seems wrong to me that you  
should have to set the window size in the link that fetches an LZX  
app.  That's the way I did it on the et/index page, but it seems  
wrong.  You end up having a hard constant in 2 places and it is easy  
for them to get out of sync.  Since these pages are really meant to  
be demo pages, I don't see a drawback to sizing them correctly.   
Anyone who wants a custom app will obviously adapt the wrapper to  
their own needs.

I should note, however, when I go the the openlaszlo home page and  
follow the (Featured Demos)[http://www.openlaszlo.org/demos#LZpiX]  
link, I get an 800x700 page instead of the correct 800x600 page.  In  
fact, that page is an example of what I am saying above -- each link  
has to know the size of the target app, which just seems wrong.  I  
think with this change, the demos page could just link to each app  
without any sizing options (or the other options either, since they  
are all overridden by the style sheet in the wrapper page anyways).

The demos page has a much cuter way of doing links though:

<a href="..." onclick="window.open(this.href)">

This makes your browser status line report the destination href  
correctly, but opens it in a new window, and you only have to write  
the URL once.  [Seems like a slight browser security issue here: I  
would want the browser to warn me for a a tag that has a non-default  
onclick handler, because it needn't actually take me to the url that  
it is reporting in the status line.]

On 2006-06-23, at 16:20 EDT, Jim Grandy wrote:

> I took your advice and changed the wrappers to closely match what  
> you described yesterday. Is that not what you are seeing on the  
> site? Everything should be standards-compliant, driven by  
> Javascript, and viewed within appropriately-sized windows.
>
> See also the change review I sent out this morning, with my  
> proposed changes to the lzpix wrappers as checked into legals.
>
> jim
>
> On Jun 23, 2006, at 1:10 PM, P T Withington wrote:
>
>> I's like to propose that the default wrapper pages for ?lzt=html  
>> and ?
>> lzt=dhtml be changed to include Javascript to set the window they are
>> loaded into to take on the canvas size (if the canvas size is set to
>> an absolute value).
>>
>> I think this makes a demo of an app more appealing (rather than it
>> appearing in the corner of a default sized window).
>>
>> Comments?
>> _______________________________________________
>> Laszlo-dev mailing list
>> [email protected]
>> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
>

_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev

Reply via email to