Quiz software, teaching tools, exam revision aids, learning games, courseware authoring
Java Menus
Java menu homeJava downloadBuy a java menuJava menu help centreContact us
Java menus » Java menu knowledge base

 SEARCH

 MENUS BY TYPE

 Drop-down menus

 Animated buttons

 Tree menus

 Sliding menus

 Tab menus

 Image maps

 MENUS BY NAME

 X-Bar menus

 iPOP menus

 iSlide menus

 iTree menus

 iTab menus

 iMMap menus

 Sensomap menus

 Magic menus

 MENU DESIGN

 Menu design

 Drop-down menus

 Web buttons

 Tree menus

 Sliding menus

 Menu tabs

 Image maps

 SITE LINKS

 Home

 Java downloads

 Prices / Buying

 Support

 Company

 Contact

 New menus

 Free menus

 PARTNER SITES

 Alien Menus

 Happy Menus
Java menu knowledge base
Index compression
Return to knowledge base directory

 
Compressed content delivery: using compressed ZIP files for index files
 
The index will probably be the largest single file in an applet implementation. Using ZIP compression, a typical index file can be cut by about 85% to 90% in size - which means the resulting file will be only 1/9th or 1/10th of its original size. Particularly with larger files, this can cut download time hugely.
 
Most imint.com applets have two methods of loading indices: (1) external files; (2) parameters. For obvious reasons, you can't ZIP compress parameters. This only works with external files.
 
ZIP-compression is not yet implemented on all of our applets - check the features and version histories, and ask us if you can't find it listed.
 
To implement ZIP compression:
  1. ZIP up your index file into a ZIP file using a standard zipper utility such as winzip.
  2. The ZIP file should have only one file in it - the index file. Nothing else.
  3. Upload the ZIP file to your server, putting it in the same directory as the applet.
  4. Tell the applet to look for the ZIP file as its index source. With most imint.com applets, you use the "menufile" parameter for this. e.g.
     
    <PARAM NAME=menufile VALUE=menu.zip>
     
  5. Tell the applet that the menu content is compressed - usually done with the menusourcetype parameter (or something similar - check the parameter list for the applet you are using). If you forget to do this, you will typically end up with a blank, empty menu.

 
Dynamic compressed indices
 
If you are dynamically generating an index using a server-side programme to construct an index on the basis of a database subset, your server-side scripting language may possess modules for ZIP compression.
  1. Java-based server-side programming has easily usable ZIP compression modules.
  2. If you are using .NET or other Microsoft server technologies, a customer of ours has reported an open source library from which he was successfully able to construct a dynamic zipped index generator for imint.com applets.
  3. PHP can handle dynamically generated ZIP files - we can supply you with additional help in this area.

 

 
java menu