News
Map
About

 


Anatomy of a Table Renderer

The table renderer is simply a script that is passed the address of the table to be rendered; it is expected to return the HTML representation of the table:

on RenderTableAsXXX( tableAdr )
local
outText = ""
<< ...
<< Render the table to html text
<< ...
return( outText )

That's all. Nothing more.

So why am I doing this tutorial, anyway?

The renderer is a callback script. And as is usual for callback scripts, the outline is easy to describe. The brief comment in the center of the above script--render the table to html text--hides the bulk of the effort.

Also as usual, there's an easy way and a hard way. First, we'll look at the hard way, because it's the simplest to understand. (Aren't paradoxes wonderful?) Besides--sometimes the easy way won't do what you need.

So let's look at the hard way.



Page 1: What Is A Table Renderer
Page 2: Anatomy of a Table Renderer
Page 3: The Hard Way
Page 4: The Easy Way
Page 5: The Easiest Way
Page 6: About the Author


News - Map - About ScriptMeridian

This tutorial was written by Samuel Reynolds in Parker, CO.
Page last revised 1999/01/28; 12:35:45 PM.
Copyright © 1998 ScriptMeridian. All rights reserved
All trademarks are the property of their respective owners.
9:30:36 PM 28 January 1999