Howdy again,

Here's the description of the second part of my on-going
effort to turn mozilla into an effective stand-alone
database client.

2. Database-aware Dialog Widgets

The idea here is simple and doesn't actually require
creating any new XUL widgets. I'd like to create an XPCOM
component that would connect to a database, issue a query,
and retain the result set. A method on this component would
accept a pointer to a XUL window. The component would walk
the DOM sub-tree of this XUL window looking for widgets whose
IDs match the column names of the current result set. Those
that matched (textboxes for example) would have their values
(or labels) set to the contents of the matching field in the
current row of the result set.

The component could also serve as a broadcaster so if the
current record changed - the XUL widgets observing the
component would be automatically updated.

Sorry boys and girls - no code here yet.

But wait - as a consolation prize (but only if you stay
tuned for part three) - I promise - working code!

Regards,
Rick Parrish
[EMAIL PROTECTED]


Reply via email to