Creating html tables

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

Creating html tables

John Brochan Collison
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
Reply | Threaded
Open this post in threaded view
|

Re: Creating html tables

Peter Osburg-2
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:

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



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

RE: Creating html tables

Boris Popov, DeepCove Labs (SNN)
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
Reply | Threaded
Open this post in threaded view
|

RE: Creating html tables

Boris Popov, DeepCove Labs (SNN)
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
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
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Creating html tables

John Brochan Collison
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:

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:

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



--
www.peter-osburg.de
_______________________________________________
Seaside mailing list


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

Re: Creating html tables

dirk newbold
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 {
  float: left;
  width: 100%;
  font-family: verdana;
 }

 .contents table{
  border-color: #BBBBBB;
  border-width: 1px;
  border-style: solid;
  background-color: ##DDDDDD;
  border-spacing: 3px;
 }

 .contents td.col1{
  text-align: right;
  font-family: verdana;
  font-size: 12px;
  border-right: 1px solid black;
  border-bottom: 1px solid black;
  width: 80px;
  background-color: #EEEEEE; 
  padding: 5px 5px 5px 5px;
 }

 .contents td.col2{
  text-align: left;
  font-family: verdana;
  font-size: 12px;
  border-left: 1px solid black;
  border-bottom: 1px solid black;
  width: 300px;
  background-color: #EEEEEE; 
  padding: 5px 5px 5px 5px;
 }

 .contents td.col3{
  text-align: center;
  font-family: verdana;
  font-size: 12px;
  border-left: 1px solid black;
  border-bottom: 1px solid black;
  width: 60px;
  background-color: #EEEEEE; 
  padding: 5px 5px 5px 5px;
 }

 .contents input.text{
  width: 100%;
 }

 .contents imput.radio{
 }  
'

 
 
 
On 4/27/07, John Brochan Collison <[hidden email]> wrote:
Thanks, that works perfectly.

 
John

On 27 Apr 2007, at 13:50, Peter Osburg wrote:

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:

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]
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



--
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.peter-osburg.de/" target="_blank">www.peter-osburg.de
_______________________________________________
Seaside mailing list
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

 

_______________________________________________
Seaside mailing list
[hidden email]
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



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