> I have been having an issue with sync not working properly

The problem here is that sync recognizes there are local changes.
So when synchronizing, it tries to push those changes to the originating 
server (otherwise you'd lose your local changes).

However, in your case, the origin is just a TiddlyWiki document - i.e. a 
static HTML file - which by its nature cannot accept such changes from 
remote clients.
That's why there's no putTiddler method in the built-in FileAdaptor.

The situation would be quite different with most other adaptors*, since 
  they usually connect to a server-side script which is capable of 
processing inputs.

Having said that, we realize the user experience here leaves a lot to be 
desired. Any contributions in this area would be very welcome.

In the meantime, here's a simple workaround that at least prevents the 
exception from being thrown and gives a tiny bit more information:
---------------
(function() {

var orig = config.macros.sync.doSync;
config.macros.sync.doSync = function(ev) {
     try {
         orig.apply(this, arguments);
     } catch(ex) {
         if(ex.name == "TypeError) {
             displayMessage("sync operation unsupported: " + ex.message);
         } else {
             displayMessage("sync failed: " + ex.message);
         }
     }
};

})();
---------------


-- F.


* http://tiddlywiki.org/wiki/Server_Adaptor_Mechanism

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" 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/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to