0

How to hide browser addressbar,toolbar in Zk by using Executions.getCurrent().sendRedirect() method

asked 2010-02-23 07:24:41 +0800

RabinRath gravatar image RabinRath
45 1 1

I have tried this code snippet to open a new page in a same browser itself and it is working fine, but my requirement is to hide the browser address bar, tool bar, so how could it is possible.

<button label="SendRedirect Example">
<attribute name="onClick">
<![CDATA[Executions.getCurrent().sendRedirect("/zul/hello.zul","_blank");]]>
</attribute>
</button>

Can any one help me in this regards.

thanks

delete flag offensive retag edit

5 Replies

Sort by ยป oldest newest

answered 2010-02-23 08:36:26 +0800

caclark gravatar image caclark
1753 2 5
http://clarktrips.intltwi...

You have absolutely NO control over the address bar & toolbar in the current browser window. Your only hope is to open a new window and turn all that off.

link publish delete flag offensive edit

answered 2010-02-23 23:52:32 +0800

RabinRath gravatar image RabinRath
45 1 1

Yep you are absolutely right but how to turn off the toolbar and addressbar. Do you know any attributes i have to set false or off or disabled in Zk.

link publish delete flag offensive edit

answered 2010-02-25 20:08:16 +0800

PeterKuo gravatar image PeterKuo
481 2

no attribute in ZK component or zk.xml for that.
You have to do it with java script.

link publish delete flag offensive edit

answered 2011-02-05 03:46:23 +0800

archana gravatar image archana
102

give me a java script code to hide browser addressbar and how to deploy this code in zk3.6

link publish delete flag offensive edit

answered 2011-02-10 05:30:31 +0800

henrichen gravatar image henrichen
3869 2
ZK Team

http://www.zkoss.org/javadoc/3.6/zk/org/zkoss/zk/ui/util/Clients.html#evalJavaScript(java.lang.String)

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-23 07:24:41 +0800

Seen: 893 times

Last updated: Feb 10 '11

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