is there an working example for the event ‘onButtonClick’? I like your buttons for submit, but I can’t send data, because the event is never call ( I use firebug for see any action, when I click the buttons in your examples … but nothing). I have click the button ever and ever …
Actually onButtonClick event is called for UL init too, but in case of this init there is no shared form instance to call attachEvent(“onButtonClick”,function(){}) to attach user handler.
We’ll add it, but if you need working UL init right now, we can create a demo for you.
Thanks, but your work is really good enough for me! I work with the json init and this work fine for me! If you add these feature in the next release - everything is okay
Thanks for the code.
I am having a few problems enabling validation on a “UL Init” constructed form, using the init procedure below:
This is a HTML code fragment for UL:
Card Number
This is the Jscript:
function doOnULInit( formName ){
var dhxFormSearchWinObj = window[formName];
dhxFormSearchWinObj.setSkin(‘dhx_black’);
dhxFormSearchWinObj.attachEvent(“onValidateError”, function (input, value){
alert(‘input=’+input+’ value=’+value);
});
}
Two issues:
(1) When I click “Search Now” I do not get a validation error on the empty text input field.
So I’m not sure that command=“validate” works or validate=“NotEmpty” is recognized.
(2) The alert message on attachEvent is not triggered when I submit on empty text field.
But setSkin() function does work, so I know that attachEvent() is executed.
Any ideas what I am doing wrong?
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan