O'Reilly logo

Rapid Application Development with Mozilla™ by Nigel McFarlane

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

16.6. Hands On: Saving and Loading NoteTaker Notes

This “Hands On” session is about reading and writing data to disk using XPCOM objects. It shows how to work with Mozilla's RDF support directly from JavaScript, in a way that complements existing XUL templates. It also shows how to get access to the current user profile, a rather trivial task.

We'll also complete the NoteTaker tool. That means saving, deleting, and loading notes. To do that, we must have suitable RDF data sources in place. We'll do our scripting with the basic XPCOM RDF interfaces rather than the RDFLib JavaScript library. This choice is merely designed to improve our understanding of the basic RDF services. The current note will always be stored in JavaScript; the fact store ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required