Hi,
This is a sort of "best practice" question. I'm developing an hta that manages a file system hierarchy (actually, it takes input for the user and generates a web page from that input).
I've structured it like this:
One table (2x2).
- first row devoted to cosmetic stuff
- second row:
1. menu: present all the time
2. content area
The menu allows the type of content the user is going to add, so I've been using the onclick event for each item in the menu to call a Sub that loads the contents of each module into the content area, but that means that all my code is concentrated in the .hta file and it's not very easy to maintain that way.
I'd like to have the code for each module in each separate page, but all the modules need access to some "global" variables, and I don't know how to get the modules to share these globals without being in the same script.
Thanks in advance!
Anthony
This is a sort of "best practice" question. I'm developing an hta that manages a file system hierarchy (actually, it takes input for the user and generates a web page from that input).
I've structured it like this:
One table (2x2).
- first row devoted to cosmetic stuff
- second row:
1. menu: present all the time
2. content area
The menu allows the type of content the user is going to add, so I've been using the onclick event for each item in the menu to call a Sub that loads the contents of each module into the content area, but that means that all my code is concentrated in the .hta file and it's not very easy to maintain that way.
I'd like to have the code for each module in each separate page, but all the modules need access to some "global" variables, and I don't know how to get the modules to share these globals without being in the same script.
Thanks in advance!
Anthony