Geoff Crawford | 1 Jul 21:02 2007

alert gets immediate onresult??


Flash environment, Laszslo 4.0.2

I have a simple <alert> with a <method event="onresult">
in it.  I thought that the docs imply it's the only event
available to an alert, and it's supposed to fire when the
user presses the button.  However, I get that event firing
immediately on an open() of the alert.  That's a big problem
because my code in the method is switching to a different
tabpane.  It means the tab pane switch hides the modal
alert so you can't get to hit the OK so you're basically
stuck.  Is that a bug?

My alert looks something like the folowing:

<alert name="saveAlert" >
         <method event="onresult">
                     parent.subviews[mainTab].setAttribute('selected',true);
         </method>

         Save is Complete!

</alert>

=======================================================================
Geoff Crawford                          Phone:         (973) 361 - 4224
Innov8 Computer Solutions, LLC          FAX:           (973) 537 - 6946
711 Route 10 East, Suite 204            Email:       geoff@...
Randolph NJ 07869                       Web: http://www.processware.biz

(Continue reading)

Benjamin Shine | 2 Jul 18:47 2007

a better rich text editor for Open Laszlo 4


That subject line got you interested, right? “Finally, they’ve  
implemented a better rich text editor!” Sorry, but no… we want *you*  
to implement a better rich text editor.

Open Laszlo 3.4 has a rich text editor, but it’s not very good. It’s  
inherently limited by Flash Player 7’s support for rich text, which  
seems to have been designed to display rich text, not to support  
interactive text format editing. With the DHTML runtime for Open  
Laszlo 4, we’re free of the constraints of the Flash player(s), and  
into a whole new frying pan: the constraints of the browsers. There  
are lots of other projects which work in that particular frying pan;  
in particular, other development efforts have already written  
javascript-based rich text editors. (TinyMCE from moxiecode comes to  
mind.) Some of these are free, open, and cross-browser-capable.  
Combine one of those with the Open Laszlo <html> tag, and we could  
finally have a good rich text editor in Open Laszlo.

This is a good place for a community contributor; could you integrate  
an existing DHTML rich text editor into the Open Laszlo 4 platform?

To do this, you’d have to learn some cool new tricks, which haven’t  
been documented much yet: the <switch> tag, the #pragma compiler hint  
mechanism, the runtime-specific compile-time constants, and probably  
some stuff we haven’t figured out how to do yet, like including a  
third-party library. You’d help us design and develop the platform  
support that developers will need to integrate a third-party  
javascript library, and you’d implement the first dhtml-specific  
extension. And you could choose which third-party editor to integrate.

(Continue reading)

Robin Sheat | 3 Jul 10:07 2007
Picon

Explicit datapath setting issue

Hi, I'm trying to set the datapath of a component explicitly, however the 
change doesn't seem to be doing anything. I call setDatapath on it, with the 
datapath taken from another component.

This test case shows what I'm trying to do. When the button is clicked, I'd 
expect the datapath of the first one to match the second one, but this isn't 
happening.

<?xml version="1.0" standalone="no"?>
<!DOCTYPE canvas SYSTEM "http://www.openlaszlo.org/lps-latest/tools/lzx.dtd">
<canvas width="500" height="500" debug="true">

	<class name="mytext">
		<attribute name="content" value="$path{' <at> desc'}" />
		<text text="${parent.content}" />
	</class>

	<dataset name="test">
		<test1 desc="wrong">
			<test2 desc="right" />
		</test1>
	</dataset>
	
	<simplelayout axis="y" />
	
	<view name="texts" datapath="test:/test1">
		<simplelayout axis="y"/>
		<mytext name="text1" />
		<mytext name="text2" datapath="test2" />
	</view>
(Continue reading)

Khurram Samad | 3 Jul 12:20 2007

Open Laszlo With Google Gears

Dear Friends
GeniTeam is working on writing Connector for Open Laszlo & Google Gears. The
focus of the effort is to replicate Grails and Lazlo on Rails, but for
Google Gears. We are in initial phase of starting the project. I would like
various community members to support the work with code contributions,
feedback and technical guidance.

We have just put a basic Proof of Concept for Open Laszlo and Google Gears. 
http://geniteam.com/papers/LazsloOnGears.zip.

The POC contains basic documents and installation instructions in Word and
PDF format. We are hopeful that efforts will provide a long desired
functionality for "offline processing", a basic ingredient of Rich Internet
Applications. 

Regards,
Khurram Samad
GeniTeam
www.geniteam.com

Jim Grandy | 3 Jul 20:47 2007

Facebook group for OpenLaszlo developers

Hi everyone,

I created a Facebook group for OpenLaszlo developers, here:

http://www.facebook.com/group.php?gid=2561940806

Please join!

If anyone in the community would like to serve as an administrator,  
please drop me an email and we'll talk about sharing responsibilities.

jim

Jean-Baptiste BRIAUD | 3 Jul 22:43 2007
Picon

Z axis or floating DatePicker

Hi the list,

I would like to have a floating over a form DapePicker.
To do so, I try to use a placement attribute like that :

<datepicker placement="glassView" visible="false" startAsIcon="false" 
name="bla"/>
where glassPane is a view. Note that the form is not inside the 
glassPane view but inside another one.

I had a button on the form that change the visible attribute of the 
datepicker.
Unfortunatly, it doesn't work. The DatePicker still push form elements 
rather than floating over form elements.

Any idea ?

Thanks !

JBB.

Benjamin Shine | 4 Jul 00:34 2007

Re: Z axis or floating DatePicker

Can you give a bit of a bigger code sample? I bet we can help.
-ben

On Jul 3, 2007, at 1:43 PM, Jean-Baptiste BRIAUD wrote:

> Hi the list,
>
> I would like to have a floating over a form DapePicker.
> To do so, I try to use a placement attribute like that :
>
> <datepicker placement="glassView" visible="false"  
> startAsIcon="false" name="bla"/>
> where glassPane is a view. Note that the form is not inside the  
> glassPane view but inside another one.
>
> I had a button on the form that change the visible attribute of the  
> datepicker.
> Unfortunatly, it doesn't work. The DatePicker still push form  
> elements rather than floating over form elements.
>
>
> Any idea ?
>
> Thanks !
>
> JBB.

Benjamin Shine
Software Engineer, Open Laszlo / Laszlo Systems
ben@...
(Continue reading)

Benjamin Shine | 4 Jul 00:48 2007

Re: Z axis or floating DatePicker

Also, myView.bringToFront() will help here.
I suggest not using placement if you are having trouble near it.

On Jul 3, 2007, at 3:34 PM, Benjamin Shine wrote:

> Can you give a bit of a bigger code sample? I bet we can help.
> -ben
>
> On Jul 3, 2007, at 1:43 PM, Jean-Baptiste BRIAUD wrote:
>
>> Hi the list,
>>
>> I would like to have a floating over a form DapePicker.
>> To do so, I try to use a placement attribute like that :
>>
>> <datepicker placement="glassView" visible="false"  
>> startAsIcon="false" name="bla"/>
>> where glassPane is a view. Note that the form is not inside the  
>> glassPane view but inside another one.
>>
>> I had a button on the form that change the visible attribute of  
>> the datepicker.
>> Unfortunatly, it doesn't work. The DatePicker still push form  
>> elements rather than floating over form elements.
>>
>>
>> Any idea ?
>>
>> Thanks !
>>
(Continue reading)

Robin Sheat | 5 Jul 06:06 2007
Picon

Mouse events passing through a view

I have a view that is sometimes lying over the top of another view, however 
when you move the mouse over the 'upper' one, if that particular part of it 
isn't clickable, then the mouseover and mouseclick events, along with the 
clickable status (thus the mouse pointer changes), pass though to the view 
behind it. Is there a nice way to avoid this, so that the frontmost view 
behaves like you'd expect it to visually.

I know I could just set the front view to clickable and do nothing with the 
events, but that will change the pointer which could be confusing to the 
user.

--

-- 
Robin <robin@...> JabberID: <eythian@...>

Hostes alienigeni me abduxerunt. Qui annus est?

PGP Key 0xA99CEB6D = 5957 6D23 8B16 EFAB FEF8  7175 14D3 6485 A99C EB6D
Robin Sheat | 5 Jul 06:35 2007
Picon

Re: Explicit datapath setting issue

I think I worked it out:

On Tuesday 03 July 2007 20:07:05 Robin Sheat wrote:
> 		<handler name="onclick"><![CDATA[
> 			Debug.write("Old text1 dp:",canvas.texts.text1.datapath);
> 			Debug.write("Old text2 dp:",canvas.texts.text2.datapath);
> 			var dp = canvas.texts.text2.datapath;
 			canvas.texts.text1.datapath.setFromPointer(dp);
> 			Debug.write("New text1 dp:",canvas.texts.text1.datapath);
> 		]]></handler>

--

-- 
Robin <robin@...> JabberID: <eythian@...>

Hostes alienigeni me abduxerunt. Qui annus est?

PGP Key 0xA99CEB6D = 5957 6D23 8B16 EFAB FEF8  7175 14D3 6485 A99C EB6D

Gmane