![]() ![]() clear(key): Deletes the value for key if it exists.Note: setting a key to null or undefined is equivalent to clear()ing it.get(key): Returns the value for key as a String or null if the key is not set.Passes an Error object as the first argument. onerror: Callback function to fire in the event of an error.onready: Callback function to fire once SwfStore is loaded and ready.timeout: Number of seconds to wait before concluding there was an error.debug Set to true to log debug information to the browser console (Automatically creates a logging on the page if no console is available.).May contain forward slash ( /) but all other special characters will be replaced with _ namespace: Namespace used both internally for the JS object and for the LocalStorage Object (cookie).All sites/pages using SwfStore should have the exact same url here for cross-domain usage, and it should be a protocol-relative url (just // instead of or for cross-protocol usage. swf_url: URL to included storage.swf file.Basic UsageĪ more thorough example is also available at Configuration options Note: it's up to you to ensure that the storage.swf file is available, Browserify won't make it public by default. Or install via npm (for use with browserify: npm install -save flash-cookies Via Bower: bower install -save flash-cookies Note: SwfStore is not compatible with most mobile devices (iPhones, Androids, etc) because it requires flash and few of these devices run flash. ![]() (It also should work in older IE and Safari's, but the tests don't.) Tested for compatibility with the following browsers: You can do this yourself with Adobe Flash or the Apache Flex SDK (free) or I can do it for you for $5 - email me for details.įinally, versions older than 1.9.1 are vulnerable to a XSS attack and should not be used. It would be wise to edit and recompile the flash file to limit itself to your domain and http/https settings. The default storage.swf allows any website to read the data in your flash file. Storage and a JavaScript interface for loading and communicating with the flash file. SwfStore is a JavaScript library for cross-domain flash cookies. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |