[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
|

RE: jQuery widget >> destroy

Robert Sirois
Ooh ok. I'll check it out tomorrow morning.

Thanks!
RS

> From: [hidden email]
> Date: Mon, 26 Oct 2009 16:47:02 +0100
> Subject: Re: [Seaside] jQuery widget >> destroy
> To: [hidden email]
>
> 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


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: jQuery widget >> destroy

Robert Sirois
In reply to this post by Lukas Renggli
Cool that works, but it didn't fix my problem... was hoping it might.

When I close the dialog and open it back up then the jQuery doesn't change elements on the dialog anymore, however the callbacks are still working, because if I close it and open it again the correct value is there (it just doesn't re-render when I do a jQuery: #blah html: [:r | r render: 'blah'].

RS

> From: [hidden email]
> Date: Mon, 26 Oct 2009 16:47:02 +0100
> Subject: Re: [Seaside] jQuery widget >> destroy
> To: [hidden email]
>
> 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


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
|

Scriptaculous in-place editor

Robert Sirois
Another random question: is there something in jQuery that is like the Scriptaculous in-place editor? That thing is nifty :p

RS


Windows 7: It works the way you want. 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: Scriptaculous in-place editor

Lukas Renggli
There are several plugins available, they haven't been integrated into
Seaside though:

   http://plugins.jquery.com/search/node/in+place+editor+type%3Aproject_project

Lukas

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

> Another random question: is there something in jQuery that is like the
> Scriptaculous in-place editor? That thing is nifty :p
>
> RS
>
> ________________________________
> Windows 7: It works the way you want. 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: Scriptaculous in-place editor

Robert Sirois
Oh ok. Some of those are pretty decent. I would volunteer to help integrate a function like that, but I wouldn't know where to start :) I suppose I could just throw a component in my app that does the same sort of thing with existing jQ functionality.

RS

> From: [hidden email]
> Date: Tue, 27 Oct 2009 17:42:49 +0100
> Subject: Re: [Seaside] Scriptaculous in-place editor
> To: [hidden email]
>
> There are several plugins available, they haven't been integrated into
> Seaside though:
>
> http://plugins.jquery.com/search/node/in+place+editor+type%3Aproject_project
>
> Lukas
>
> 2009/10/27 Robert Sirois <[hidden email]>:
> > Another random question: is there something in jQuery that is like the
> > Scriptaculous in-place editor? That thing is nifty :p
> >
> > RS
> >
> > ________________________________
> > Windows 7: It works the way you want. 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: Scriptaculous in-place editor

Lukas Renggli
Yeah, there is a single example of such a plugin in

     http://www.squeaksource.com/jqueryplugins

I guess we should collect these little packages somewhere.

Cheers,
Lukas

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

> Oh ok. Some of those are pretty decent. I would volunteer to help integrate
> a function like that, but I wouldn't know where to start :) I suppose I
> could just throw a component in my app that does the same sort of thing with
> existing jQ functionality.
>
> RS
>
>> From: [hidden email]
>> Date: Tue, 27 Oct 2009 17:42:49 +0100
>> Subject: Re: [Seaside] Scriptaculous in-place editor
>> To: [hidden email]
>>
>> There are several plugins available, they haven't been integrated into
>> Seaside though:
>>
>>
>> http://plugins.jquery.com/search/node/in+place+editor+type%3Aproject_project
>>
>> Lukas
>>
>> 2009/10/27 Robert Sirois <[hidden email]>:
>> > Another random question: is there something in jQuery that is like the
>> > Scriptaculous in-place editor? That thing is nifty :p
>> >
>> > RS
>> >
>> > ________________________________
>> > Windows 7: It works the way you want. 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
|

onScroll:

Robert Sirois
In reply to this post by Lukas Renggli
I have a draggable element inside of a div (hidden overflow, scrollbars). I changed the scroll option on the draggable to true and the scrollbars move as expected, but the onScroll: event doesn't seem to respond to this, only if you actually move the scrollbars yourself. Should that event respond to all scrolling?

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: onScroll:

Lukas Renggli
The onscroll event is not part of any specification. Some browsers
support it in some ways.

    https://developer.mozilla.org/en/DOM/window.onscroll
    http://msdn.microsoft.com/en-us/library/ms536966(VS.85).aspx

Lukas

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

> I have a draggable element inside of a div (hidden overflow, scrollbars). I
> changed the scroll option on the draggable to true and the scrollbars move
> as expected, but the onScroll: event doesn't seem to respond to this, only
> if you actually move the scrollbars yourself. Should that event respond to
> all scrolling?
>
> 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: onScroll:

Robert Sirois
Dang, there's always another layer of complication isn't there :p

My other solution is to track the mouse (onMouseDown: and onMouseMove:) in order to modify the scroll values, but that's gotta be horribly taxing on the server, I would think.

RS

> From: [hidden email]
> Date: Tue, 27 Oct 2009 18:48:16 +0100
> Subject: Re: [Seaside] onScroll:
> To: [hidden email]
>
> The onscroll event is not part of any specification. Some browsers
> support it in some ways.
>
> https://developer.mozilla.org/en/DOM/window.onscroll
> http://msdn.microsoft.com/en-us/library/ms536966(VS.85).aspx
>
> Lukas
>
> 2009/10/27 Robert Sirois <[hidden email]>:
> > I have a draggable element inside of a div (hidden overflow, scrollbars). I
> > changed the scroll option on the draggable to true and the scrollbars move
> > as expected, but the onScroll: event doesn't seem to respond to this, only
> > if you actually move the scrollbars yourself. Should that event respond to
> > all scrolling?
> >
> > 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


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
|

Progress Bar Widget

Robert Sirois
In reply to this post by Lukas Renggli
What is the best way to modify the value of a progress bar existing on a page?

RS


Windows 7: It helps you do more. Explore Windows 7.
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

renderer blocks

Robert Sirois
In reply to this post by Lukas Renggli
I usually to use:

html jQuery ajax script: [:s | s add: (aMethod: s)]

for my scripts, but in one specific case I need the original renderer ie.:

html jQuery ajax script: [:s | s add: (aMethod: html)]

I have to do it this way when returning (html javascript refresh). Why is that? Or is this another one of those children things?

RS


Windows 7: It works the way you want. 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: renderer blocks

Lukas Renggli
That's an omission, thanks for reporting.

This is fixed in:

Name: Javascript-Core-lr.66
Author: lr
Time: 28 October 2009, 8:58:16 pm
UUID: 0074cd89-9631-4440-a0cc-ddc8fb60ecce
Ancestors: Javascript-Core-jf.65

- allow the script to create new script objects

Lukas

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

> I usually to use:
>
> html jQuery ajax script: [:s | s add: (aMethod: s)]
>
> for my scripts, but in one specific case I need the original renderer ie.:
>
> html jQuery ajax script: [:s | s add: (aMethod: html)]
>
> I have to do it this way when returning (html javascript refresh). Why is
> that? Or is this another one of those children things?
>
> RS
>
> ________________________________
> Windows 7: It works the way you want. 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: renderer blocks

Robert Sirois
Thanks, Lukas! This works great now :)

RS

> From: [hidden email]
> Date: Wed, 28 Oct 2009 20:58:43 +0100
> Subject: Re: [Seaside] renderer blocks
> To: [hidden email]
>
> That's an omission, thanks for reporting.
>
> This is fixed in:
>
> Name: Javascript-Core-lr.66
> Author: lr
> Time: 28 October 2009, 8:58:16 pm
> UUID: 0074cd89-9631-4440-a0cc-ddc8fb60ecce
> Ancestors: Javascript-Core-jf.65
>
> - allow the script to create new script objects
>
> Lukas
>
> 2009/10/28 Robert Sirois <[hidden email]>:
> > I usually to use:
> >
> > html jQuery ajax script: [:s | s add: (aMethod: s)]
> >
> > for my scripts, but in one specific case I need the original renderer ie.:
> >
> > html jQuery ajax script: [:s | s add: (aMethod: html)]
> >
> > I have to do it this way when returning (html javascript refresh). Why is
> > that? Or is this another one of those children things?
> >
> > RS
> >
> > ________________________________
> > Windows 7: It works the way you want. 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


Hotmail: Trusted email with powerful SPAM protection. 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: onScroll:

Robert Sirois
In reply to this post by Lukas Renggli
Does anyone have any suggestions for dragging an object inside a scrolling window like Google Maps and friends? I've tried a few different things, some plenty worse than others, and haven't settled on anything close to reliable as of yet.

Thanks,
RS

> From: [hidden email]
> Date: Tue, 27 Oct 2009 18:48:16 +0100
> Subject: Re: [Seaside] onScroll:
> To: [hidden email]
>
> The onscroll event is not part of any specification. Some browsers
> support it in some ways.
>
> https://developer.mozilla.org/en/DOM/window.onscroll
> http://msdn.microsoft.com/en-us/library/ms536966(VS.85).aspx
>
> Lukas
>
> 2009/10/27 Robert Sirois <[hidden email]>:
> > I have a draggable element inside of a div (hidden overflow, scrollbars). I
> > changed the scroll option on the draggable to true and the scrollbars move
> > as expected, but the onScroll: event doesn't seem to respond to this, only
> > if you actually move the scrollbars yourself. Should that event respond to
> > all scrolling?
> >
> > 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: It works the way you want. 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: Scriptaculous in-place editor

Johan Brichau
In reply to this post by Lukas Renggli

This one works great:
http://www.squeaksource.com/Seaside29Addons/JQuery-EditablePlugin-DamienCassou.3.mcz

I made some changes to it for latest Seaside and support for its  
secondary callback function. In addition, I have some wrappers for  
JQuery plugins like context menu, rightclick, hoverintent, etc...

Maybe it's a good idea if I commit all those in the Seaside30Addons  
project ? http://squeaksource.com/Seaside30Addons
What do you say?

cheers
Johan


On 27 Oct 2009, at 18:23, Lukas Renggli wrote:

> Yeah, there is a single example of such a plugin in
>
>     http://www.squeaksource.com/jqueryplugins
>
> I guess we should collect these little packages somewhere.
>
> Cheers,
> Lukas
>
> 2009/10/27 Robert Sirois <[hidden email]>:
>> Oh ok. Some of those are pretty decent. I would volunteer to help  
>> integrate
>> a function like that, but I wouldn't know where to start :) I  
>> suppose I
>> could just throw a component in my app that does the same sort of  
>> thing with
>> existing jQ functionality.
>>
>> RS
>>
>>> From: [hidden email]
>>> Date: Tue, 27 Oct 2009 17:42:49 +0100
>>> Subject: Re: [Seaside] Scriptaculous in-place editor
>>> To: [hidden email]
>>>
>>> There are several plugins available, they haven't been integrated  
>>> into
>>> Seaside though:
>>>
>>>
>>> http://plugins.jquery.com/search/node/in+place+editor+type%3Aproject_project
>>>
>>> Lukas
>>>
>>> 2009/10/27 Robert Sirois <[hidden email]>:
>>>> Another random question: is there something in jQuery that is  
>>>> like the
>>>> Scriptaculous in-place editor? That thing is nifty :p
>>>>
>>>> RS
>>>>
>>>> ________________________________
>>>> Windows 7: It works the way you want. 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

----------------------------
Johan Brichau
[hidden email]




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

Re: Scriptaculous in-place editor

Lukas Renggli
> Maybe it's a good idea if I commit all those in the Seaside30Addons project
> ? http://squeaksource.com/Seaside30Addons
> What do you say?

Yes please, that would be great. The repository is publicly writeable
to encourage the contribution of such plug-ins.

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
|

Checkboxes

Robert Sirois
In reply to this post by Lukas Renggli
Just to confirm I'm getting this right:

WACheckboxTag >> #onTrue:onFalse: is evaluated in the case of a form submission or #serialize?

Also, can I use the standard ... callback: [:value | self checkboxValue: value]; ... type logic?

Thanks!
RS


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

Re: Checkboxes

Lukas Renggli
> Just to confirm I'm getting this right:
>
> WACheckboxTag >> #onTrue:onFalse: is evaluated in the case of a form
> submission or #serialize?
>
> Also, can I use the standard ... callback: [:value | self checkboxValue:
> value]; ... type logic?

Sure, the #onTrue:onFalse: is just an convenience method implemented
on top of the standard #callback: thing.

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: Checkboxes

Robert Sirois
I got what I wanted to work with a standard form submission type callback, but the checkboxes don't seem to respond to an #onChange: event such as:

... onChange: html jQuery ajax serializeThis; ...

I would assume these work as any other form element...

RS

> From: [hidden email]
> Date: Mon, 23 Nov 2009 22:08:33 +0100
> Subject: Re: [Seaside] Checkboxes
> To: [hidden email]
>
> > Just to confirm I'm getting this right:
> >
> > WACheckboxTag >> #onTrue:onFalse: is evaluated in the case of a form
> > submission or #serialize?
> >
> > Also, can I use the standard ... callback: [:value | self checkboxValue:
> > value]; ... type logic?
>
> Sure, the #onTrue:onFalse: is just an convenience method implemented
> on top of the standard #callback: thing.
>
> Lukas
>
> --
> Lukas Renggli
> http://www.lukas-renggli.ch
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


Hotmail: Trusted email with Microsoft's powerful SPAM protection. <a href='http://clk.atdmt.com/GBL/go/177141664/direct/01/ http://clk.atdmt.com/GBL/go/177141664/direct/01/ ' target='_new'>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: Checkboxes

Lukas Renggli
> I got what I wanted to work with a standard form submission type callback,
> but the checkboxes don't seem to respond to an #onChange: event such as:
>
> ... onChange: html jQuery ajax serializeThis; ...
>
> I would assume these work as any other form element...

Sure, but note the warning in the method comment on #serializeThis and
use #serializeThisWithHidden instead of #serializeThis.

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
123