[ANN] JQWidgetBox now with font effect, week calendar and sheet

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
41 messages Options
123
Reply | Threaded
Open this post in threaded view
|

[ANN] JQWidgetBox now with font effect, week calendar and sheet

Torsten Bergmann
The jquery widget box now additionally contains basic wrappers
for:

http://www.redredred.com.au/projects/jquery-week-calendar/
http://www.iofo.it/jquery/fonteffect/
http://jqueryplugins.weebly.com/jquerysheet.html

Download the source for Seaside 3.0. from

   htt://squeaksource.com/Seaside30Addons

and point your browser to

   http://localhost/browse/jquery-widgets

Bye
T.

--
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Comet

Robert Sirois
Am I correct in my understanding that Comet only works when something changes serverside? Say, one client increments a counter (as per the example), then the server pushes the new value to all connected clients.

Is there a way that Comet can be set up to push information every so often? This way being independent from any user input.

RS


Hotmail: Free, trusted and rich email service. Get it now.
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Comet

Colin Putney

On 15-Oct-09, at 10:50 AM, Robert Sirois wrote:

> Am I correct in my understanding that Comet only works when  
> something changes serverside? Say, one client increments a counter  
> (as per the example), then the server pushes the new value to all  
> connected clients.
>
> Is there a way that Comet can be set up to push information every so  
> often? This way being independent from any user input.

If you want to do periodic updates, I would recommend having the  
clients poll, rather than using Coment.

Comet is good for the case where you have events occurring at  
unpredictable times and you need to push notification of them out to  
all clients. In this case polling, is inefficient because you're  
either wasting resources by checking for events when there aren't any,  
or introducing latency when there is a new event but you're waiting  
for the next poll. There's a trade-off between efficiency and latency  
- the more frequently you poll the more resources you waste, but the  
less frequently you poll, the more latency you introduce. Comet solves  
this by using fewer HTTP requests, and sending events as they occur.

If I understand your situation correctly, you want to update clients  
on a regular schedule. It's not a counter so much as a clock that's  
being updated. In this case, polling is quite efficient. You know when  
there will be new data, so you just have to schedule the clients to  
poll at those times - high efficiency and low latency.

Colin
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Comet

Lukas Renggli
In reply to this post by Robert Sirois
> Is there a way that Comet can be set up to push information every so often?
> This way being independent from any user input.

Sure. For example you can control any client connected to the
CTCounter application with something along the following lines from a
workspace:

CTCounter model count: 321.
CTCounter pusher javascript: [ :script |
        script << (script jQuery: #count)
                text: CTCounter model count ].

Cheers,
Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

jQuery tabs

Robert Sirois
In reply to this post by Robert Sirois
I'm goin' all out with questions today I guess heh. The following is the functional test for the jQuery tabs. On the second to last line there is a method called #fullURL. I browsed it, but frankly I have no idea what it does. The anchors set up in tabs do not render anything in the tab without that method being called. What does it do and how does it work? Just out of curiosity.

renderContentOn: html
    html div
        script: html jQuery new tabs;
        with: [
            html unorderedList: [
                self berries keysAndValuesDo: [ :name :description |
                    html listItem: [
                        html anchor
                            url: (html jQuery ajax
                                html: [ :h | h text: description ];
                                fullUrl);
                            with: name ] ] ] ]


RS


Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. Sign up now.
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: jQuery tabs

Lukas Renggli
> does. The anchors set up in tabs do not render anything in the tab without
> that method being called. What does it do and how does it work? Just out of
> curiosity.

That's how the jQueryUI tabs work. If you want to load the contents of
the tabs lazily jQueryUI expects exactly this kind of HTML template
where the load actions are anchors within an unordered list. See the
jQueryUI documentation for details:
<http://jqueryui.com/demos/tabs/#Ajax_mode>.

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: [ANN] JQWidgetBox now with font effect, week calendar and sheet

Robert Sirois
In reply to this post by Torsten Bergmann
Is there an addon for something like Prototype's periodic updater? I noticed there are a few out there, but is there a Seaside wrapper for them?

RS

> Date: Wed, 14 Oct 2009 13:03:02 +0200
> From: [hidden email]
> To: [hidden email]; [hidden email]
> Subject: [Seaside] [ANN] JQWidgetBox now with font effect, week calendar and sheet
>
> The jquery widget box now additionally contains basic wrappers
> for:
>
> http://www.redredred.com.au/projects/jquery-week-calendar/
> http://www.iofo.it/jquery/fonteffect/
> http://jqueryplugins.weebly.com/jquerysheet.html
>
> Download the source for Seaside 3.0. from
>
> htt://squeaksource.com/Seaside30Addons
>
> and point your browser to
>
> http://localhost/browse/jquery-widgets
>
> Bye
> T.
>
> --
> GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
> Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


Hotmail: Free, trusted and rich email service. Get it now.
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: [ANN] JQWidgetBox now with font effect, week calendar and sheet

Lukas Renggli
You can tell any Javascript object

    aJavascriptObject interval: 1 second

to execute it every second.

Lukas

2009/10/16 Robert Sirois <[hidden email]>:

> Is there an addon for something like Prototype's periodic updater? I noticed
> there are a few out there, but is there a Seaside wrapper for them?
>
> RS
>
>> Date: Wed, 14 Oct 2009 13:03:02 +0200
>> From: [hidden email]
>> To: [hidden email];
>> [hidden email]
>> Subject: [Seaside] [ANN] JQWidgetBox now with font effect, week calendar
>> and sheet
>>
>> The jquery widget box now additionally contains basic wrappers
>> for:
>>
>> http://www.redredred.com.au/projects/jquery-week-calendar/
>> http://www.iofo.it/jquery/fonteffect/
>> http://jqueryplugins.weebly.com/jquerysheet.html
>>
>> Download the source for Seaside 3.0. from
>>
>> htt://squeaksource.com/Seaside30Addons
>>
>> and point your browser to
>>
>> http://localhost/browse/jquery-widgets
>>
>> Bye
>> T.
>>
>> --
>> GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
>> Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
>> _______________________________________________
>> seaside mailing list
>> [hidden email]
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
> ________________________________
> Hotmail: Free, trusted and rich email service. Get it now.
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>



--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: [ANN] JQWidgetBox now with font effect, week calendar and sheet

Robert Sirois
Oh... heh. That was gonna be my next question. I was trying to use the prototype periodic updater to change something that Comet responds to.

I added your #interval: method to an ajax callback and it seems to work just fine that way (only using CT/JQ). The other thing I was trying to do was make a separate Comet page that just... does the comet thing. This way someone could connect to a page that updates something while other peeps could connect to a page that just sees the changes.

I'll certainly try out any tips tonight :)

RS

> From: [hidden email]
> Date: Fri, 16 Oct 2009 20:43:26 +0200
> Subject: Re: [Seaside] [ANN] JQWidgetBox now with font effect, week calendar and sheet
> To: [hidden email]
>
> You can tell any Javascript object
>
> aJavascriptObject interval: 1 second
>
> to execute it every second.
>
> Lukas
>
> 2009/10/16 Robert Sirois <[hidden email]>:
> > Is there an addon for something like Prototype's periodic updater? I noticed
> > there are a few out there, but is there a Seaside wrapper for them?
> >
> > RS
> >
> >> Date: Wed, 14 Oct 2009 13:03:02 +0200
> >> From: [hidden email]
> >> To: [hidden email];
> >> [hidden email]
> >> Subject: [Seaside] [ANN] JQWidgetBox now with font effect, week calendar
> >> and sheet
> >>
> >> The jquery widget box now additionally contains basic wrappers
> >> for:
> >>
> >> http://www.redredred.com.au/projects/jquery-week-calendar/
> >> http://www.iofo.it/jquery/fonteffect/
> >> http://jqueryplugins.weebly.com/jquerysheet.html
> >>
> >> Download the source for Seaside 3.0. from
> >>
> >> htt://squeaksource.com/Seaside30Addons
> >>
> >> and point your browser to
> >>
> >> http://localhost/browse/jquery-widgets
> >>
> >> Bye
> >> T.
> >>
> >> --
> >> GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
> >> Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
> >> _______________________________________________
> >> seaside mailing list
> >> [hidden email]
> >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> >
> > ________________________________
> > Hotmail: Free, trusted and rich email service. Get it now.
> > _______________________________________________
> > seaside mailing list
> > [hidden email]
> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> >
> >
>
>
>
> --
> Lukas Renggli
> http://www.lukas-renggli.ch
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


Hotmail: Free, trusted and rich email service. Get it now.
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Server Events

Robert Sirois
In reply to this post by Lukas Renggli
Is there a way to set up a periodic event on the Seaside server independent of any clients? (I guess a Kom server, in this case.)

RS


Windows 7: Simplify your PC. Learn more.
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

jQuery widget >> destroy

Robert Sirois
In reply to this post by Lukas Renggli
A dialog is a widget so I should be able to call 'destroy' on it, right?

script: (html jQuery new dialog onClose: html jQuery this destroy);

or something like that.

RS


New Windows 7: Find the right PC for you. Learn more.
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Object References (Smaltalk)

Robert Sirois
In reply to this post by Lukas Renggli
Is there a way to get a reference to a calling object from the object that is being called?

For example in WACounter if you wanted a reference to whatever was calling #increase you could use something like #'self caller' to do that?

RS


New Windows 7: Find the right PC for you. Learn more.
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Server Events

Lukas Renggli
In reply to this post by Robert Sirois
> Is there a way to set up a periodic event on the Seaside server independent
> of any clients? (I guess a Kom server, in this case.)

No, unless you expect periodic requests. Seaside only gains control if
somebody requests something.

It is however easy in Smalltalk to have a background thread do
something from time to time:

   [ [ (Delay forDuration: 1 minute) wait. "do something" ] repeat ] fork

There is also a package that allows you to schedule events in more
sophisticated ways, but I forgot how it is called.

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Object References (Smaltalk)

Lukas Renggli
In reply to this post by Robert Sirois
> For example in WACounter if you wanted a reference to whatever was calling
> #increase you could use something like #'self caller' to do that?

"thisContext sender" gives you the calling stack frame, but I doubt
that this is any useful in application code.

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: jQuery widget >> destroy

Lukas Renggli
In reply to this post by Robert Sirois
If you want to reset the DOM to its state before the dialog, then yes.
See the documentation at:
<http://jqueryui.com/demos/dialog/#method-destroy>.

Cheers,
Lukas

2009/10/25 Robert Sirois <[hidden email]>:

> A dialog is a widget so I should be able to call 'destroy' on it, right?
>
> script: (html jQuery new dialog onClose: html jQuery this destroy);
>
> or something like that.
>
> RS
>
> ________________________________
> New Windows 7: Find the right PC for you. Learn more.
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>



--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Object References (Smaltalk)

Igor Stasenko
In reply to this post by Robert Sirois
2009/10/25 Robert Sirois <[hidden email]>:
> Is there a way to get a reference to a calling object from the object that
> is being called?
>
> For example in WACounter if you wanted a reference to whatever was calling
> #increase you could use something like #'self caller' to do that?
>
why not just pass it as an extra argument?

counter increaseRequestFrom: something.

-----
WACounter>>increaseRequestFrom: something

  something doSomething orDoNothing.
  self increase.

----

> RS
>
> ________________________________
> New Windows 7: Find the right PC for you. Learn more.
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>



--
Best regards,
Igor Stasenko AKA sig.
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: jQuery widget >> destroy

Robert Sirois
In reply to this post by Lukas Renggli
I keep getting aJQueryInstance does not understand #destroy or something like that. The method is on jQueryWidget I think.

RS

> From: [hidden email]
> Date: Mon, 26 Oct 2009 08:29:07 +0100
> Subject: Re: [Seaside] jQuery widget >> destroy
> To: [hidden email]
>
> If you want to reset the DOM to its state before the dialog, then yes.
> See the documentation at:
> <http://jqueryui.com/demos/dialog/#method-destroy>.
>
> Cheers,
> Lukas
>
> 2009/10/25 Robert Sirois <[hidden email]>:
> > A dialog is a widget so I should be able to call 'destroy' on it, right?
> >
> > script: (html jQuery new dialog onClose: html jQuery this destroy);
> >
> > or something like that.
> >
> > RS
> >
> > ________________________________
> > New Windows 7: Find the right PC for you. Learn more.
> > _______________________________________________
> > seaside mailing list
> > [hidden email]
> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> >
> >
>
>
>
> --
> Lukas Renggli
> http://www.lukas-renggli.ch
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


Windows 7: I wanted more reliable, now it's more reliable. Wow!
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: jQuery widget >> destroy

Lukas Renggli
Aha, sorry I didn't see the error in your code. You need to write:

    html jQuery new dialog onClose: html jQuery this dialog destroy

Cheers,
Lukas

2009/10/26 Robert Sirois <[hidden email]>:

> I keep getting aJQueryInstance does not understand #destroy or something
> like that. The method is on jQueryWidget I think.
>
> RS
>
>> From: [hidden email]
>> Date: Mon, 26 Oct 2009 08:29:07 +0100
>> Subject: Re: [Seaside] jQuery widget >> destroy
>> To: [hidden email]
>>
>> If you want to reset the DOM to its state before the dialog, then yes.
>> See the documentation at:
>> <http://jqueryui.com/demos/dialog/#method-destroy>.
>>
>> Cheers,
>> Lukas
>>
>> 2009/10/25 Robert Sirois <[hidden email]>:
>> > A dialog is a widget so I should be able to call 'destroy' on it, right?
>> >
>> > script: (html jQuery new dialog onClose: html jQuery this destroy);
>> >
>> > or something like that.
>> >
>> > RS
>> >
>> > ________________________________
>> > New Windows 7: Find the right PC for you. Learn more.
>> > _______________________________________________
>> > seaside mailing list
>> > [hidden email]
>> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>> >
>> >
>>
>>
>>
>> --
>> Lukas Renggli
>> http://www.lukas-renggli.ch
>> _______________________________________________
>> seaside mailing list
>> [hidden email]
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
> ________________________________
> Windows 7: I wanted more reliable, now it's more reliable. Wow!
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>



--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Server Events

hernanmd
In reply to this post by Lukas Renggli

2009/10/26 Lukas Renggli <[hidden email]>
> Is there a way to set up a periodic event on the Seaside server independent
> of any clients? (I guess a Kom server, in this case.)

No, unless you expect periodic requests. Seaside only gains control if
somebody requests something.

It is however easy in Smalltalk to have a background thread do
something from time to time:

  [ [ (Delay forDuration: 1 minute) wait. "do something" ] repeat ] fork

There is also a package that allows you to schedule events in more
sophisticated ways, but I forgot how it is called.

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Server Events

hernanmd
2009/10/26 Stephan Eggermont <[hidden email]>

> Scheduler by John Pierce. It is currently broken.
>
> http://squeaksource.com/Scheduler/

Try the attached version.

Cheers,

Hernán



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

Scheduler-hfm.21.mcz (13K) Download Attachment
123