|
MyWebServer | Technical Info | ||
Virtual Page Overriding Virtual Pages are dynamic pages that MyWebServer creates on the fly when ever they are requested. In contrast to normal static web pages which are html files that don't change at all and are sent by MyWebServer to a web browser when requested. Here is a list of the Virtual Pages MyWebServer provides. Favorites List Page - Contains the favorites list from your web browser. Virtual page overriding allows you to modify the way MyWebServer displays these pages by adding your own HTML fragments to the pages. Each page will have 4 possible opportunities for you to add HTML fragments. HTMLHeader Section Header Section Body Section Footer Section Adding Your Own Sections To Virtual Pages The first step would be to add a directory in your server root directory called MWS. This is where all override files are to be placed. You can create override files with any of the following file names. Just place some HTML fragments in a file, give the file one of the following names and they will be inserted into the page specified by the first part of the file name. FileDownloadHeader.html FileDownloadHTMLHeader.html FileDownloadBody.html FileDownloadFooter.html FileUploadHeader.html FileUploadHTMLHeader.html FileUploadBody.html FileUploadFooter.html FileListHeader.html FileListHTMLHeader.html FileListBody.html FileListFooter.html FavoritesHeader.html FavoritesHTMLHeader.html FavoritesBody.html FavoritesFooter.html SearchHeader.html SearchHTMLHeader.html SearchBody.html SearchFooter.html HandleSearchHeader.html HandleSearchHTMLHeader.html HandleSearchBody.html HandleSearchFooter.html SendMessageHeader.html SendMessageHTMLHeader.html SendMessageBody.html SendMessageFooter.html HandleSendMessageHeader.html HandleSendMessageHTMLHeader.html HandleSendMessageBody.html HandleSendMessageFooter.html UserListHeader.html UserListHTMLHeader.html UserListBody.html UserListFooter.html HandlePostHeader.html HandlePostHTMLHeader.html HandlePostBody.html HandlePostFooter.html WebMasterHomeHeader.html WebMasterHomeHTMLHeader.html WebMasterHomeBody.html WebMasterHomeFooter.html Navigator.html You can add your own HTML fragments to the MyWebServer virtual toolbar either above the toolbar or below the toolbar. To do this add your HTML fragments to a file and give it one of the following names. Remember to place the file in the MWS directory discussed above. NavigatorBody.html NavigatorFooter.html The difference between NavigatorBody.html and NavigatorFooter.html is that items in NavigatorBody.html Will appear above the Navigation Buttons and items in NavigatorFooter.html will appear after the Navigation Buttons. Special Entries In The MyWebServer Configuration File vpPageProperties A Page Properties String like: bgColor=#ff00ff vpTableProperties A Table Properties String like: BORDER=0 vpTHRowProperties A Table Header Row Properties String like: bgColor=#66ccff vpOddRowProperties A Odd Row Number Properties String like: bgColor=#cbfad2 vpEvenRowProperties A Even Row Number Properties String like: bgColor=#caeaff vpNavBarBtnProperties A Nav Bar Buttons Properties String like: target='_parent' vpNavBarBtnImgProperties A Nav Bar Buttons Image Properties String like: height='25' width='75' vpEnablePageHeaders A Enable Headers Properties String like: Y Here are some example entries. [Config] vpPageProperties=bgColor=#ff00ff vpTableProperties=BORDER=0 vpTHRowProperties=bgColor=#66ccff vpOddRowProperties=bgColor=#cbfad2 vpEvenRowProperties=bgColor=#caeaff vpNavBarBtnProperties=target='_parent' vpNavBarBtnImgProperties=height='25' width='75' vpEnablePageHeaders=Y |