Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <xp:view
- xmlns:xp="http://www.ibm.com/xsp/core">
- <xp:button
- value="Label"
- id="button1">
- <xp:eventHandler
- event="onclick"
- submit="true"
- refreshMode="partial"
- refreshId="refreshMe">
- <xp:this.script><![CDATA[var mySubmitValue='whatYouWantToSendHere';
- XSP.partialRefreshGet("#{id:refreshMe}", {
- params: {
- '$$xspsubmitvalue': mySubmitValue
- },
- onStart: function () {
- alert('starting');
- },
- onComplete: function () {
- alert('boo-yah!');
- },
- onError: function () {
- alert("aww shucks cletus, it done don't worked");
- }
- },{});]]></xp:this.script>
- </xp:eventHandler>
- </xp:button>
- <xp:br></xp:br>
- <xp:panel id="refreshMe">
- </xp:panel>
- </xp:view>
Advertisement
Add Comment
Please, Sign In to add comment