Hi,
I have one jsp page in which i am using dynamicform to create the forms.. I have 2 forms. I want to pass the formname to one javascript function and using that name i want to use the methods provided by that form.
<code>
isc.DynamicForm.create({
ID: "temp",width: 300,height: 100,backgroundColor:"white",
fields: [{ wrapTitle:false,name: "Id",width: "*",formItemType: "staticText", title: "userid",type: "text",
}]
});
</code>
i am passing this formname using this function ..
<code>
dochange('temp');
</code>
javascriptfile.js
<code>
dochange(){
fname=arguments[0];
uid=fname.getValue("id");
alert(uid);
}
</code>
i am not able to get the output .. it throws javascript exception that it doesn t support the method or property ...
I have one jsp page in which i am using dynamicform to create the forms.. I have 2 forms. I want to pass the formname to one javascript function and using that name i want to use the methods provided by that form.
<code>
isc.DynamicForm.create({
ID: "temp",width: 300,height: 100,backgroundColor:"white",
fields: [{ wrapTitle:false,name: "Id",width: "*",formItemType: "staticText", title: "userid",type: "text",
}]
});
</code>
i am passing this formname using this function ..
<code>
dochange('temp');
</code>
javascriptfile.js
<code>
dochange(){
fname=arguments[0];
uid=fname.getValue("id");
alert(uid);
}
</code>
i am not able to get the output .. it throws javascript exception that it doesn t support the method or property ...
Comment