how to separe ai() information

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
elicend
Advanced
Advanced
Posts: 16
Joined: Fri Aug 04, 2006 7:52 pm

how to separe ai() information

Post by elicend »

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.
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Re: how to separe ai() information

Post by John »

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.
John
elicend
Advanced
Advanced
Posts: 16
Joined: Fri Aug 04, 2006 7:52 pm

Re: how to separe ai() information

Post by elicend »

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 ;)
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Re: how to separe ai() information

Post by John »

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
elicend
Advanced
Advanced
Posts: 16
Joined: Fri Aug 04, 2006 7:52 pm

Re: how to separe ai() information

Post by elicend »

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.
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Re: how to separe ai() information

Post by John »

You're welcome. Glad to hear it's working.
John
Post Reply