Tags:
create new tag
, view all tags

Question

I am trying to use Conditional Comments, but when I put:

   <!-- [if IE]>
   <p>This only appears in Internet Explorer</p>
   <![endif]-->

TWIKI automatically rendered some "<" ">" characters transforming in "&gt;" and "&lt;":

   <!-- [if IE]&gt;
   <p>This only appears in Internet Explorer</p>
   &lt;![endif]-->

Details about Conditional Comments here

Thank you very much, -- GustavoBittencourt - 14 Aug 2005

Environment

TWiki version: TWikiRelease02Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser: IE
Categories:  

-- GustavoBittencourt - 14 Aug 2005

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

gee, thanks miscrosoft. thats horrible. if the endif tag started with !-- then i could propose a simple fix, as it is, i lost interest. does anyone want to work on a patch for DEVELOP for this?

as its not standard html, its not overy urgent though (compared to fixing bugs)

-- SvenDowideit - 14 Aug 2005

Yes, it is horrible, but it is the only way that I know to implement Horizontal CSS Menu. I am follow this page instructions: http://www.seoconsultants.com/css/menus/tutorial/

If the only way is to patch TWIKI, I could try to hack TWIKI code. Other possibility is to create a plugin. As I am newbie with TWIKI, I don't know what is the better option.

-- GustavoBittencourt - 15 Aug 2005

You can use a conditional SpreadSheetPlugin formula with $IF()

-- PeterThoeny - 15 Aug 2005

It seems like this example (a conditional based on client browser) would be another good candidate for the new "context identifiers" feature in DakarRelease (see feature discription here).

-- LynnwoodBrown - 15 Aug 2005

It would be, and if anyone cares to try and reliably identify the client browser, then %IFCONTEXT can be used to switch on it (e.g. %IFCONTEXT{"browser_IE6" then="argh" else="sigh"}%)

Peter, you suggest using %CALC and $IF. Is there a way to identify the client browser there already?

-- CrawfordCurrie - 18 Aug 2005

 
Topic revision: r8 - 2005-10-01 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.