if (!file) file = "file.xml" // or perhaps some algorithm to generate your file name.Hi sorry I was too fast to answer but I'm trying your solution and in fact using an algorithm to generate my file name.
That's because I want every submenu to be independent to have a diferent quantity of items in it.
Now the problem is your code wont generate an inexistent file, the file must exist beforehand :-(
Here my code:
| Code: : |
var file = obj.data.selectFile[0].src;
if (!file) file = "flashblocks/data/USICdataFiles_template/" + obj.target.editblockID + ".xml"
|