what's the purpose to make data file dynamic?

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
perldev
Mega User
Mega User
Posts: 115
Joined: Thu Aug 26, 2004 5:23 pm
Location: Chicago

what's the purpose to make data file dynamic?

Post by perldev »

I saw milonic use menu.php as data file. Why not use menu.js instead? If use menu.php, the data file will be loaded everytime. If using js, it could be cached.
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

What is the pupose of making anything dynamic on a page (not just a menu)? Could be the user membership status, the day of the week, class level (Freshman, Sophomore, etc.), specials only available on Friday - the list is endless. Sometimes the flexibility of dynamic is just needed.
John
perldev
Mega User
Mega User
Posts: 115
Joined: Thu Aug 26, 2004 5:23 pm
Location: Chicago

Post by perldev »

If the menu content changes a lot, it's better to use dynamic one. Thanks for your clearification, John.
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Absolutely correct. Otherwise you'd have a pile of _data files and mass confusion :!: :D
John
Post Reply