> While looking for saving methods for TW on handheld devices I've run > into a new Webkit-based mobile browser called Zetakey. So, an idea > blinked in my mind: as I understand TW uses special FireFox JavaScript > interface for saving changes in TW (without TiddlySaver, right?). So, > if this interface is a part of Webkit, this could be used in Zetakey > too (though, a bit of coding should be needed since TW checks if the > browser is *FireFox*).
FireFox is NOT Webkit-based. The file I/O functions in FireFox are native to FireFox only. Webkit-based browsers use TiddlySaver.jar (a *Java* applet) that provides the file I/O functions, which are then invoked using javascript-to-java calling conventions. > Also, a friend of mine claimed that some browsers can use the "save > as" function to save TW since they keep the current DOM for saving > documents. Originally (back in 2004/2005), the tiddler data was held in DOM element DIVs during the document session, and then written to the file as text, using HTML syntax to define the tiddler DIVs. However, this was found to be very limiting, due to browser differences in DOM representation and performance issues related to DOM lookups/ manipulations. To avoid this, the TiddlyWiki run-time data are read in from the stored HTML and held in a javascript data object (the "store") during the session, and then transcribed back into HTML syntax when the file is saved. Obviously, this conversion between run-time data and HTML syntax is not something that would be performed by invoking the browser's built-in "file save..." command. In addition, even for statically-defined HTML pages, the browser's in- memory DOM image may differ in a number of ways as a result of implicit character-set conversions, discarding of comments, collapsing of whitespace, etc. While the "file save" result for typical web pages is generally satisfactory, it doesn't actually save an *exact* image of the original source file that was loaded into the browser. Thus, for several important reasons, the browser's "file save..." command simply *cannot* be used to save a TiddlyWiki document, regardless of what your friend says *might* be possible. enjoy, -e Eric Shulman TiddlyTools / ELS Design Studios -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/tiddlywikidev?hl=en.
