0

ZK Fisheye open url in new window

asked 2010-07-01 23:13:31 +0800

aa16816816888 gravatar image aa16816816888
9 1

updated 2010-07-01 23:14:14 +0800

I try two ways but didn't work

first way
<zscript language="javascript">
function test(){
window.open("http://www.google.com","123","height=200,width=400")
}
</zscript>

<fisheye ... onClick="javascript:test()"/>

it say ReferenceError: "window" is not defined.
=============================================

second way

<script type="text/javascript">
function test(){
window.open("http://www.google.com","sss","height=200,width=400")
}
</script>

<fisheye ... action="onclick:test()"/>
no action

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2010-07-02 01:35:55 +0800

Arsen gravatar image Arsen
384 5

If you want to open page in new browser's window, than you can use this code
Executions.getCurrent().sendRedirect("http://www.google.com", "_blank");

link publish delete flag offensive edit

answered 2010-07-02 02:09:02 +0800

aa16816816888 gravatar image aa16816816888
9 1

Thanks a lot.
It can work.

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-07-01 23:13:31 +0800

Seen: 1,242 times

Last updated: Jul 02 '10

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