in reply to calling menu bar creating code from another cgi/pl code
Yes, you could put the menu-bar code in a separate file and call it whenever required; you could also read it from a database if you wanted to.
If you're not already familiar with the idea, then you may also find it useful to read a little about Server Side Includes (SSI). I don't know what type of Web server you are using, but I think the principle is common to most servers.
Apologies if I'm telling you something you already know, but, in a nutshell, SSI allows you to put special tags into your html pages, and the server will execute the commands; some may be as simple as printing the date, but (so long as your server is configured for it) you can also execute Perl scripts, or whatever, which might then produce a menu, or footer, etc. It's a very common thing to do.
There are lots of web sites out there with information about Server Side Includes, but I've provided a couple below:
http://www.crucialp.com/resources/tutorials/web-programming/server-side-includes-ssi-tutorial.php
http://httpd.apache.org/docs/current/howto/ssi.html
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: calling menu bar creating code from another cgi/pl code
by msinfo (Sexton) on Aug 27, 2013 at 06:33 UTC |