Vista Firewall Control Mobile Web Server Desktop Assistant IrDA Remote Control Company info


Vista Firewall Control
XP Firewall Control
Mobile Web Server
Product
Download & Buy
Manual
PocketPC/Smartphone
Finding the Server
Preparing the Pages
Register worldwide
FindMe/GPSMe
Corporate Usage
Desktop Assistant
IrDA Remote Control
LogAnalytics
Engines & SDKs
Portable Applications
Company info
Contact Us
Partners




How to Prepare the Content to Share

Where the Content is located

Any file placed in the server's root (the folder on your portable or mobile device the server "shows" files from) can be accessible via web browser. So the only thing you have to do is copying required files into the server's root. You can also create folders "under" the root and copy required files into the folders.
The server's root in the Free version is predefined and located in:
installation-folder\MobileWebServer\htdocs (for Portable version),
U3Drive:\Documents\MobileWebServer\htdocs (for U3 version)
and My Documents\MobileWebServer (for mobile devices version).
The Plus version allows you to customize the position of the server's root and if the position is set to (and "under") "Documents and Settings" of the desktop's disks, Mobile Web Server will set the root to the folder always regardless where the folder is located on each new connected machine. The Plus version supports shortcuts to files and folder also.
For instance, if your file is located in the-server's-root\AFolder\AFile.txt, the file will be accessible via http://the-server-link/AFolder/AFile.txt. To see mypicture.jpg at http://the-server-link/MyFolder/mypicture.jpg you have to copy mypicture.jpg to the-server's-root\MyFolder\mypicture.jpg and so on.
After the files/folders are added/deleted/renamed do not forget to refresh the browser to reflect the changes.
How the Content is presented

The common Server logic is:
  • If web browser is navigated to a file the file will be shown (File Mode);
  • If web browser is navigated to a folder:
    1. If a directory to be shown does not include (in the order) index.html, index.htm, default.html or default.htm the Server will show file list from the directory (Directory Mode) with gallery for pictures (excepting mobile versions) and following shortcuts (the Plus version only);
    2. If a directory includes a file from the list, the Server shows the file (File Mode);
All the files/folders with names started from '.' (dot) are invisible for browsing, so you can use the naming to create complex site content.

The File Mode

The file showing depends on the file type.
HTML and HTM files are shown "as is: and always stuffed by the file navigation menu, the list of the files/folders of the same folder. So any file placed in a folder shows neighboring files allowing you to navigate through the site by automatically generated menu. You can create a html(htm) file manually, by a web editor or using an editing program (ex Microsoft Word) allowing to save a file as html, stuff the file with pictures and links and have full scale, personal Mobile Web Server. The small footer is added to each page in the Free edition only.
You can also create a regular text (.txt) file, rename it as HTML or HTM and Mobile Web Server will create the web page from the file automatically on-the-fly. The feature allows you to avoid special HTML knowledge for the site content creation. The navigation menu will be automatically generated as well.
Any other type of file is treated "as is". How web browser shows those pages depends on the browser type and some installed components. Some browsers are able to show EXCEL spreadsheets (for instance) "in-place", others open separate window for that. Pictures are mostly shown by browsers always, but to show spreadsheets (for instance) MS Office installation can be required.
The Directory Mode

The Directory Mode shows you all the subfolders at the current level, the files at the current level, and the pictures. Pictures are shown via thumbnails/gallery (excepting mobile versions), which is generated automatically. So to create a photo album you have to just copy image files to a folder of Mobile Web Server or distribute images to dedicated folders by themes. The small footer is added to each page in the Free edition only.

The Content Templates (Plus version only)

File and Directory modes of the server are organized via so called templates, but only the Plus version allows you the template customization. The templates set navigation menu and other parts of the page color and placement. The templates are actually specific HTML files, so some HTML skills are required for the template customization.
There are two types of the templates: file templates ('.file' files) and directory templates ('.dir' files). The templates work ONLY for a directory they are located. So, if you would like to have several folders to be shown by the same templates to should copy the templates to each the folder. If a template file is not found (for both file and directory) in a folder, the default template will be used instead.
The templates (see template samples in "demo" site of MobileWebServer installation) are regular HTML files with some new tags added. The additional tags are actually placeholders to point where Mobile Web Server have to place list of files from current folder, list of subfolders, list of thumbnail images (for automatic gallery generation). For example <diritem> </diritem> tag pair sets format of directory item (of subfolder list). The place of the tag in the entire template sets the placement of directory list within resulting web page.
  • <diritem> - sets position and determines appearance of the subfolder list;
  • <fileitem> - sets position and determines appearance of the file list at current folder;
  • <pictitem> - the same for thumbnails (for .dir templates only);
  • <mwsbody> - sets the place to insert original content of HTML, HTM, or text files named as HTM(L) (for .file templates only);
%LINK% and %NAME% parameters (if any) of the tags are substituted with actual link and name values of each file, directory and picture respectively.
To reflect template changing, you should update a file the template will be used for and refresh the browser. Otherwise, without the file update, your browser will show the file "templetized" in the previous way, as browser will not reread the file with the same modification time.