Hi! I am been working on modperl for some time this is the first time I am posting a question on the mailing list. Please bear with me if I miss something or give too much information.
I have been working on a project that can be described as an online library. The modperl portion of it adds a header,navigation bar and a footer and display the content file of the book which I shall try to draw below. The URI is used to determine what ModPerl nav. bar to generate. These URI are always in the format /en/book/bookname/ch01p01.html. I have used the following in my configuration file <Location /en/book> PerlHandler MyApache::StartBook PerlLogHandler MyApache::ActivityLogger </Location> Things would have been great if the ch01p01.html was just one long html file without images,stylesheets and a number of <script src=.....> calls. The general format of these html files are as follows. <script> Javascript Global Variables set, the content file to open. chapterNum=01 chapterPage=01 </script> <tr><td> <script scr="js/bookconfig.js"> <script scr="js/"+chapterNum+"P"+chapterPage+".js"> <script scr="js/chapnav.js"> <script scr="js/footer.js"> </td></tr> Here is the layout.... ------------------------------------------------------ ModPerl Gen Header(Nav. Bar for suhjects in library) ------------------------------------------------------- ModPerl | Contents of the course Gen. | which contains html,stylesheets, Nav Bar | images,audio files,java class files for selected | in a directory below the html file book | [<-JS Nav bar mainly images>] | [<!-Footer with current page number] ------------------------------------------------------ ModPerl Footer (Copyrights info.) ----------------------------------------------------- Here are the problems/Questions that I face: 1. Since in this case each requests for a html file has multiple files that need to be downloaded by the client. Am I right to assume that the handler will act on each and every file requested file below my /en/course URI? 2.If the answer to the above question is YES? The Handler will add headers,footers for everything. What do I need to do to apply the handler logic just to the requested page and return the remaining files that are needed to complete the requested page as they are? 3. When I move these JS files outside the /en/course URI they seem to work? But now when I put them with in? It just displays the Javascript code like simple text on the browser. 4. In the Logging Phase, I need to store the last requested page as a bookmark. So if the user logs out, and logs back in it takes him to the same page. Since the html files are made up of some many requests to other files, it stores the last file it requested. It may be path to an image file,style sheet file etc... Is there any way I can circumvent this problem? Thank You very much for you help in advance. I apologize if the email is too detailed. Mark __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com