[Seaside] Re : seaside Digest, Vol 105, Issue 22

sabahi@hotmail.fr sabahi at hotmail.fr
Wed Sep 14 18:16:24 UTC 2011



Envoyé depuis mon HTC

----- Reply message -----
De : seaside-request at lists.squeakfoundation.org
Pour : <seaside at lists.squeakfoundation.org>
Objet : seaside Digest, Vol 105, Issue 22
Date : lun., sept. 12, 2011 03:52


Send seaside mailing list submissions to
	seaside at lists.squeakfoundation.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
or, via email, send a message with subject or body 'help' to
	seaside-request at lists.squeakfoundation.org

You can reach the person managing the list at
	seaside-owner at lists.squeakfoundation.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of seaside digest..."


Today's Topics:

   1. RE: client side programming (Robert Sirois)
   2. capture client events in seaside? (Larry White)
   3. Re: capture client events in seaside? (Milan Mimica)
   4. Re: [ANN] Seaside 3.0.6 release (Dale Henrichs)
   5. Re: Broken code in latest Seaside. JQLoad does not support
      'success' (John Toohey)
   6. OnClick on an "html select" not working for me in Seaside	3.0
      (Squeaker)
   7. Re: capture client events in seaside? (Larry White)


----------------------------------------------------------------------

Message: 1
Date: Sun, 11 Sep 2011 10:23:33 -0600
From: Robert Sirois <watchlala at hotmail.com>
Subject: RE: [Seaside] client side programming
To: <seaside at lists.squeakfoundation.org>
Message-ID: <BAY158-W2FF7DA55EE1E42D422BD7A6030 at phx.gbl>
Content-Type: text/plain; charset="iso-8859-1"


Hey, it works ;)
RS

> Date: Sun, 11 Sep 2011 18:20:25 +0200
> Subject: Re: [Seaside] client side programming
> From: milan.mimica at gmail.com
> To: seaside at lists.squeakfoundation.org
> 
> Oh, funny :)
> 
> On 11 September 2011 18:14, Robert Sirois <watchlala at hotmail.com> wrote:
> > data do: [:t |
> >
> > 	html document addLoadScript: ((html jQuery: t title asSymbol) live: 'click'
> > do: ((html jQuery ajax callback: [ ... ]) onComplete: html javascript
> > refresh)).
> >
> > ].
> >
> > RS
> >
> >> Date: Sun, 11 Sep 2011 18:10:42 +0200
> >> Subject: Re: [Seaside] client side programming
> >> From: milan.mimica at gmail.com
> >> To: seaside at lists.squeakfoundation.org
> >>
> >> Sorry, I didn't understand that. Could you elaborate please?
> >>
> >> On 11 September 2011 18:08, Robert Sirois <watchlala at hotmail.com> wrote:
> >> > Binding click events after the fact :/
> >> > RS
> >> >
> >>
> >>
> >>
> >>
> >> --
> >> Milan Mimica
> >> http://sparklet.sf.net
> >> _______________________________________________
> >> seaside mailing list
> >> seaside at lists.squeakfoundation.org
> >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> >
> > _______________________________________________
> > seaside mailing list
> > seaside at lists.squeakfoundation.org
> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> >
> >
> 
> 
> 
> -- 
> Milan Mimica
> http://sparklet.sf.net
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20110911/7f17c6b6/attachment-0001.htm

------------------------------

Message: 2
Date: Sun, 11 Sep 2011 14:39:24 -0400
From: Larry White <ljw1001 at gmail.com>
Subject: [Seaside] capture client events in seaside?
To: Seaside - general discussion <seaside at lists.squeakfoundation.org>
Message-ID:
	<CAMdbzVh132DW3pb0cXSrZRkdt4LONND1sdxN5KSc6tU73ykdmg at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi what is the best way to capture a client-side event in seaside?

I have a menu that includes a select box. I would like to capture the select
event so that I can update a view when the selection changes.

html select  list: (Dao new) allProducts;
            callback: [ :value |
productEntryAction value].

I guess I could wrap it in a form and put a 'go' submitButton next to it,
but that seems so 2004 ;)  Is there anything better?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20110911/fc24b910/attachment-0001.htm

------------------------------

Message: 3
Date: Sun, 11 Sep 2011 20:46:47 +0200
From: Milan Mimica <milan.mimica at gmail.com>
Subject: Re: [Seaside] capture client events in seaside?
To: Seaside - general discussion <seaside at lists.squeakfoundation.org>
Message-ID:
	<CAC+6wjo=0ecY6Ex4TM+ugC9PWeVREY_HKnVdP9Dm3ALcQRpcjg at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

html select list
  onChange: (html jQuery ajax callback: [ do your stuff here ]).


On 11 September 2011 20:39, Larry White <ljw1001 at gmail.com> wrote:
> Hi what is the best way to capture a client-side event in seaside?
> I have a menu that includes a select box. I would like to capture the select
> event so that I can update a view when the selection changes.
> html select �list: (Dao new) allProducts;
> � � � � � � callback: [ :value |
> productEntryAction value].
> I guess I could wrap it in a form and put a 'go' submitButton next to it,
> but that seems so 2004 ;) �Is there anything better?
>
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>



-- 
Milan Mimica
http://sparklet.sf.net


------------------------------

Message: 4
Date: Sun, 11 Sep 2011 11:48:29 -0700 (PDT)
From: Dale Henrichs <dhenrich at vmware.com>
Subject: Re: [Seaside] [ANN] Seaside 3.0.6 release
To: Seaside - general discussion <seaside at lists.squeakfoundation.org>
Cc: beta at seaside.gemstone.com,	Seaside - developer list
	<seaside-dev at lists.squeakfoundation.org>
Message-ID:
	<1083998611.247308.1315766909368.JavaMail.root at zimbra-prod-mbox-2.vmware.com>
	
Content-Type: text/plain; charset=utf-8

ConfigurationOfSeaside30 for 3.0.6 released.

Configuration loaded and passing tests[1] on the following platforms:

  PharoCore-1.3
  PharoCore-1.2
  PharoCore-1.1.2
  PharoCore-1.0
  Squeak4.2
  GemStone 1.0-beta.8.6

Dale
  
[1] except for a number of Swazoo test failures and errors

----- Original Message -----
| From: "Philippe Marschall" <philippe.marschall at gmail.com>
| To: "Seaside - general discussion" <seaside at lists.squeakfoundation.org>, "Seaside - developer list"
| <seaside-dev at lists.squeakfoundation.org>
| Sent: Sunday, September 11, 2011 3:40:44 AM
| Subject: [Seaside] [ANN] Seaside 3.0.6 release
| 
| We are pleased to announce the release of Seaside 3.0.6. This is a
| minor release for Seaside 3.0 and contains a wide range of
| improvements and fixes from a variety of people, some of them even
| contributing for the first time. Many of those changes were done at
| the Seaside Sprint at ESUG.
| 
| ��[1] http://code.google.com/p/seaside/wiki/Seaside306Changelog
| 
| The Seaside Team
| _______________________________________________
| seaside mailing list
| seaside at lists.squeakfoundation.org
| http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
| 


------------------------------

Message: 5
Date: Sun, 11 Sep 2011 19:47:07 -0400
From: John Toohey <jt at parspro.com>
Subject: Re: [Seaside] Broken code in latest Seaside. JQLoad does not
	support	'success'
To: Seaside - general discussion <seaside at lists.squeakfoundation.org>
Message-ID:
	<CAJOFv+jU24+Huikm+EWTk1wmC+5XJ8PR=hnVCtCK4Aei+UfVyQ at mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

JQLoad only supports 'complete' as can be seen from the #isSupported
method. However, it also has a #onSuccess method. I guess that method
should be removed, as it only fails at runtime. I have the latest SS
build from Jenkins, so this may be transitional code.

On Fri, Sep 9, 2011 at 12:50, John Toohey <jt at parspro.com> wrote:
> onSuccess is what I have, and now that throws the error from JQLoad
>
> On Fri, Sep 9, 2011 at 12:16, Nick Ager <nick.ager at gmail.com> wrote:
>> http://forum.world.st/The-option-complete-is-not-supported-in-JQLoad-td3518358.html
>>
>> On 9 September 2011 17:07, Robert Sirois <watchlala at hotmail.com> wrote:
>>>
>>> I think it was changed to complete.
>>>
>>> RS
>>>
>>> > Date: Fri, 9 Sep 2011 12:03:39 -0400
>>> > From: jt at parspro.com
>>> > To: seaside at lists.squeakfoundation.org
>>> > Subject: [Seaside] Broken code in latest Seaside. JQLoad does not
>>> > support 'success'
>>> >
>>> > Hi,
>>> >
>>> > I have the following in one of my apps :-
>>> >
>>> > html div class: self cssClass; with:[
>>> > html table
>>> > id: self tableID;
>>> > script: (html jQuery this
>>> > bind: 'julietrefresh' do: (html jQuery this load html: [:h |
>>> > self renderTable: h];
>>> > onSuccess: (html jQuery this call: self refreshScript)
>>> > ));
>>> > with:[
>>> > self renderTable: html
>>> > ]
>>> > ]
>>> >
>>> > I've just installed the latest SS into a 1.3 image, but this code
>>> > break. The debugger reports that JQLoad does not support the option
>>> > 'success'. Does anyone know how this code should be rewritten to
>>> > support the latest build?
>>> >
>>> > --
>>> > ~JT
>>> > _______________________________________________
>>> > seaside mailing list
>>> > seaside at lists.squeakfoundation.org
>>> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>>
>>> _______________________________________________
>>> seaside mailing list
>>> seaside at lists.squeakfoundation.org
>>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>>
>>
>>
>> _______________________________________________
>> seaside mailing list
>> seaside at lists.squeakfoundation.org
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>
>>
>
>
>
> --
> ~JT
>



-- 
~JT


------------------------------

Message: 6
Date: Sun, 11 Sep 2011 20:50:29 -0400
From: Squeaker <squeakman at gmail.com>
Subject: [Seaside] OnClick on an "html select" not working for me in
	Seaside	3.0
To: seaside at lists.squeakfoundation.org
Message-ID: <j4jl0f$e3h$1 at dough.gmane.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Greetings,

I am attempting to display a list and trigger a callback onClick when 
the user clicks on an item in the list.

The list is displayed correctly and when the user clicks an item I get a 
debugger saying:

'This block expects 0 argument(s) but is invoked with 1 argument(s)'

I had similar code to this working in Seaside 2.8 but it is failing in 
Seaside 3.0.

renderContentOn: html
     | listToDisplay |

     listToDisplay := OrderedCollection new.
     listToDisplay add: 'AAPL'; add: 'INTC'; add: 'GOOG'.

     (html div)
         id: 'passedPanel';
         with:
                 [(html div)
                     id: 'passed';
                     with:
                           [(html select)
                             id: 'passedList';
                             list: listToDisplay;
                             selected: (listToDisplay at: 1);
                             onClick: ((html scriptaculous updater)
                                       id: 'foo';
                                       triggerFormElement: 'passedList';
                                       callback: [self openStock])].

          		"this div is a dummy div for the click  to work  			  - its 
a kludge"
                         html div id: 'foo'.
                 ]

Any help would be appreciated.

Thanks,
Frank



------------------------------

Message: 7
Date: Sun, 11 Sep 2011 21:50:55 -0400
From: Larry White <ljw1001 at gmail.com>
Subject: Re: [Seaside] capture client events in seaside?
To: Seaside - general discussion <seaside at lists.squeakfoundation.org>
Message-ID:
	<CAMdbzVh5cN4_iVna1d8EQc+TWHG1mJgySJgCi4o_cW50O-8v7g at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

thanks. I had a feeling it involved jquery or javascript; This looks much
scary than I was expecting. ;)

On Sun, Sep 11, 2011 at 2:46 PM, Milan Mimica <milan.mimica at gmail.com>wrote:

> html select list
>  onChange: (html jQuery ajax callback: [ do your stuff here ]).
>
>
> On 11 September 2011 20:39, Larry White <ljw1001 at gmail.com> wrote:
> > Hi what is the best way to capture a client-side event in seaside?
> > I have a menu that includes a select box. I would like to capture the
> select
> > event so that I can update a view when the selection changes.
> > html select  list: (Dao new) allProducts;
> >             callback: [ :value |
> > productEntryAction value].
> > I guess I could wrap it in a form and put a 'go' submitButton next to it,
> > but that seems so 2004 ;)  Is there anything better?
> >
> >
> > _______________________________________________
> > seaside mailing list
> > seaside at lists.squeakfoundation.org
> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> >
> >
>
>
>
> --
> Milan Mimica
> http://sparklet.sf.net
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20110911/b2915ba3/attachment.htm

------------------------------

_______________________________________________
seaside mailing list
seaside at lists.squeakfoundation.org
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


End of seaside Digest, Vol 105, Issue 22
****************************************

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20110914/9360d057/attachment-0001.htm


More information about the seaside mailing list