Greetings,
I have to include a hack for using IE7. I need to produce html that looks like this: <a href="javascript:void(0)">item1<!--[if IE7]><!--></a><!--<![endif]--> The Smalltalk code that I have looks like this: html anchor with: 'item1'. Of course this does not generate the required hack i.e., <!--[if IE7]><!--></a><!--<![endif]--> Is the "right" way to produce the hack to subclass WAAnchorTag? How in general do people deal with having to produce specialized code (hacks) like this for IE? Thanks, Frank _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Sure,
html revealedIf ie7; do: [html anchor with: 'item1'] See #testRevealedConditionalComment for more details, 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 Squeaker > Sent: Wednesday, May 14, 2008 12:28 PM > To: [hidden email] > Subject: [Seaside] Generating html hacks for IE > > Greetings, > > I have to include a hack for using IE7. I need to produce html that > looks like this: > > <a href="javascript:void(0)">item1<!--[if > > The Smalltalk code that I have looks like this: > > html anchor with: 'item1'. > > Of course this does not generate the required hack i.e., > <!--[if IE7]><!--></a><!--<![endif]--> > > Is the "right" way to produce the hack > to subclass WAAnchorTag? > > How in general do people deal with having to produce specialized code > (hacks) like this for IE? > > Thanks, > Frank > > _______________________________________________ > 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 |
Also, #testConditionalComment,
-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: Boris Popov > Sent: Wednesday, May 14, 2008 12:31 PM > To: 'Seaside - general discussion' > Subject: RE: [Seaside] Generating html hacks for IE > > Sure, > > html revealedIf ie7; do: [html anchor with: 'item1'] > > See #testRevealedConditionalComment for more details, > > 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 Squeaker > > Sent: Wednesday, May 14, 2008 12:28 PM > > To: [hidden email] > > Subject: [Seaside] Generating html hacks for IE > > > > Greetings, > > > > I have to include a hack for using IE7. I need to produce html that > > looks like this: > > > > <a href="javascript:void(0)">item1<!--[if > > > > The Smalltalk code that I have looks like this: > > > > html anchor with: 'item1'. > > > > Of course this does not generate the required hack i.e., > > <!--[if IE7]><!--></a><!--<![endif]--> > > > > Is the "right" way to produce the hack > > to subclass WAAnchorTag? > > > > How in general do people deal with having to produce specialized > > (hacks) like this for IE? > > > > Thanks, > > Frank > > > > _______________________________________________ > > 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 |
In reply to this post by squeakman
>>>>> "Squeaker" == Squeaker <[hidden email]> writes:
Squeaker> I have to include a hack for using IE7. I need to produce html that looks Squeaker> like this: You should look at AListApart and others. I think the theory is that you should stop "hacking" for IE7, and just write good modern HTML. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[hidden email]> <URL:http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Randal L. Schwartz wrote:
> You should look at AListApart and others. Great site, AListApart, thanks for the link. _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
>>>>> "Squeaker" == Squeaker <[hidden email]> writes:
Squeaker> Randal L. Schwartz wrote: >> You should look at AListApart and others. Squeaker> Great site, AListApart, thanks for the link. And I think I was wrong on that. I think it was "IE8" where they said it was time to just use the standards. So, having a conditional for IE7 might still be reasonable, although there are often other tricks that work better. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[hidden email]> <URL:http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Boris Popov, DeepCove Labs (SNN)
#revealedIf and #if work only in the <head>. Not in the <body>. Doing
IE hacks in the body (especially for closing anchors) seems very fishy. You could do something like html anchor with: [ html text: 'item1'. html html: '<!--[if IE7]><!-->' ]. html html: '<!--<![endif]-->' Cheers Philippe 2008/5/14, Boris Popov <[hidden email]>: > Sure, > > html revealedIf ie7; do: [html anchor with: 'item1'] > > See #testRevealedConditionalComment for more details, > > 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 Squeaker > > Sent: Wednesday, May 14, 2008 12:28 PM > > To: [hidden email] > > Subject: [Seaside] Generating html hacks for IE > > > > Greetings, > > > > I have to include a hack for using IE7. I need to produce html that > > looks like this: > > > > <a href="javascript:void(0)">item1<!--[if > IE7]><!--></a><!--<![endif]--> > > > > The Smalltalk code that I have looks like this: > > > > html anchor with: 'item1'. > > > > Of course this does not generate the required hack i.e., > > <!--[if IE7]><!--></a><!--<![endif]--> > > > > Is the "right" way to produce the hack > > to subclass WAAnchorTag? > > > > How in general do people deal with having to produce specialized code > > (hacks) like this for IE? > > > > Thanks, > > Frank > > > > _______________________________________________ > > 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 |
Free forum by Nabble | Edit this page |