I would like to load a new dhtmlxWindows when i click a radio button. Is it the same procedure as you use an attachEvent function and if it is what are the parameters I need to pass to the function calls to load the new dhtmlxWindows?
Thank you.
I would like to load a new dhtmlxWindows when i click a radio button. Is it the same procedure as you use an attachEvent function and if it is what are the parameters I need to pass to the function calls to load the new dhtmlxWindows?
Thank you.
You may use onChange event and getCheckedValue method to implement this ability.
Here is some example:
myForm.attachEvent("onChange", function (id, value, state){
if (myForm.getCheckedValue("name_of_radio")=="needed_value"){
// init of a new window
}
});
Can I use the same code for the select option by loading a different dhtmlx form every time i change the select options
if you still need to open this form in a new window you mau try to use this function. But you need to replace getCheckedValue() method with getItemValue() method.
But if you need to replace the form depending on the select option you may try to achieve this result by adding a simple select on a page and reload the form controlling the choice by onChange method
Could you give me an example to how to use onChange and what parameter should I pass for me to change a form based on select.