-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello everyone,
Can anybody tell me how to refresh page on click of button??
for Example e.g
<window> <textbox /> <button> </window>
on Click of above button it should clear all or refresh page..
Thanks in advance
1. Every component object should be assigned id e.g. <textbox id="tb" />
2. handle onClick event of the button as below:
onClick="tb.setValue(null)"
Note: AJAX page should be refresh the components instead of the whole page.
hey woodyki,
Thanks for reply.. but my be you didnt understand my question..
onClick="tb.setValue(null)" will not usefull if i have more then 20 textbox and listbox.. If i could refresh my page then i dont need to write onClick="tb.setValue(null)" for every button..
Thanks
Rohit
It is possible if every component has data binding with EL or ZScript in the ZUML.
Every component will refresh when the browser refresh the page.
That is just like this forum list.
The onClick event can call the URL to refresh the page itself.
onClick="Executions.sendRedirect(URL)"
Asked: 2011-03-11 00:50:45 +0800
Seen: 1,493 times
Last updated: Dec 30 '15