0

conditions in zhtml

asked 2008-06-19 12:09:37 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=5041704

By: zinin

I want to output some HTML code only for Firefox, but not IE.
How I can do this in zhtml ?

For example:
<p>1111</p>
<div class="xxxx">
only for firefox div
</div>
<p>2222</p>

I want to see div.xxxx only if Executions.getCurrent().isGecko().

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2008-06-20 01:52:20 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=5043147

By: waterbottle

try this,
<zk xmlns:h="http://www.w3.org/1999/xhtml">
<h:div if="${self.desktop.execution.gecko}">Hello, Gecko!</h:div>
<h:div if="${self.desktop.execution.explorer}">Hello, Explorer!</h:div> </zk>

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: 2008-06-19 12:09:37 +0800

Seen: 107 times

Last updated: Jun 20 '08

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