Hi there,
Can anybody tell me how to put Laszlo code inside html code ?..
Thnks & Regds,
Pranav
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Friday, May 12, 2006 12:00 AM
To: [email protected]
Subject: Laszlo-user Digest, Vol 19, Issue 17
Send Laszlo-user mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://www.openlaszlo.org/mailman/listinfo/laszlo-user
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]
You can reach the person managing the list at
[EMAIL PROTECTED]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Laszlo-user digest..."
Today's Topics:
1. Re: Auto Update the data (Adeola Awoyemi)
2. Re: Auto Update the data (Adeola Awoyemi)
3. About refreshing data ( St?phane . )
4. Re: newbie question (William Krick)
5. Re: About refreshing data (kathryn aaker)
----------------------------------------------------------------------
Message: 1
Date: Thu, 11 May 2006 08:43:42 +0100
From: Adeola Awoyemi <[EMAIL PROTECTED]>
Subject: Re: [Laszlo-user] Auto Update the data
To: John Sundman <[EMAIL PROTECTED]>
Cc: Rami Alkhalyleh <[EMAIL PROTECTED]>, "[email protected]
Users" <[email protected]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
One way that I have implemented this in our solo app is to use the
LzDelegate and LzTimer together. For instance:
[CODE]
<method name="startPoll">
this.pollDelegate = new LzDelegate( this, "pollServer" );
LzTimer.addTimer( this.pollDelegate, 1000 );
</method>
<method name="pollServer">
canvas.checkSession(); // checks if session is still valid
board.updateBoard(srv.boardname); // updates the board dataset
LzTimer.resetTimer( this.pollDelegate, 1000 );
</method>
[/CODE]
So in this case the my dataset is called "board" and the "updateBoard()"
method just makes the dataset request the data from the source again.
This is how the boards on http://www.clockthat.com get updated
"globally" so that all users can see updated boards.
HTH,
Adeola.
John Sundman wrote:
> Pablo wrote the chapter in the Dguide and I edited it & updated it. I
> believe it's accurate and good, so far as it goes.
>
> What it does not tell you, because it cannot, is how to architect your
> application so that it scales well. When we get questions about how to
> build applications that use a persistent connection to handle millions
> of simultaneous users, the answer is, "talk to [EMAIL PROTECTED]"
> to see about consulting services, or to have laszlo build your
> application for you.
>
> That being said, perhaps Pablo and I should get together for an hour or
> so to go over the documentation with an eye to improving it.
>
> In general, the OpenLaszlo documentation does not cover best practices
> for architecting applications (design patterns, things like that).
> Some books are in the works that will address this gap.
>
> jrs
>
>
>
> On May 9, 2006, at 1:50 PM, Benjamin Shine wrote:
>
>> You have to poll the database, or use the persistent connection. Pablo
>> or John, is there any good persistent connection documentation? This
>> question has come up twice in the last few weeks.
>>
>> On May 9, 2006, at 7:42 AM, Rami Alkhalyleh wrote:
>>
>>> Hi All,
>>>
>>> I used laszlo to view the data from the database, so when the data
>>> in the database updated how can update the viewable data at the
>>> laszlo file without refresh the page?
>>>
>>> thanks in advance
>>>
>>>
>>> Regards
>>> Rami
>>> _______________________________________________
>>> Laszlo-user mailing list
>>> [email protected]
>>> http://www.openlaszlo.org/mailman/listinfo/laszlo-user
>
> _______________________________________________
> Laszlo-user mailing list
> [email protected]
> http://www.openlaszlo.org/mailman/listinfo/laszlo-user
------------------------------
Message: 2
Date: Thu, 11 May 2006 10:09:18 +0100
From: Adeola Awoyemi <[EMAIL PROTECTED]>
Subject: Re: [Laszlo-user] Auto Update the data
To: Rami Alkhalyleh <[EMAIL PROTECTED]>, [email protected]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
No problem.
FYI: The startPoll() method is called in the canvas's oninit event:
<canvas ... oninit="this.startPoll()">
...
</canvas>
Adeola.
Rami Alkhalyleh wrote:
> Thank you very much,
>
>
>
> On 5/11/06, *Adeola Awoyemi* <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> One way that I have implemented this in our solo app is to use the
> LzDelegate and LzTimer together. For instance:
>
> [CODE]
>
> <method name="startPoll">
> this.pollDelegate = new LzDelegate( this, "pollServer" );
> LzTimer.addTimer( this.pollDelegate, 1000 );
> </method>
> <method name="pollServer">
> canvas.checkSession(); // checks if session is still valid
> board.updateBoard(srv.boardname); // updates the board dataset
> LzTimer.resetTimer( this.pollDelegate, 1000 );
> </method>
>
> [/CODE]
>
> So in this case the my dataset is called "board" and the
"updateBoard()"
> method just makes the dataset request the data from the source again.
>
> This is how the boards on http://www.clockthat.com get updated
> "globally" so that all users can see updated boards.
>
> HTH,
>
> Adeola.
>
>
> John Sundman wrote:
> > Pablo wrote the chapter in the Dguide and I edited it & updated
> it. I
> > believe it's accurate and good, so far as it goes.
> >
> > What it does not tell you, because it cannot, is how to architect
> your
> > application so that it scales well. When we get questions about
> how to
> > build applications that use a persistent connection to handle
> millions
> > of simultaneous users, the answer is, "talk to
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>"
> > to see about consulting services, or to have laszlo build your
> > application for you.
> >
> > That being said, perhaps Pablo and I should get together for an
> hour or
> > so to go over the documentation with an eye to improving it.
> >
> > In general, the OpenLaszlo documentation does not cover best
> practices
> > for architecting applications (design patterns, things like that).
> > Some books are in the works that will address this gap.
> >
> > jrs
> >
> >
> >
> > On May 9, 2006, at 1:50 PM, Benjamin Shine wrote:
> >
> >> You have to poll the database, or use the persistent connection.
> Pablo
> >> or John, is there any good persistent connection documentation?
This
> >> question has come up twice in the last few weeks.
> >>
> >> On May 9, 2006, at 7:42 AM, Rami Alkhalyleh wrote:
> >>
> >>> Hi All,
> >>>
> >>> I used laszlo to view the data from the database, so when the
data
> >>> in the database updated how can update the viewable data at the
> >>> laszlo file without refresh the page?
> >>>
> >>> thanks in advance
> >>>
> >>>
> >>> Regards
> >>> Rami
> >>> _______________________________________________
> >>> Laszlo-user mailing list
> >>> [email protected] <mailto:[email protected]>
> >>> http://www.openlaszlo.org/mailman/listinfo/laszlo-user
> <http://www.openlaszlo.org/mailman/listinfo/laszlo-user>
> >
> > _______________________________________________
> > Laszlo-user mailing list
> > [email protected] <mailto:[email protected]>
> > http://www.openlaszlo.org/mailman/listinfo/laszlo-user
>
>
------------------------------
Message: 3
Date: Thu, 11 May 2006 14:54:43 +0200
From: " St?phane . " <[EMAIL PROTECTED]>
Subject: [Laszlo-user] About refreshing data
To: [email protected]
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset="utf-8"
In a old post, i've asked if it's possible to refresh data on a client
program when another client program is modifying database table n_uplets.
I've been searching trhough www.osflash.org and saw Red 5 (
www.osflash.org/red5), a flash server with functions like Flex's future
Adobe comms. server.
I think it can do that. I'll send my progress there if nobody is against.
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://www.openlaszlo.org/pipermail/laszlo-user/attachments/20060511/601aa18
6/attachment-0001.html
------------------------------
Message: 4
Date: Thu, 11 May 2006 11:03:07 -0400
From: "William Krick" <[EMAIL PROTECTED]>
Subject: Re: [Laszlo-user] newbie question
To: "Fernando Martin Palermo" <[EMAIL PROTECTED]>,
<[email protected]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="us-ascii"
When you run it as a SOLO application on a webserver (non-proxied mode), you
only need to upload the one main SWF file along with any other resource
files that are loaded at runtime (ones that are not already compiled into
the SWF).
If you run it as a proxied application using the full OpenLaszlo server,
then you need to upload all the LZX files and all the resources your app
needs... JPG, SWF, GIF, PNG, XML, MP3, etc...
-----Original Message-----
From: Fernando Martin Palermo [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 10, 2006 7:07 PM
To: [email protected]
Subject: [Laszlo-user] newbie question
i have lot of .lzx files and .swf. When i upload that files in the
server, i need upload ths .lzx files, or only need upload the swf files ?
Thank
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user
------------------------------
Message: 5
Date: Thu, 11 May 2006 08:20:38 -0700
From: kathryn aaker <[EMAIL PROTECTED]>
Subject: Re: [Laszlo-user] About refreshing data
To: "St?phane ." <[EMAIL PROTECTED]>
Cc: [email protected]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=UTF-8; format=flowed
If you're only trying to update the client with data, you have a few
options besides Comm Server/Red5, which may be a bit heavy-handed.
Among them,
- Have your laszlo application poll for updates, every 10 seconds or
however long makes sense.
- Use the (currently unsupported by Laszlo) XMLSocket object
(ActionScript) to receive "update" events, and either have the new data
pushed in through the socket, or use that to trigger an update through
the normal data request channel.
I'm using the latter of the two on a project now, and it's working well-
it's light enough that I could switch to a polling method later on with
ease.
St?phane . wrote:
> In a old post, i've asked if it's possible to refresh data on a client
> program when another client program is modifying database table n_uplets.
> I've been searching trhough www.osflash.org <http://www.osflash.org> and
> saw Red 5 (www.osflash.org/red5 <http://www.osflash.org/red5>), a flash
> server with functions like Flex's future Adobe comms. server.
> I think it can do that. I'll send my progress there if nobody is against.
> Thanks.
------------------------------
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user
End of Laszlo-user Digest, Vol 19, Issue 17
*******************************************
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user