New Safari, save local data works !

Posted on
Sat Mar 22, 2008 4:26 am
Martijn Heeroma offline
Posts: 189
Joined: Oct 24, 2007

New Safari, save local data works !

New Safari, new possibilities:
now saving client side, directly from a html page works !
jummy ;)

Code: Select all
   save: function()
    {
        this.cancelPendingSave();

        if ("dirty" in this) {
            this.timestamp = new Date().getTime();
            delete this.dirty;
        }

        var note = this;
        db.transaction(function (tx)
        {
            tx.executeSql("UPDATE WebKitStickyNotes SET note = ?, timestamp = ?, left = ?, top = ?, zindex = ? WHERE id = ?", [note.text, note.timestamp, note.left, note.top, note.zIndex, note.id]);
        });
    },


a demo page

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests