08-25-2008, 09:29 AM
08-25-2008, 09:59 AM
This is called conditional compilation.
rnd me is entirely corrrect. I guess that I misunderstood the question.
I understood this to mean that he was already familiar with conditional comments. As indeed it seems he was.
Lottery: A tax on people who are bad at math.
08-25-2008, 10:10 AM
for a whole file, conditional comments are a lot simpler.
plus, conditional compilation prevents compilation of your code, and forces packaging to be done by hand. most compressors for instance, throw away comments, breaking your IE version...
<![if !IE]><script src="myExternalJS.js"></script><![endif]>
08-25-2008, 10:24 AM
hmm... wierd I was using conditional comments but they didn't work for anything other than IE, but I copied yours and it worked, Guess I was writing it wrong. THANKS!
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.