Hi,Version 11.1, IE9, I want to raise / decrease the value of the editor on clicking the buttons of the WebNumericEditor with5 (int). So:
<
>and a smal script:<script id="igClientScript" type="text/javascript"><!--function RaiseFive() { var editor = igedit_getById("WnDstartM");var Waarde = editor.getValue() + 5;editor.ValueInt = Waarde;}// --></script> but no response? Perhaps wrong way to SET the value???
Friendly greeting,
Hi, guy(s) from onnitelenet.be.
I see that you are using some wrong method names. The method name for getting the value is get_value(), with underscore. The corresponding method for setting the value is set_value() and you should pass the new value as a parameter. Also if for some reason igedit_getById("WnDstartM") is not finding the control, you can always use the global search method $find(). So the code that is working on my machine is the following:
// var editor = igedit_getById("WnDstartM");
var editor = $find("<%= this.WnDstartM.ClientID %>");
var Waarde = editor.get_value() + 5;
editor.set_value(Waarde);
I hope this will help you and if you have some additional questions I will be happy to answer you.
Best regards,
Nikolay Alipiev
Hi,I can get the script to work when I trigger it on 'ClientEvents-Spin' but I can't distinguish UP from DOWN that way. And when I use 'ClientEvents-KeyUp' I'll get no response.So can you please tell me the right even name.Friendly greetings,Jurgen