Sure seem to be, which makes me wonder how this example shown at http://backdoor.rubyforge.org/ could ever be reliable.
<r:if cond="request.env[ 'HTTP_USER_AGENT'] =~ /MSIE/">
<!-- Internet Explorer needs some ugly hacks to render PNG images with transparency --> <div id="logo" style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src= \'/images/logo.png\',sizingMethod=\'scale\');"></div>
    <r:else>
      <!-- the rest of browsers just make it rigth -->
      <img src="/images/logo.png" id="logo" alt="Logo"/>
    </r:else>
  </r:if>
On Jun 12, 2009, at 7:19 PM, Steven Southard wrote:

Not sure if this a problem with browsers in general or Back Door but the following code only works maybe 80% of the time. It always give an answer and never gives both. It will sometimes say, "is IE" on other browsers and sometime say "not IE" on an ie browser. Using if and else has the same results. Any suggestions?

<r:if cond="request.env['HTTP_USER_AGENT'] =~ /MSIE/">
is IE
</r:if>

<r:unless cond="request.env['HTTP_USER_AGENT'] =~ /MSIE/">
not IE
</r:unless>



Steven
_______________________________________________
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

_______________________________________________
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to