-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I want to change the src value of a include tag on click of a link. Or a probable solution that i want is to show or hide an element in zul on click of a link.
Hello
Add a eventlistener to your button for onclick event and change the src of your include.
I have created a fiddle to do the same
http://zkfiddle.org/sample/3niieig/2-Include-SRC-change-on-button-click
Here is the API for setSrc of include. http://www.zkoss.org/javadoc/latest/zk/org/zkoss/zul/Include.html#setSrc(java.lang.String)
Harish
Asked: 2015-04-27 18:06:16 +0800
Seen: 28 times
Last updated: Apr 28 '15
Problem binding values to a composite component
How to access static member field of a class in zul without zscript
How can i load a constant in .zul
MVVM Validator: class not found ? [closed]
MVVM tab box - delay @load until tab pane displayed?
mvvm, load or save with after or before for seach command
how to fire an event when a variable value loaded through VM
is there any event trigger from zk component on binding ?
ZK team plans to dispose of Composer EventQueues no longer in scope? [closed]
mvc or mvvm?
chillworld ( 2015-04-27 18:14:23 +0800 )edittrying mvc
sidharthchh ( 2015-04-27 20:16:53 +0800 )editecharish: I am getting a null pointer exception on setSrc()
sidharthchh ( 2015-04-28 03:40:54 +0800 )editDid you wired the include correct?
chillworld ( 2015-04-28 05:04:45 +0800 )editPlease check if your include object is being wired properly, if you are using mvc than check the spelling of id in your include, if you are using mvvm you have to get the object of include and change it.
echarish ( 2015-04-28 05:31:04 +0800 )edit