Posted by chellman on June 30, 2009 at 8:21pm
Jump to:
| Project: | Zen |
| Version: | 7.x-3.1 |
| Component: | IE problems |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Just like it says. I'd like to be able to use a conditional-scripts[if ie] kind of notation in the .info file to add conditional javascript files for IE. I've been looking at the conditional_styles module, even hacked it up to try and implement this, but so far I'm not getting anywhere with it.
I'm attaching the hacked up version of conditional_styles in case it's any help. It's not working for me so far, and I'm hoping it's more to do with some small thing being missing than the modified code being utterly useless.
| Attachment | Size |
|---|---|
| conditional_scripts.zip | 10.03 KB |
Comments
#1
Hello,
I also need this feature which unfortunately does not exist in Zen theme.
The solution I found is to insert the script in the standard way (non-conditional) and to test the browser version inside the script.
I hope Zen will have this function in a future version.
#2
Reverting the issue title.
#3
I'd be interested with that... the problem is the order of the scripts...
#4
I'm interested too. This would be useful for employing techniques such as those inspired by the suckerfish technique, which need only include the javascript if the browsers is IE.
#5
Just tried to do exactly this and realized it doesn't work. Looking forward to this feature. Sub
#6
A must feature too.
Now, i have to hardcode in page template file.
#7
Agree with that.
#8
Just for reference IE10 will be dropping conditional comments http://blogs.msdn.com/b/ie/archive/2011/07/06/html5-parsing-in-ie10.aspx