[Seaside] html & css basics and tutorial
p3anoman at gmail.com
Wed Nov 26 19:36:16 UTC 2008
Well, all the descendents of WATagBrush have methods for adding the usual
html div class: 'adiv'; id: 'anId'; with [ etc ].
If there are any that do not have an explicit message you can always use
attibutesAt: put: and for CSS in particular you can use the style: selector
although its use is discouraged.
Take a look at WATagBrush, a descendent of WAGenericTag not a canvas (but in
the Seaside-Canvas category).
On Wed, Nov 26, 2008 at 2:41 AM, r00t uk <r00tuk at gmail.com> wrote:
> Thanks for the response and I completely agree with you that it is not
> Seaside's place to teach HTML. What I am looking for is the Smalltalk
> expressions used to create the HTML, i.e. the "receiver, message selector
> and arguments". For example, to display a url in HTML you would type:
> <a href="http://www.w3schools.com/">Visit W3Schools!</a>
> but in Smalltalk you would type the following in a "rendering" method:
> html anchor url: 'www.3schools.com'; with: 'Visit W3Schools!'.
> Now, without using CSS, you are able to change font, font-size, style etc. of the link above, but how is it done using Smalltalk expressions?
> How, or where can I find information that will give me valid "receiver, message selector and arguments"? I assume that the "receiver" will always
> be "html".
> I hope that clarifies my question(s)? If it is a matter of just working your way through class libraries and comments (which ones?) then that
> is what I will do. Just feels like there must be an easier way for finding the information.
> Thanks again in advance
> 2008/11/25 David Mitchell <david.mitchell at gmail.com>
> I'm definitely not a CSS expert. But I've worked with frameworks that
>> generate HTML before.
>> I didn't have any trouble using our companies CSS into the apps I was
>> generating with Seaside. Just looked at the HTML and where they wanted
>> the div tags and then made sure that I generated to match.
>> On Tue, Nov 25, 2008 at 1:30 PM, John M <p3anoman at gmail.com> wrote:
>> > FWIW I was/am still in the same boat and the w3schools site was a
>> > refernce on what attributes are valid for what tags etc. Its really not
>> > Seaside's purpose to teach html, only to give a great tool for creating
>> > in a highly reusable fashion.
>> > Firebug for Firefox is an extremely useful tool for letting you see your
>> > html as rendered and showing you where your div sections end up laying
>> > etc. I could not get a handle on CSS until i started using it. (Firebug
>> > some other really useful features that you may need when you get to
>> > Hope this helps
>> > John
>> > On Mon, Nov 24, 2008 at 6:04 PM, r00t uk <r00tuk at gmail.com> wrote:
>> >> Hi
>> >> I am hoping to get some advice on how to proceed with HTML & CSS in
>> >> Squeak/Seaside as I am finding it a bit of a struggle to do the simple
>> >> stuff. I do not have any prior experience with web programming, but I
>> >> been going through the w3schools.com tutorials for guidance on
>> creating the
>> >> #style method. Its the rendering side of things which are a bit of a
>> >> struggle as all of the html is generated by Seaside.
>> >> Are there any tutorials on web programming with Seaside? I have been
>> >> spending time getting to know Smalltalk and a bit of Seaside, but up
>> >> now I have not been concentrating on learning html presentation, or
>> >> css to manage its presentation. I am somewhat surprised that there
>> >> to be no information, documentation or tutorials on rendering except
>> >> some information in the "HPI - An Introduction to Seaside" book. I am
>> >> spending a lot of time looking at methods in the example and test
>> >> which I don't mind, but I somehow doubt this is the best use of time.
>> >> do I need to look for information about html rendering methods and
>> >> values?
>> >> Thanks and sorry if I have completely missed some site that has
>> >> documentation.
>> >> _______________________________________________
>> >> seaside mailing list
>> >> seaside at lists.squeakfoundation.org
>> >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>> > _______________________________________________
>> > seaside mailing list
>> > seaside at lists.squeakfoundation.org
>> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>> seaside mailing list
>> seaside at lists.squeakfoundation.org
> seaside mailing list
> seaside at lists.squeakfoundation.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the seaside