SC tutorial question / Seaside 2.8 / html attributeAt: 'border' put: 1. problem

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

SC tutorial question / Seaside 2.8 / html attributeAt: 'border' put: 1. problem

barry10
hi,

i'm a seaside newby doing the http://www.shaffer-consulting.com/david/Seaside/RenderingBasics/index.html tutorial in seasdie 2.8 and can't get the following code work:

html attributeAt: 'border' put: 1  (see also below for full code context)


can you help?
Thanks,

Barry


btw is there a webpage with up to date syntax info ?


______________________________

the context of my code problem is:

renderContentOn: html
        html heading: 'Hello world' level: 1.
        html paragraph: 'Welcome to my Seaside web site.  In the future you
                will find all sorts of applications here such as:'.
        html attributeAt: 'border' put: 1.
        html table:
                [html tableRow:
                        [html tableData: 'Calendars'.
                        html tableData: '1/1/2006'.
                        html tableData: 'Track events, holidays etc'].
                html tableRow:
                        [html tableData: 'Todo lists'.
                        html tableData: '5/1/2006'.
                        html tableData: 'Keep track of all the things you have to remember to do.'].
                html tableRow:
                        [html tableData: 'Shopping carts'.
                        html tableData: '8/1/2006'.
                        html tableData: 'Enable your customers to shop online.']]
Reply | Threaded
Open this post in threaded view
|

Re: SC tutorial question / Seaside 2.8 / html attributeAt: 'border' put: 1. problem

Oleg Richards
Hello Barry!

I think that you should do following instead your attributeAt:

html table style: 'border: 1'; with: [
   html tableRow: [....].
   html tableRow: [....].
   html tableRow: [....].
]

Cheers, Oleg

barry10 wrote
hi,

i'm a seaside newby doing the http://www.shaffer-consulting.com/david/Seaside/RenderingBasics/index.html tutorial in seasdie 2.8 and can't get the following code work:

html attributeAt: 'border' put: 1  (see also below for full code context)


can you help?
Thanks,

Barry


btw is there a webpage with up to date syntax info ?


______________________________

the context of my code problem is:

renderContentOn: html
        html heading: 'Hello world' level: 1.
        html paragraph: 'Welcome to my Seaside web site.  In the future you
                will find all sorts of applications here such as:'.
        html attributeAt: 'border' put: 1.
        html table:
                [html tableRow:
                        [html tableData: 'Calendars'.
                        html tableData: '1/1/2006'.
                        html tableData: 'Track events, holidays etc'].
                html tableRow:
                        [html tableData: 'Todo lists'.
                        html tableData: '5/1/2006'.
                        html tableData: 'Keep track of all the things you have to remember to do.'].
                html tableRow:
                        [html tableData: 'Shopping carts'.
                        html tableData: '8/1/2006'.
                        html tableData: 'Enable your customers to shop online.']]
Reply | Threaded
Open this post in threaded view
|

Re: SC tutorial question / Seaside 2.8 / html attributeAt: 'border' put: 1. problem

Rajeev Lochan
Hi Barry,
Check out http://lists.squeakfoundation.org/pipermail/seaside/2007-July/012773.html

The code in the SC tutorial should be edited a bit for Seaside 2.7 and 2.8. The changes in the above mail holds good for 2.7 and should also work on 2.8 decently.

Hope that helps,
Rajeev



On 10/3/07, Oleg Richards <[hidden email]> wrote:

Hello Barry!

I think that you should do following instead your attributeAt:

html table style: 'border: 1'; with: [
   html tableRow: [....].
   html tableRow: [....].
   html tableRow: [....].
]

Cheers, Oleg


barry10 wrote:

>
> hi,
>
> i'm a seaside newby doing the
> http://www.shaffer-consulting.com/david/Seaside/RenderingBasics/index.html
> tutorial in seasdie 2.8 and can't get the following code work:
>
> html attributeAt: 'border' put: 1  (see also below for full code context)
>
>
> can you help?
> Thanks,
>
> Barry
>
>
> btw is there a webpage with up to date syntax info ?
>
>
> ______________________________
>
> the context of my code problem is:
>
> renderContentOn: html
>       html heading: 'Hello world' level: 1.
>       html paragraph: 'Welcome to my Seaside web site.  In the future you
>               will find all sorts of applications here such as:'.
>       html attributeAt: 'border' put: 1.
>       html table:
>               [html tableRow:
>                       [html tableData: 'Calendars'.
>                       html tableData: '1/1/2006'.
>                       html tableData: 'Track events, holidays etc'].
>               html tableRow:
>                       [html tableData: 'Todo lists'.
>                       html tableData: '5/1/2006'.
>                       html tableData: 'Keep track of all the things you have to remember to
> do.'].
>               html tableRow:
>                       [html tableData: 'Shopping carts'.
>                       html tableData: '8/1/2006'.
>                       html tableData: 'Enable your customers to shop online.']]
>

--
View this message in context: http://www.nabble.com/SC-tutorial-question---Seaside-2.8---html-attributeAt%3A-%27border%27-put%3A-1.-problem-tf4560487.html#a13015253
Sent from the Squeak - Seaside mailing list archive at Nabble.com.

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



--
Rajeev Lochan

Co-founder, AR-CAD.com

http://www.ar-cad.com
+91 9243468076 (Bangalore)
080 65355873
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: SC tutorial question / Seaside 2.8 / html attributeAt: 'border' put: 1. problem

barry10
In reply to this post by Oleg Richards
Hi Oleg,

Thanks for your reply. I now know how attributes work.

I can now do succesfully: html table style: 'font-family: Verdana, sans-serif;'; with:

Althought html table style: 'border: 1'; with: for some very strange reason still don't work,
could it be modern browsers does not render borders anymore??

Thanks,

Barry


Oleg Richards wrote
Hello Barry!

I think that you should do following instead your attributeAt:

html table style: 'border: 1'; with: [
   html tableRow: [....].
   html tableRow: [....].
   html tableRow: [....].
]

Cheers, Oleg

barry10 wrote
hi,

i'm a seaside newby doing the http://www.shaffer-consulting.com/david/Seaside/RenderingBasics/index.html tutorial in seasdie 2.8 and can't get the following code work:

html attributeAt: 'border' put: 1  (see also below for full code context)


can you help?
Thanks,

Barry


btw is there a webpage with up to date syntax info ?


______________________________

the context of my code problem is:

renderContentOn: html
        html heading: 'Hello world' level: 1.
        html paragraph: 'Welcome to my Seaside web site.  In the future you
                will find all sorts of applications here such as:'.
        html attributeAt: 'border' put: 1.
        html table:
                [html tableRow:
                        [html tableData: 'Calendars'.
                        html tableData: '1/1/2006'.
                        html tableData: 'Track events, holidays etc'].
                html tableRow:
                        [html tableData: 'Todo lists'.
                        html tableData: '5/1/2006'.
                        html tableData: 'Keep track of all the things you have to remember to do.'].
                html tableRow:
                        [html tableData: 'Shopping carts'.
                        html tableData: '8/1/2006'.
                        html tableData: 'Enable your customers to shop online.']]
Reply | Threaded
Open this post in threaded view
|

Re: SC tutorial question / Seaside 2.8 / html attributeAt: 'border' put: 1. problem

barry10
In reply to this post by Rajeev Lochan
Hi Rajeev,

Thanks for your help. Althought the solution too my problem was not in there. This helps me a lot updating other pieces of the tutorial...

Thanks!

Barry



Rajeev Lochan wrote
Hi Barry,
Check out
http://lists.squeakfoundation.org/pipermail/seaside/2007-July/012773.html

The code in the SC tutorial should be edited a bit for Seaside 2.7 and 2.8.
The changes in the above mail holds good for 2.7 and should also work
on 2.8decently.

Hope that helps,
Rajeev



On 10/3/07, Oleg Richards <orichards@mail.ru> wrote:
>
>
> Hello Barry!
>
> I think that you should do following instead your attributeAt:
>
> html table style: 'border: 1'; with: [
>    html tableRow: [....].
>    html tableRow: [....].
>    html tableRow: [....].
> ]
>
> Cheers, Oleg
>
>
> barry10 wrote:
> >
> > hi,
> >
> > i'm a seaside newby doing the
> >
> http://www.shaffer-consulting.com/david/Seaside/RenderingBasics/index.html
> > tutorial in seasdie 2.8 and can't get the following code work:
> >
> > html attributeAt: 'border' put: 1  (see also below for full code
> context)
> >
> >
> > can you help?
> > Thanks,
> >
> > Barry
> >
> >
> > btw is there a webpage with up to date syntax info ?
> >
> >
> > ______________________________
> >
> > the context of my code problem is:
> >
> > renderContentOn: html
> >       html heading: 'Hello world' level: 1.
> >       html paragraph: 'Welcome to my Seaside web site.  In the future
> you
> >               will find all sorts of applications here such as:'.
> >       html attributeAt: 'border' put: 1.
> >       html table:
> >               [html tableRow:
> >                       [html tableData: 'Calendars'.
> >                       html tableData: '1/1/2006'.
> >                       html tableData: 'Track events, holidays etc'].
> >               html tableRow:
> >                       [html tableData: 'Todo lists'.
> >                       html tableData: '5/1/2006'.
> >                       html tableData: 'Keep track of all the things you
> have to remember to
> > do.'].
> >               html tableRow:
> >                       [html tableData: 'Shopping carts'.
> >                       html tableData: '8/1/2006'.
> >                       html tableData: 'Enable your customers to shop
> online.']]
> >
>
> --
> View this message in context:
> http://www.nabble.com/SC-tutorial-question---Seaside-2.8---html-attributeAt%3A-%27border%27-put%3A-1.-problem-tf4560487.html#a13015253
> Sent from the Squeak - Seaside mailing list archive at Nabble.com.
>
> _______________________________________________
> Seaside mailing list
> Seaside@lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>



--
Rajeev Lochan

Co-founder, AR-CAD.com

http://www.ar-cad.com
+91 9243468076 (Bangalore)
080 65355873

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

Re: SC tutorial question / Seaside 2.8 / html attributeAt: 'border' put: 1. problem

Alexandre Paes
In reply to this post by barry10
Hi Barry,

 From my knowledge that is a CSS question, i believe it is not working
because you didn't specify the border-style anywhere, in this case you
should at least specify width and style as arguments to border:, try
something like:


html table style: 'border: 1px solid'; with:


Now this should work, at least if my CSS is up-to-date.

Cheers,

Alex


Em 10/03/07 11:49 barry10 escreveu:

> Hi Oleg,
>
> Thanks for your reply. I now know how attributes work.
>
> I can now do succesfully: html table style: 'font-family: Verdana,
> sans-serif;'; with:
>
> Althought html table style: 'border: 1'; with: for some very strange reason
> still don't work,
> could it be modern browsers does not render borders anymore??
>
> Thanks,
>
> Barry
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: SC tutorial question / Seaside 2.8 / htmlattributeAt: 'border' put: 1. problem

Bany, Michel
In reply to this post by barry10
For producing html with the deprecated attribute:
html table attributeAt: 'border' put: '1'; with: [

with the css:
html table style: 'border: 1px solid black'; with: [

HTH
Michel.

> -----Original Message-----
> From: [hidden email]
> [mailto:[hidden email]] On Behalf
> Of barry10
> Sent: mercredi, 3. octobre 2007 12:50
> To: [hidden email]
> Subject: Re: [Seaside] SC tutorial question / Seaside 2.8 /
> htmlattributeAt: 'border' put: 1. problem
>
>
> Hi Oleg,
>
> Thanks for your reply. I now know how attributes work.
>
> I can now do succesfully: html table style: 'font-family:
> Verdana, sans-serif;'; with:
>
> Althought html table style: 'border: 1'; with: for some very
> strange reason still don't work, could it be modern browsers
> does not render borders anymore??
>
> Thanks,
>
> Barry
>
>
>
> Oleg Richards wrote:
> >
> > Hello Barry!
> >
> > I think that you should do following instead your attributeAt:
> >
> > html table style: 'border: 1'; with: [
> >    html tableRow: [....].
> >    html tableRow: [....].
> >    html tableRow: [....].
> > ]
> >
> > Cheers, Oleg
> >
> >
> > barry10 wrote:
> >>
> >> hi,
> >>
> >> i'm a seaside newby doing the
> >>
> http://www.shaffer-consulting.com/david/Seaside/RenderingBasics/index
> >> .html tutorial in seasdie 2.8 and can't get the following
> code work:
> >>
> >> html attributeAt: 'border' put: 1  (see also below for full code
> >> context)
> >>
> >>
> >> can you help?
> >> Thanks,
> >>
> >> Barry
> >>
> >>
> >> btw is there a webpage with up to date syntax info ?
> >>
> >>
> >> ______________________________
> >>
> >> the context of my code problem is:
> >>
> >> renderContentOn: html
> >> html heading: 'Hello world' level: 1.
> >> html paragraph: 'Welcome to my Seaside web site.  In
> the future you
> >> will find all sorts of applications here such as:'.
> >> html attributeAt: 'border' put: 1.
> >> html table:
> >> [html tableRow:
> >> [html tableData: 'Calendars'.
> >> html tableData: '1/1/2006'.
> >> html tableData: 'Track events, holidays etc'].
> >> html tableRow:
> >> [html tableData: 'Todo lists'.
> >> html tableData: '5/1/2006'.
> >> html tableData: 'Keep track of all the
> things you have to remember
> >> to do.'].
> >> html tableRow:
> >> [html tableData: 'Shopping carts'.
> >> html tableData: '8/1/2006'.
> >> html tableData: 'Enable your customers
> to shop online.']]
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/SC-tutorial-question---Seaside-2.8---htm
> l-attributeAt%3A-%27border%27-put%3A-1.-problem-tf4560487.html
> #a13016532
> Sent from the Squeak - Seaside mailing list archive at Nabble.com.
>
> _______________________________________________
> 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: SC tutorial question / Seaside 2.8 / html attributeAt: 'border' put: 1. problem

barry10
In reply to this post by Alexandre Paes
@ Michel and Alex,


Thanks for your help. The reason the border didn't work was indeed a CSS question.

A table with the following CSS (copied somewhere) did eventually work.

So i'm now ready to progress the Seaside Tutorial!

Barry

text-align: center;
font-family: Verdana;
font-weight: normal;
font-size: 11px;
color: #404040;
width: 260px;
background-color: #fafafa;
border: 1px #d79900 solid;
border-collapse: collapse;
border-spacing: 0px;


Alexandre Paes-2 wrote
Hi Barry,

 From my knowledge that is a CSS question, i believe it is not working
because you didn't specify the border-style anywhere, in this case you
should at least specify width and style as arguments to border:, try
something like:


html table style: 'border: 1px solid'; with:


Now this should work, at least if my CSS is up-to-date.

Cheers,

Alex


Em 10/03/07 11:49 barry10 escreveu:
> Hi Oleg,
>
> Thanks for your reply. I now know how attributes work.
>
> I can now do succesfully: html table style: 'font-family: Verdana,
> sans-serif;'; with:
>
> Althought html table style: 'border: 1'; with: for some very strange reason
> still don't work,
> could it be modern browsers does not render borders anymore??
>
> Thanks,
>
> Barry
_______________________________________________
Seaside mailing list
Seaside@lists.squeakfoundation.org
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside