0

ZK 5 component dev - load a script if is IE only [zk.wpd]

asked 2010-02-27 10:20:40 +0800

madruga0315 gravatar image madruga0315 flag of Brazil
937 2 12

Hi,

On HTML I just use IF IE tag:

<script src="/myscript.js" type="text/javascript"></script>
<!--[if IE]>
   <script src="/myscriptieworkaround.js" type="text/javascript"></script>
<! [ endif]-->

Can I configure this somehow on zk.wpd, or have to always include the IE work around script for all browsers?

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2010-03-02 04:44:03 +0800

jumperchen gravatar image jumperchen
3909 2 8
http://jumperchen.blogspo... ZK Team

You can use the following example in the zk.wpd file.

<script>if (zk.ie) {</script>
<script src="fixedIE.js"/>
<script>}</script>

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2010-02-27 10:20:40 +0800

Seen: 528 times

Last updated: Mar 02 '10

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More