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)

<!--#exec cgi="/cgi-bin/gethttp.exe?http://www.serv.com/DomMedia.nsf/MediaShow?OpenAgent&;sample.gif"-->

This line tells the Web server to execute the Windows command line utility, GETHTTP, with the Web URL to be retrieved to be passed to it as a parameter. Any output by the command line utility -- in this case the contents of the specified Web page -- are diverted into the SHTML page as served to the user, and the code between <!-- and --> removed in the process.

This method will work on pages hosted on most servers, such as Microsoft IIS or Apache, and also on the native HTTP server built into Domino (which serves HTML files stored in the /data/domino/html directory). However, SSI is not supported for Notes pages served on the Web.

IFRAME/ILAYER example
IFRAMEs and ILAYERs are very flexible and useful Web tags, with one major annoyance -- Microsoft has supported IFRAME since Internet Explorer 3, but Netscape doesn't recognize it, and vice versa for the Netscape alternative ILAYER. Either of them allows you to dynamically include HTML code from another page, Web agent or even another Web server, without using a frameset, SSI or JavaScript. The page with the IFRAME/ILAYER commands can be a Notes page served by Domino, or a HTML file served by Apache, MS IIS, etc. A non-Domino page can use this to include code generated by a Web agent on a remote Domino server.

This example below shows you how HTML code can be included on a Web page from another source, in a way that is compatible with both Internet Explorer and Netscape Navigator -- one will ignore the IFRAME and the other will ignore the ILAYER. Of course, if you're developing for a corporate intranet, you may have the luxury of coding for just one browser.

<iframe FRAMEBORDER="No"
src="http://www.serv.com/DomMedia.nsf/MediaShow?OpenAgent&;samp.gif"
NAME="SampleFrame" SCROLLING="No" WIDTH=100% MARGINWIDTH=0 MARGINHEIGHT=0>
<ILAYER src="http://www.serv.com/DomMedia.nsf/MediaShow?OpenAgent&;samp.gif">
</ILAYER>
</IFRAME>

Advanced ideas
With documents and media managed within Notes, there are many more possibilities for development, limited only by imagination and your development ability. Some projects, like the workflow suggested above, bring the traditional Notes disciplines of approval and version control to Web media. Others, like the ability to select different media files for different browsers, break new ground in Web development.

For example, it's relatively trivial to implement media usage counters, incremented every time a file is requested. These in turn can be combined with the file size stored in a Notes field to derive a total bandwidth usage by file -- the information you need to make the biggest difference in optimizing files.

One criticism of storing media files inside Notes is the performance hit over storing them on the local file system. This is one of the main trade-offs between performance and manageability. But there's no reason why you can't have the best of both worlds. In a previous article, "Build your own Domino hit counter" (which you can find at http://www.dominopower.com/issues/issue199903/webcount001.html), I demonstrated how Notes-created images could be cached on the Web server's local storage for big performance gains.


« 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 --

Mark your calendar for in-depth Lotus training, May 12-14, Boston
Join experts and peers May 12-14 in Boston for educational and networking events that deliver real-world Lotus training so you can increase productivity and efficiency in your company, advance your skills, and squeeze the most from your current environment. One registration gets you into THE VIEW's Admin2010 and Lotus Developer2010.

Register by April 10 to save $200.
ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 1998-2010, ZATZ Publishing. All rights reserved worldwide.
Editor's Login