TonyBenedetti
Hobbyist Programmer & Fabrik Fan
I've already learned from Hugh over in another thread how to load that common code. Thanks again, Hugh.
But I would like my form_XX.js files to be as "skinny" as possible so that I can use a crop of functions in a single "common.js" file. I have several similar forms (with the possibility of many more).
Each of the forms currently has, for example, a function to hide/show various combinations of tabbed groups based on a set of radio buttons.
I think that if I can pass "this" (i.e., the "calling" element) through the form_XX.js to the common.js, I would be able to manipulate all the necessary hiding & showing and value & label changing that I need to do. But I can't do that unless I know the table name and form name.
Of course, I know that I could hard code them in each of the form_XX.js files. But I would really like to avoid making changes to each of the form_XX.js files to accommodate any changes down the line to the common.js file.
Bottom line -- Does anyone out there in the FabComm know how to retrieve the table name and the form name from "this"? I've searched and searched the forums & wiki and I guess I'm just not insightful enough to have gleaned the answer.
Thanks for listening,
Tony
But I would like my form_XX.js files to be as "skinny" as possible so that I can use a crop of functions in a single "common.js" file. I have several similar forms (with the possibility of many more).
Each of the forms currently has, for example, a function to hide/show various combinations of tabbed groups based on a set of radio buttons.
I think that if I can pass "this" (i.e., the "calling" element) through the form_XX.js to the common.js, I would be able to manipulate all the necessary hiding & showing and value & label changing that I need to do. But I can't do that unless I know the table name and form name.
Of course, I know that I could hard code them in each of the form_XX.js files. But I would really like to avoid making changes to each of the form_XX.js files to accommodate any changes down the line to the common.js file.
Bottom line -- Does anyone out there in the FabComm know how to retrieve the table name and the form name from "this"? I've searched and searched the forums & wiki and I guess I'm just not insightful enough to have gleaned the answer.
Thanks for listening,
Tony
Last edited: