generating dynamic id:#name for component inside a table

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

generating dynamic id:#name for component inside a table

Gilles Schtickzelle
Hello,

I have a table built like this

html table: [
   collection1 do: [ :x |
           html tableRow: [ collection2 do: [:y |
                 html tableData: [ html checkBox
                                                id: #checkBoxName
                                                .....] ] ] ] ]

What I'd like is to have a different #checkBoxName for each so I can set one depending of the function of the other with a ((html jQuery: #checkBoxNameXY) attributeAt: 'checked' put: (html jQuery this attributeAt: 'disabled')) or something like it.

How should I proceed to achieve this?

Thanks
Gilles

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

generating dynamic id:#name for component inside a table

Carlos Crosetti-3
Hi, I am with the same table code in the aim of implementing a multiple selection list within a form, so the User may select several, or one of the checkboxes and apply some function to the selection.
 
what I got is when selecting all and hitting submit, the form renders all the selected items, but when checking on one or a few, the form renders none.
 
Regards, Carlos
----- Original Message -----
Sent: Saturday, November 20, 2010 9:15 AM
Subject: [Seaside] generating dynamic id:#name for component inside a table

Hello,

I have a table built like this

html table: [
   collection1 do: [ :x |
           html tableRow: [ collection2 do: [:y |
                 html tableData: [ html checkBox
                                                id: #checkBoxName
                                                .....] ] ] ] ]

What I'd like is to have a different #checkBoxName for each so I can set one depending of the function of the other with a ((html jQuery: #checkBoxNameXY) attributeAt: 'checked' put: (html jQuery this attributeAt: 'disabled')) or something like it.

How should I proceed to achieve this?

Thanks
Gilles


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

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

RE: generating dynamic id:#name for component inside a table

Robert Sirois
In reply to this post by Gilles Schtickzelle
If your x and y objects don't have unique IDs themselves, try something along these lines (just keep in mind, nothing will "remember" (keep state for the IDs) which one is which, but they will be in a logical order at least).

| xID yID | xID := 0. yID := 0.

html table: [

    collection1 do: [ :x | xID := xID + 1.

        html tableRow: [

            collection2 do: [:y | yID := yID + 1.

                html tableData: [

                    html checkBox
                        id: xID asString, 'x', yID asString;
                        " ... "

                ]
            ]
        ]
    ]
].


(Subject to errors as I don't have Smalltalk up)
RS


Date: Sat, 20 Nov 2010 13:15:06 +0100
From: [hidden email]
To: [hidden email]
Subject: [Seaside] generating dynamic id:#name for component inside a table

Hello,

I have a table built like this

html table: [
   collection1 do: [ :x |
           html tableRow: [ collection2 do: [:y |
                 html tableData: [ html checkBox
                                                id: #checkBoxName
                                                .....] ] ] ] ]

What I'd like is to have a different #checkBoxName for each so I can set one depending of the function of the other with a ((html jQuery: #checkBoxNameXY) attributeAt: 'checked' put: (html jQuery this attributeAt: 'disabled')) or something like it.

How should I proceed to achieve this?

Thanks
Gilles

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

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

Re: generating dynamic id:#name for component inside a table

Philippe Marschall
In reply to this post by Gilles Schtickzelle
2010/11/20 Gilles Schtickzelle <[hidden email]>:

> Hello,
>
> I have a table built like this
>
> html table: [
>    collection1 do: [ :x |
>            html tableRow: [ collection2 do: [:y |
>                  html tableData: [ html checkBox
>                                                 id: #checkBoxName
>                                                 .....] ] ] ] ]
>
> What I'd like is to have a different #checkBoxName for each so I can set one
> depending of the function of the other with a ((html jQuery:
> #checkBoxNameXY) attributeAt: 'checked' put: (html jQuery this attributeAt:
> 'disabled')) or something like it.
>
> How should I proceed to achieve this?
html nextId
should give you an id.

Cheers
Philippe

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

jQuery - tablesorter

Carlos Crosetti-3
In reply to this post by Robert Sirois
Hi, is there a sample or tutorial showin g how to integrate the table sorter_
 
 
Regards, Carlos

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

Re: jQuery - tablesorter

SebastianHC
Hi!

Maybe you can ahve a look at the http://vastgoodies.com there are two implementations of it includeing an Example and even one includeing a sortable tablesorter implementation.

Sebastian

Am 27.11.2010 17:18, schrieb Carlos Crosetti:
Hi, is there a sample or tutorial showin g how to integrate the table sorter_
 
 
Regards, Carlos
_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


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

Re: jQuery - tablesorter

Carlos Crosetti-3
Thank, I as able to find the entry in the VA Goodies site, but not sure how to peeer or download the code....
----- Original Message -----
Sent: Saturday, November 27, 2010 6:04 PM
Subject: Re: [Seaside] jQuery - tablesorter

Hi!

Maybe you can ahve a look at the http://vastgoodies.com there are two implementations of it includeing an Example and even one includeing a sortable tablesorter implementation.

Sebastian

Am 27.11.2010 17:18, schrieb Carlos Crosetti:
Hi, is there a sample or tutorial showin g how to integrate the table sorter_
 
 
Regards, Carlos
_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


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

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

Re: jQuery - tablesorter

Carlos Crosetti-3
In reply to this post by SebastianHC
Sebastian, now I learnt the method to download from the vasetgoodies site, what is the file format and how can be managed to isolate te smalltalk code? Any clues?
----- Original Message -----
Sent: Saturday, November 27, 2010 6:04 PM
Subject: Re: [Seaside] jQuery - tablesorter

Hi!

Maybe you can ahve a look at the http://vastgoodies.com there are two implementations of it includeing an Example and even one includeing a sortable tablesorter implementation.

Sebastian

Am 27.11.2010 17:18, schrieb Carlos Crosetti:
Hi, is there a sample or tutorial showin g how to integrate the table sorter_
 
 
Regards, Carlos
_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


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

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

Re: jQuery - tablesorter

John McKeon
Carlos
There is a widget box for that



On Sat, Nov 27, 2010 at 9:07 PM, Carlos Crosetti <[hidden email]> wrote:
Sebastian, now I learnt the method to download from the vasetgoodies site, what is the file format and how can be managed to isolate te smalltalk code? Any clues?
----- Original Message -----
Sent: Saturday, November 27, 2010 6:04 PM
Subject: Re: [Seaside] jQuery - tablesorter

Hi!

Maybe you can ahve a look at the http://vastgoodies.com there are two implementations of it includeing an Example and even one includeing a sortable tablesorter implementation.

Sebastian

Am 27.11.2010 17:18, schrieb Carlos Crosetti:
Hi, is there a sample or tutorial showin g how to integrate the table sorter_
 
 
Regards, Carlos
_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


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


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




--
http://john-mckeon.us

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

Re: jQuery - tablesorter

Carlos Crosetti-3
cool, i just loaded this package into my seaside image and got tested all the widgets
 
thanks so mucch
----- Original Message -----
Sent: Sunday, November 28, 2010 8:00 AM
Subject: Re: [Seaside] jQuery - tablesorter

Carlos
There is a widget box for that



On Sat, Nov 27, 2010 at 9:07 PM, Carlos Crosetti <[hidden email]> wrote:
Sebastian, now I learnt the method to download from the vasetgoodies site, what is the file format and how can be managed to isolate te smalltalk code? Any clues?
----- Original Message -----
Sent: Saturday, November 27, 2010 6:04 PM
Subject: Re: [Seaside] jQuery - tablesorter

Hi!

Maybe you can ahve a look at the http://vastgoodies.com there are two implementations of it includeing an Example and even one includeing a sortable tablesorter implementation.

Sebastian

Am 27.11.2010 17:18, schrieb Carlos Crosetti:
Hi, is there a sample or tutorial showin g how to integrate the table sorter_
 
 
Regards, Carlos
_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


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


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




--
http://john-mckeon.us


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

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

Re: jQuery - tablesorter

SebastianHC
Hi Carlos,

you 'll need a VAST isntallation to l+have a look into the sources. The binary source files provided at vastgoodies are intendet for VAST imports.

If you like, I can send you a file out of the sources enabling you to brouse the source in a texteditor.
You won't be able to file it into Pharo in Squeak without doing further changes.
But it is as readable as a Squeak fileout.

WidgetBox is fine, too. The VAST implementation allows a little more flexible Table rows including table within a row for example.....

Sebastian


Am 28.11.2010 15:46, schrieb Carlos Crosetti:
cool, i just loaded this package into my seaside image and got tested all the widgets
 
thanks so mucch
----- Original Message -----
Sent: Sunday, November 28, 2010 8:00 AM
Subject: Re: [Seaside] jQuery - tablesorter

Carlos
There is a widget box for that



On Sat, Nov 27, 2010 at 9:07 PM, Carlos Crosetti <[hidden email]> wrote:
Sebastian, now I learnt the method to download from the vasetgoodies site, what is the file format and how can be managed to isolate te smalltalk code? Any clues?
----- Original Message -----
Sent: Saturday, November 27, 2010 6:04 PM
Subject: Re: [Seaside] jQuery - tablesorter

Hi!

Maybe you can ahve a look at the http://vastgoodies.com there are two implementations of it includeing an Example and even one includeing a sortable tablesorter implementation.

Sebastian

Am 27.11.2010 17:18, schrieb Carlos Crosetti:
Hi, is there a sample or tutorial showin g how to integrate the table sorter_
 
 
Regards, Carlos
_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


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

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




--
http://john-mckeon.us


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


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

Re: jQuery - tablesorter

Carlos Crosetti-3
Thanks for your help, I was able to run both the table sorter and the JQueryWidegetBox from the Seaside 3.0 one-click experience with Squeak.
 
Regards, Carlos
----- Original Message -----
Sent: Sunday, November 28, 2010 2:20 PM
Subject: Re: [Seaside] jQuery - tablesorter

Hi Carlos,

you 'll need a VAST isntallation to l+have a look into the sources. The binary source files provided at vastgoodies are intendet for VAST imports.

If you like, I can send you a file out of the sources enabling you to brouse the source in a texteditor.
You won't be able to file it into Pharo in Squeak without doing further changes.
But it is as readable as a Squeak fileout.

WidgetBox is fine, too. The VAST implementation allows a little more flexible Table rows including table within a row for example.....

Sebastian


Am 28.11.2010 15:46, schrieb Carlos Crosetti:
cool, i just loaded this package into my seaside image and got tested all the widgets
 
thanks so mucch
----- Original Message -----
Sent: Sunday, November 28, 2010 8:00 AM
Subject: Re: [Seaside] jQuery - tablesorter

Carlos
There is a widget box for that



On Sat, Nov 27, 2010 at 9:07 PM, Carlos Crosetti <[hidden email]> wrote:
Sebastian, now I learnt the method to download from the vasetgoodies site, what is the file format and how can be managed to isolate te smalltalk code? Any clues?
----- Original Message -----
Sent: Saturday, November 27, 2010 6:04 PM
Subject: Re: [Seaside] jQuery - tablesorter

Hi!

Maybe you can ahve a look at the http://vastgoodies.com there are two implementations of it includeing an Example and even one includeing a sortable tablesorter implementation.

Sebastian

Am 27.11.2010 17:18, schrieb Carlos Crosetti:
Hi, is there a sample or tutorial showin g how to integrate the table sorter_
 
 
Regards, Carlos
_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


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

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




--
http://john-mckeon.us


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


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

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