I am using "hier_list_box" in the dialog in adobe acrobat javascriipt programming. It works well when I have the following in the script.
dialog.load({
subl:
{
"Chapter 01":
{
"Section 1":-1, "Section 2":-2, "Section 3":-3, "Section 4":-4, "Section 5":-5, "Section 6":-6,
},
}
})
I wonder how I can make the "object literal" for function load be dynamic, so the script can read the list from a data file and dialog.load(an object variable) will do the same thing. Thanks in advance.