Hi there… this is killing me. I have a simple radio button and by the event OnClick I want to have a simple client side alert(“hello”)
The problem is that I get a Post http to the server too when I click on my radio button. So when I click on the radio button it post http to server. I have been trying under Events > Server Options > “No update” > “No Submission” etc but it looks like nothing help stopping “post http”.
How do I do a single simple event without any call to server??? thanks
Scrip editor… that I wrote in previous message, I was wrong. how do I avoid onclick radiobutton script something on only client side without any post http ???
Subject: Use the client script editor/action tab instead of the server one
If I’m understanding you correctly, it looks like you’re using the wrong script editor tab.
1)Click on the radio button to select it
2)Go to the events tab (this is seperated into 2 sections. On the left is events/reference/outline and to the right are your event properties)
3)On the left pane, click on the event you wish to act as a trigger (i.e. onClick)
4)On the right pane, by default you are on the server side actions tab. Make sure under the “server options” says ‘no submission’. Also make sure there are no simple actions or script editor code in place here.
5)Now switch from the server tab to the client tab on this pane and put your client side code here in the script editor section.
I’d give you some screenshots, but I don;t know how to post screenshots to this forum
I did check the Disgin-view of my xml-XPage and guess what I found in my radiobutton… “onchange=true”
And I did check the onchange property of my radiobutton and the “No update” was selected but “No submission” was NOT selected.
So after “no submission” selected it was working without any post http.
I was working on the event for onclick and didn’t notice other events because I never were there and no scripts was written there… why I just ignored them.
Anyway, the problem is solved now and I am goiing to get a better sleep tonight :))