Link to local files
One simple way to reduce the amount of data that needs to be transmitted
from the Palm proxy servers to the user's Palm Powered handheld
is to use local content, which is data stored in your web clipping
application (.pqa) file. You can refer to this content-images or
HTML file-in your links.
If any page in your local web refers to local content, the Web
Clipping Application Builder (WCA Builder) program automatically
builds includes the referred-to page or image in your application
file. WCA Builder does this by traversing your entire web, following
the links it finds:
- if a link on your index page refers to a local page, that file
is bound into your built application, and its links are followed
- if a link on any included page refers to a local file, that
file is bound into your built application, and its links are followed
- if a link on any page refers to a local image, that image file
is bound into your built application
You can also use the Palm LOCALICON meta tag to force WCA Builder
to bind in images or pages that are not referred to by other pages.
When WCA Builder finds the LOCALICON meta tag in a page, it treats
the content portion of the tag just like as it does a local file
(HTML or image) that is linked to by another page in your web. The
following is an example of using the LOCALICON meta tag:
<META name="LocalIcon" Content="My.gif">
To refer to a local image or HTML page in an URL, you use the file
designator. Specify the name of your .pqa file as the directory
name, and specify the image or HTML name as the file name. For example,
to refer to the image file shown in the previous example, you would
use the following HTML statement:
<IMG SRC="file:myapp.pqa/my.gif">
or in the case of a local html file
<a href="file:mypqa.pqa/personal.html">My
Personal Page</a>
|