Search DominoPower's 11,441 Lotus-related article archive 
Home
EasyPrint
News details Click here for the RSS feed's XML code. This is not a browser URL.
Articles-only Click here for the RSS feed's XML code. This is not a browser URL.
Twitter Feed Click here for the Twitter feed.
Media management the Domino way (continued)

Why use an agent? If you decide to set up a library that exercises discrimination in choosing images to send, you'll want an agent. For example, if the library sends .PNG files to new browsers and .GIF files to older browsers, or smaller, lower-resolution images to customers from Web domains across the other side of the planet, then the built-in URL commands cannot keep up with your needs.

The demonstration Media Library contains a simple Web agent for returning an image. It doesn't make any of the sophisticated image choices described above, but it does perform some other simple improvements over merely sending back a file. It does this by dynamically building, and sending back to the browser, HTML to load the image, rather than the image itself. In so doing, it can supply the height and width of the image, plus any "Alt Text" defined in the Notes library.

Alt Text was originally used to display some text for non-graphical browsers or for users who switched off loading graphics to speed up browsing. Modern browsers will also show this text as a pop-up, or "tool tip", when the mouse is passed over the image. Supplying the width and height of an image in the <IMG> or <EMBED> tag is useful in that the browser can more accurately lay out the page, before downloading all the images, delivering a smoother browsing experience. Below is a sample Web agent output.

<IMG SRC="http://www.serv.com/DomMedia.nsf/Media/samp.gif/$File/samp.gif";
HEIGHT=100 WIDTH=120 ALT="Please visit this page with a graphical browser">

For Java applets, the sample Web agent can build an <APPLET> tag with all the parameters; it will also allow you to reference Notes file attachments in the applet parameters. Whenever the special term %CODEBASE% is found in an applet parameter, the %CODEBASE% term is changed when generating the tag into the required URL to access the file within Notes (e.g., %CODEBASE%ticker.wav). The sample below shows a Web agent output for Java applets.

applet name: ticker.app
applet parameters: <PARAM name="SOUND" value="%CODEBASE%ticker.wav">
<APPLET CODE="ticker.app" HEIGHT=60 WIDTH=200
<PARAM name="SOUND"
value="http://www.serv.com/DomMedia.nsf/Media/ticker.wav/$File/ticker.wav";>
</APPLET>

Since the agent returns dynamic HTML code rather than an image, it must be called in a SRC parameter that expects text or HTML (for example FRAMESRC, IFRAME, ILAYER or LAYER). Alternatively, it can be loaded from non-Notes pages using SSI (Server Side Include), and another free program, GETHTTP.EXE can be downloaded from http://www.rhizomatics.demon.co.uk/software/gethttp.exe to assist that. GETHTTP.EXE will retrieve any Web address from the command line, and return the header, body or entire Web page to the screen or a file.

SSI example
Lots of people are put off SSI by the seeming complexity, but for simple uses it's very easy. You need to do no more than name the Web page with a .SHTML rather than .HTML and add in a line such as the example below that denotes where you wish the generated code to appear. The seam is invisible; to any user who views the HTML source, it will appear as if the dynamic HTML was part of the original SHTML file.


« Previous  ·  1  ·  2  ·  3  ·  4  ·  5  ·  Next »
Other articles you might like
Home > Lotus Technologies > Domino (77 articles)
   More about Domino log files
   Why your log.nsf might not be purging properly
   Sloppy analysis at the core of another Domino vs. SharePoint report
Home > Internet Technologies > Strategies (7 articles)
   Four free power tools for your toolbox.
   How to choose and find low cost Domino hosting providers
   Search engines: bring 'em on!
Get Weekly Email Updates
Subscribe to our regular weekly email newsletter. It's packed with tips, reviews, deep analysis, and the latest news.
 
Recent DominoPower Articles
Application development, William Shatner, and the origin of the universe
Learn Domino Designer 8.5 for free
The (near) future of Sametime, Quickr, Connections, and Symphony
Inside the IBM Innovations lab
Lotusphere 2010: Hot fixes and cool news for Notes, Domino, and LotusLive
Lotusphere 2010: mobility and collaboration
2010: A Lotusphere of change
Latest Lotus Headlines
Xpages not loading? JVM errors? - Solution
How to implement an iCalendar feed into your Notes calendar with XPages
DWA Hotfixes for Domino 8.5.1FP1 - A Gotcha
IBM Adds DB2 to Lotus Foundations SMB Package
SNTT : XPages onclick Ghosts in the machine
Ports used by Lotus Sametime 8.5 servers
Exploring a Domino Date Bug
>> Read all the news
More from the ZATZ journals
Computing Unplugged: The iPad defenders have spoken
David Gewirtz Online: CNN commentary and analysis
OutlookPower: More about disappearing text
-- Advertisement --

Sophisticated Meets Simple For Document Management
Share. Control. Manage.
Documents, emails, and content in the context of how work is done. Native to Lotus Domino. The User Experience unseen for Lotus Domino. Do more with less. Really.

See the possibilities Docova unleashes for Lotus Domino.
-- Advertisement --

Integrate your Notes Applications with Microsoft Office and Symphony
Integra for Notes Integrates Microsoft Office and/or IBM Lotus Symphony
Requires NO change to the design of the appliation or Installations of DLL's and EXE's
  • Integra is a ready to use solution, enhance static reports with Excel data analysis, pivot tables, macros
  • User friendly aproach, using a point and click access to features
  • Reports from any Lotus Notes databases
  • Runs reports through a Notes client, web browser and scheduled basis
  • Allows use of LotusScript for advanced data manipulation
  • Enables self service reporting capabilities to end-users


Learn more at www.integra4notes.com.
ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 1998-2010, ZATZ Publishing. All rights reserved worldwide.
Editor's Login