IQ Object
It allows plugin to interact with Inquiry. It contains objects Saver (defined only for the PreSave-type plugins), FileIO, Options, Session and some properties and functions.
Properties:
- Version (read-only) - returns the version (build) Inquiry.
Example:
window.alert(IQ.Version)
InMain (read-only) - works only in the Load-type plugins. It is true when the last frame was loaded and the page can be saved.
- TopDocument (read-only) - top-level page that contains frames.
Functions:
- SavedPages (without parameters) - returns Folder object, which represents the root folder 'Saved Pages'.
- CurrentAutoSaved (without parameters) - returns Folder object, which represents the current folder for autosaved pages.
- Navigate (url) - Browse to the url after the plugin stops working. This function is available only for Button- and Load-type plugins.
- SaveTo (folder) - save the current page to the folder. If you omit the parameters, it will be saved to the default folder. This function is available only for Button- and Load-type plugins.
- ReplacePage (page) - save the current page instead of the previously saved page. This function is available only for Button- and Load-type plugins.
|