Thanks Klaus and Aaron, Unfortunately in the site I am working on the JavaScript is broken up into a number of files so I would need to make extensive changes to prevent jQuery being called in IE5.x.
Instead I've made changes to ensure there are no problems regardless of whether the scripts work or not. A better approach I think. In a nutshell I was hiding some elements in the page - using jQuery to set a class on the body to ensure the styles were only applied when jQuery succeeded. This worked fine when toggling JavaScript on and off in Firefox. Trouble arose in IE5.5 when jQuery worked occasionally to set the class (and hide the elements) - but my secondary script to reveal these elements when required failed every time. A lesson for all of us :) Conditional Compilation is cool though! I have used it to prevent sIFR activating (buggily) in IE5.5. Thanks again Ollie On 06/03/07, Klaus Hartl <[EMAIL PROTECTED]> wrote: > If that still doesn't work, you could use Conditional Compilation in the > same way, although that means that you have to surround your scripts > with the following: > > /[EMAIL PROTECTED] @*/ > /[EMAIL PROTECTED] (@_jscript_version >= 5.6) @*/ > > alert('I\'m not a dinosaur!'); > > /[EMAIL PROTECTED] @*/ _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/