#!/bin/csh -f # make_error_loading_slide_div # ------------------------------------------------------------------------- # Shell script to create an HTML DIV to report an error when loading a # slide. # ------------------------------------------------------------------------- # Revision History: # $Log$ # ------------------------------------------------------------------------- # Collect command line options while ($#argv > 0) if ("$1" == "-h" || "$1" == "--help") then echo "Usage: $0:t [options] > error.htm" echo "Options:" echo " -h = Show this help text" echo " --help = Show this help text" exit 1 else if ("-" == "`echo $1:q | cut -c 1`") then echo "Error: Invalid option: $1:q" $0 --help exit 1 else # Not a recognized option. Assume it's the first argument break endif end # No arguments defined, so allow none if ($#argv > 0) then $0 --help exit 1 endif # Echo the following lines w/o expanding dollar sign vars, or anything cat <<"EOF"
Oops!  We're unable to load slide to_be_filled_in_dynamically .

Possible reasons:
  1. Is the URL of the slide wrong? Click here to test it:
    to_be_filled_in_dynamically .

  2. Are you running the slideshow as local files?  If so, the URL in the address bar starts with "file:" instead of "http:"  For security reasons, some browsers disallow this.  You may have to push your entire slideshow to a remote server.  Or access it locally via a locally installed web server.
    Hint: In Firefox, you can use local files if you change the option "privacy.file_unique_origin" to false in about:config.  Don't forget to change it back afterwards!
"EOF"