American Audio DCD-PRO240 User Manual Page 214

  • Download
  • Add to my manuals
  • Print
  • Page
    / 250
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 213
Freeway Reference: Customizing Freeway’s Output
214
214
Referencing external URL content when the page is viewed
There are occasions when you want the web page you create to include content dynamically, perhaps referencing graphics or HTML
code which changes or is updated more frequently than your page. Examples of this might be advertising banners, counters which
record how many visitors have viewed your page or stock market figures which are updated from a database live on the web.
In cases like these, you wouldn’t want to import the new content, publish the site and upload the new files whenever the content changes.
Instead, you want to leave room in your page for some external content, which is only inserted when the page is viewed by a visitor. There
are two ways of doing this, depending on whether the content you want to reference externally is a graphic—generally generated by a script
on the web server—or a text file containing a snippet of HTML code—also known as a Server Side Include.
Using a URL box to reference external content
In order to reference any external content on the web within a Freeway page:
1. Create or select an appropriately sized box on the page.
2. Position it where you want the external content to appear.
3. Select the Output panel in the Inspector palette.
4. Set the box to have the output type of URL using the Type popup menu.
5. You will see new options in the Output panel. Using the Content popup menu, choose either Image or HTML, depending on whether
the external content will be a graphic or a text file containing a snippet of HTML.
6. Type or paste the URL of the external content into the URL text field.
When the page is exported, Freeway simply leaves a space in the page the size of the box you drew and
either references or includes the contents of the specified URL. When the page is viewed on the web,
as long as the external content is available at the specified URL, the page will appear correctly with the
external content in place.
• When you specify a URL box by choosing Image, the URL you specify is inserted into the Freeway
output inside an “IMG” tag as follows:
<IMG SRC=/cgi-bin/counter.cgi BORDER=0>
• When you specify a URL box by choosing HTML, the URL you specify is inserted into the Freeway
output inside an “include” statement as follows:
<!-- #include virtual=included.inc -->
Nothing happens when the page is viewed locally, but when the page is requested from a web server,
the server automatically extracts the above comment and substitutes the code contained in the file
referenced by the URL. This file can be a complete HTML document, but it is better if it just contains the
necessary piece of HTML required to achieve its purpose.
Important: If you specify external content in a URL box using the HTML option, this can only be
previewed when the pages are served by web server software—you will not see the included HTML
when previewing locally in your browser. This is because the comment used to reference external
HTML is not an instruction to a web browser but rather an instruction to web server software.
This also requires the web server to be set up to support “Server Side Includes”. Many web servers disable this for security reasons.
Import external HTML into a document
If you have HTML content that you wish to reference within an existing page in Freeway, you can import an HTML text file from disk
into a box in Freeway. The imported HTML can’t be displayed or edited within Freeway, but it will be visible when the page is previewed
in a web browser. The external file must be available when the document is published.
To import HTML content
1. Draw a rectangular box and make sure that it is selected so that the handles are visible. (IMPORTANT: Ensure that you haven’t
clicked inside the box to create a text cursor).
2. Choose Import… from the File menu and select the text file containing the HTML code you wish to import.
Note: The file to be imported must be named with the file extension
“.htm”, “.html”, “.asp”, “.inc” or “.php”.
3. When the text file has been successfully “imported”, you will see a text file icon and a reference to the location of the imported file
displayed in the box on the page.
Page view 213
1 2 ... 209 210 211 212 213 214 215 216 217 218 219 ... 249 250

Comments to this Manuals

No comments