#updateRoot: and "if ie6 do:"

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

#updateRoot: and "if ie6 do:"

John Thornborrow
Hello,

I've been using #updateRoot: to add an "if ie6 do:" block to my site to
apply style changes, but instead of IE6 rendering the style as style, it
is showing as plain text.

Here is an example of usage:

updateRoot: aRoot
  aRoot if ie6 do: [
    aRoot stylesheet add: 'body { margin: 0pt; padding: 0pt; }'
  ]

but as this screenshot shows, it is not as expected:
http://img99.imageshack.us/my.php?image=seasideie6yx2.png.

The source is a link:

<!--[if IE 6]><link rel="stylesheet" type="text/css">body { margin: 0pt;
padding: 0pt; }</link><![endif]-->

Is there something I should add to prevent it from showing?

Thanks,
John


Pinesoft Computers are registered in England, Registered number: 2914825. Registered office: 266-268 High Street, Waltham Cross, Herts, EN8 7EA



This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com

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

Re: #updateRoot: and "if ie6 do:"

Philippe Marschall
2007/10/18, John Thornborrow <[hidden email]>:

> Hello,
>
> I've been using #updateRoot: to add an "if ie6 do:" block to my site to
> apply style changes, but instead of IE6 rendering the style as style, it
> is showing as plain text.
>
> Here is an example of usage:
>
> updateRoot: aRoot
>   aRoot if ie6 do: [
>     aRoot stylesheet add: 'body { margin: 0pt; padding: 0pt; }'
>   ]
>
> but as this screenshot shows, it is not as expected:
> http://img99.imageshack.us/my.php?image=seasideie6yx2.png.
>
> The source is a link:
>
> <!--[if IE 6]><link rel="stylesheet" type="text/css">body { margin: 0pt;
> padding: 0pt; }</link><![endif]-->
>
> Is there something I should add to prevent it from showing?

Ideally you would add a semicolon behind ie6 and also send to super
but this should affect the output. If you leave out the whole
conditional comment and just do:

aRoot stylesheet add: 'body { margin: 0pt; padding: 0pt; }'

does it still display the css?

Cheers
Philippe

> Thanks,
> John
>
>
> Pinesoft Computers are registered in England, Registered number: 2914825. Registered office: 266-268 High Street, Waltham Cross, Herts, EN8 7EA
>
>
>
> This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.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: #updateRoot: and "if ie6 do:"

John Thornborrow
Hi,

I am sending to super, I neglected to add to my example.

Yes, it does display (in all browsers of course) if I use outside of if
ie6 do block, with or without the semi colon.

However, if I use

aRoot if ie6; do: [
  aRoot stylesheet contents: 'body { margin: 0pt; padding: 0pt; }'
]

it works (I also added background-color: #000; to test.)

:)

John

Philippe Marschall wrote:

> 2007/10/18, John Thornborrow <[hidden email]>:
>> Hello,
>>
>> I've been using #updateRoot: to add an "if ie6 do:" block to my site to
>> apply style changes, but instead of IE6 rendering the style as style, it
>> is showing as plain text.
>>
>> Here is an example of usage:
>>
>> updateRoot: aRoot
>>   aRoot if ie6 do: [
>>     aRoot stylesheet add: 'body { margin: 0pt; padding: 0pt; }'
>>   ]
>>
>> but as this screenshot shows, it is not as expected:
>> http://img99.imageshack.us/my.php?image=seasideie6yx2.png.
>>
>> The source is a link:
>>
>> <!--[if IE 6]><link rel="stylesheet" type="text/css">body { margin: 0pt;
>> padding: 0pt; }</link><![endif]-->
>>
>> Is there something I should add to prevent it from showing?
>
> Ideally you would add a semicolon behind ie6 and also send to super
> but this should affect the output. If you leave out the whole
> conditional comment and just do:
>
> aRoot stylesheet add: 'body { margin: 0pt; padding: 0pt; }'
>
> does it still display the css?
>
> Cheers
> Philippe
>
>> Thanks,
>> John
>>
>>
>> Pinesoft Computers are registered in England, Registered number: 2914825. Registered office: 266-268 High Street, Waltham Cross, Herts, EN8 7EA
>>
>>
>>
>> This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.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
>
>
>  
>
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside