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

Bany, Michel mbany at cincom.com
Wed Oct 3 11:12:23 UTC 2007


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: seaside-bounces at lists.squeakfoundation.org 
> [mailto:seaside-bounces at lists.squeakfoundation.org] On Behalf 
> Of barry10
> Sent: mercredi, 3. octobre 2007 12:50
> To: seaside at lists.squeakfoundation.org
> 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
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> 


More information about the Seaside mailing list