Newbie question:
What's the correct syntax for creating html tables in Seaside? I've seen a few ways floating around, not sure if they're up to date. John _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
using html as the renderer, you should do:
html table with:[ html tableRow with: [ html tableData with: [] ] ] of course you can leave out the "with" messag but for having the code ready for further purposes you should use "with". later on you could do the following (if necessary) html table id: 'any_id'; class: 'any_class'; with: [ anything ]. John Brochan Collison schrieb: Newbie question: -- www.peter-osburg.de _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by John Brochan Collison
(html table)
cellspacing: 0; with: [html tableHead: [html tableRow: [html tableData: 'Name']]; tableBody: [html tableRow: [html tableData: 'John']]; tableFoot: [html tableRow: [html tableData: 'Total: 1']]] Cheers, -Boris -- +1.604.689.0322 DeepCove Labs Ltd. 4th floor 595 Howe Street Vancouver, Canada V6C 2T5 http://tinyurl.com/r7uw4 [hidden email] CONFIDENTIALITY NOTICE This email is intended only for the persons named in the message header. Unless otherwise indicated, it contains information that is private and confidential. If you have received it in error, please notify the sender and delete the entire message including any attachments. Thank you. > -----Original Message----- > From: [hidden email] [mailto:seaside- > [hidden email]] On Behalf Of John Brochan Collison > Sent: Friday, April 27, 2007 1:45 PM > To: Seaside - general discussion > Subject: [Seaside] Creating html tables > > Newbie question: > > What's the correct syntax for creating html tables in Seaside? I've > seen a few ways floating around, not sure if they're up to date. > > John > _______________________________________________ > 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 |
Then there's also WATableReport,
-Boris -- +1.604.689.0322 DeepCove Labs Ltd. 4th floor 595 Howe Street Vancouver, Canada V6C 2T5 http://tinyurl.com/r7uw4 [hidden email] CONFIDENTIALITY NOTICE This email is intended only for the persons named in the message header. Unless otherwise indicated, it contains information that is private and confidential. If you have received it in error, please notify the sender and delete the entire message including any attachments. Thank you. > -----Original Message----- > From: [hidden email] [mailto:seaside- > [hidden email]] On Behalf Of Boris Popov > Sent: Friday, April 27, 2007 1:51 PM > To: Seaside - general discussion > Subject: RE: [Seaside] Creating html tables > > (html table) > cellspacing: 0; > with: > [html > tableHead: [html tableRow: [html tableData: 'Name']]; > tableBody: [html tableRow: [html tableData: 'John']]; > tableFoot: [html tableRow: [html tableData: 'Total: 1']]] > > Cheers, > > -Boris > > -- > +1.604.689.0322 > DeepCove Labs Ltd. > 4th floor 595 Howe Street > Vancouver, Canada V6C 2T5 > http://tinyurl.com/r7uw4 > > [hidden email] > > CONFIDENTIALITY NOTICE > > This email is intended only for the persons named in the message > header. Unless otherwise indicated, it contains information that is > private and confidential. If you have received it in error, please > notify the sender and delete the entire message including any > attachments. > > Thank you. > > > -----Original Message----- > > From: [hidden email] [mailto:seaside- > > [hidden email]] On Behalf Of John Brochan > > Sent: Friday, April 27, 2007 1:45 PM > > To: Seaside - general discussion > > Subject: [Seaside] Creating html tables > > > > Newbie question: > > > > What's the correct syntax for creating html tables in Seaside? I've > > seen a few ways floating around, not sure if they're up to date. > > > > John > > _______________________________________________ > > 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 |
In reply to this post by Peter Osburg-2
Thanks, that works perfectly.
John On 27 Apr 2007, at 13:50, Peter Osburg wrote: using html as the renderer, you should do: _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Newbie to Newbie,
Here is a format David Shaffer set me up with (I hope I have interpreted correctly David?). Don't pay any attention to the input syntax as apparently you should be using canvas but I don't know how to yet. - Note if anyone does have some worked examples of canvas or knows where some thorough tutorials are that would be great.
Also - 'Is there any place set up where simple pieces of code like this are kept so that us Newbies can hunt around and see how things work - kind of like
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.oswd.org/" target="_blank">http://www.oswd.org/ for style sheets. If not can we set one up? Even if we could mimic
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.oswd.org/" target="_blank">http://www.oswd.org/ just on the style sheet side it might help encourage more people to use Smalltalk and Seaside.
Anyway code is as follows - Any comments from the Pro's would be awesome:
renderContentOn: html
html divClass: 'contents' with: [html heading: 'Table Examples'. html table: [html tableRow: [html cssClass: 'col1'; tableData: 'Name:'. html cssClass: 'col2'; tableData: [html textInputWithValue: [] callback: []]. html cssClass: 'col3'; tableData: [html anchorWithAction: [] text: 'Edit']]. html html tableRow: [html cssClass: 'col1'; tableData: 'Gender:'. html cssClass: 'col2'; tableData: [| group | group := html radioGroup. html radioButtonInGroup: group selected: [] callback: []. html text: 'Male'. html radioButtonInGroup: group selected: [] callback: []. html text: 'Female']. html cssClass: 'col3'; tableData: [html anchorWithAction: [] text: 'Edit']]]] With the following Style Sheet:
style
^' .contents { .contents table{ .contents td.col1{ .contents td.col2{ .contents td.col3{ .contents input.text{ .contents imput.radio{ On 4/27/07, John Brochan Collison <[hidden email]> wrote:
_______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Free forum by Nabble | Edit this page |