Hi !
in order to simplify updating of my menu, i made a small excel sheet wich generate all ai(); lines which contains menu informations and item.
Is it possible to separe in another file this informations, and to have, in the menudata.js file a line like "include file_ai.js" for exemple ?
Thanks by advance !
elicend.
how to separe ai() information
Re: how to separe ai() information
This is going to be a question for Andy.
However, IMHO, it sounds to me like you've made a lot of extra work for yourself. Also, I'm not sure how you're going to save an .xls format as a .js file.
However, IMHO, it sounds to me like you've made a lot of extra work for yourself. Also, I'm not sure how you're going to save an .xls format as a .js file.
John
Re: how to separe ai() information
well, it is really simple. Excel is able to create a txt file, and you call it as you want... with a .js for exemple
it is working with macros
it is working with macros
Re: how to separe ai() information
Then if what you're generating is in the same format as a menu_data.js file, simply tack a .js on the end of the name, as you suggested, and use the normal menu call to bring it in. Do not use an include statement.
John
Re: how to separe ai() information
Hi !!
you're right !!
it is working, if in the second file, i put drawmenu(); at the end. If i let it in the first file, it doesn't work !
Thanks a lot for your help !
elicend.
you're right !!
it is working, if in the second file, i put drawmenu(); at the end. If i let it in the first file, it doesn't work !
Thanks a lot for your help !
elicend.