Of course, that is much better. I sure like the idea of Back Door but giving up caching seems a high cost.

On Jun 13, 2009, at 5:05 AM, Jim Gay wrote:

It would appear that caching is not a good idea with that extension. I think you would be better served using Microsoft's conditional comments.


Jim

On Jun 13, 2009, at 2:26, Steven Southard <ste...@stevensouthard.com> wrote:

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
_______________________________________________
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