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 |
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
_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
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 |
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? should give you an id. Cheers Philippe _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
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 |
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:
_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Thank, I as able to find the entry in the VA
Goodies site, but not sure how to peeer or download the code....
_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
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?
_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Carlos
There is a widget box for that On Sat, Nov 27, 2010 at 9:07 PM, Carlos Crosetti <[hidden email]> wrote:
-- http://john-mckeon.us _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
cool, i just loaded this package into my seaside
image and got tested all the widgets
thanks so mucch
_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
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:
_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
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
_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Free forum by Nabble | Edit this page |