Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Utility Functions

The utility functions make it easy to perform the most common types of interaction with Fluidinfo. They follow exactly the same pattern as the api-based calls except for one important difference: the content of result.data will often be postprocessed by the function before being passed to your event handlers. This is usually to simplify and clean the data in some useful way.

Each function is an attribute of the session object returned from a call to the fluidinfo function described at the start of this chapter.

createObject

This function allows a logged-in user to create/reuse an object in Fluidinfo:

var options = {
  about: "my new object",
  onSuccess: function(result) {
    // handle success
  },
  onError: function(result) {
    // handle errors
  }
};
session.createObject(options);

  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint