Hello Vincent. Little late and perhaps against netiquette, but thanks for the solution! It's a little annoyance gone. Regards, Rolf
Op vrijdag 16 mei 2014 06:49:46 UTC+2 schreef Vincent Yeh: > > Forgot to mention that I was lead to check PasswordOptionsPlugin because > of this post: http://osdir.com/ml/tiddlywiki/2011-02/msg00316.html. > > Have Fun! > Vincent > > On Friday, May 16, 2014 12:39:45 PM UTC+8, Vincent Yeh wrote: >> >> Hi everyone, >> >> Recently I created a page on TiddlySpot.com and encountered the same >> problem. Then I started searching for a solution and realized that this has >> been there for a while already. I didn't find a fix to it so I did it >> myself. >> >> The problem lies in the *config.optionHandlers['chk'].get *function that >> PasswordOptionsPlugin overrides: >> >> merge(config.optionHandlers['chk'], { >> get: function(name) { >> // is there an option linked with this chk ? >> var opt = name.substr(3); >> if (config.options[opt]) >> *saveOptionCookie*(opt); *<--------- This is the >> problem.* >> return config.options[name] ? "true" : "false"; >> } >> }); >> >> In the overridden version the PasswordOptionsPlugin tries to *save the >> options in this get function*, but that saveOptionsCookie() function >> eventually *leads to another function called saveCookie(), in which it >> calls this get function again*! So you can see this get function never >> gets returned and the option never gets saved. >> >> *The fix is to do the saveOptionCookie() in the set function instead*. >> You can replace the above lines of codes with the below ones and the >> problem is gone. >> >> merge(config.optionHandlers['chk'], { >> set: function(name,value) { >> config.options[name] = value == 'true'; >> // is there an option linked with this chk ? >> var opt = name.substr(3); >> if (config.options[opt]) >> saveOptionCookie(opt); >> } >> }); >> >> Have Fun! >> Vincent >> >> >> On Wednesday, March 30, 2011 9:11:53 PM UTC+8, Jeremy Ruston wrote: >>> >>> I'm on the same version of Chrome on Mac OS X, and I'm not getting the >>> error for the cityofcalgary wiki on either dropbox and from >>> tiddlyspace. I've also tried Firefox 4 and am unable to duplicate the >>> issue. Are you on Windows? >>> >>> So, I'm wondering if there is an issue with a browser extension that >>> you might be using? It may be worth trying to start Firefox and Chrome >>> in safe and incognito mode (respectively) and repeating the >>> experiment? >>> >>> There's some information about safe mode and incognito mode here: >>> >>> http://googlesystem.blogspot.com/2010/02/google-chrome-safe-mode.html >>> >>> Best wishes >>> >>> Jeremy >>> >>> On Tue, Mar 29, 2011 at 4:23 PM, Craig in Calgary >>> <[email protected]> wrote: >>> > Error while executing macro <<tabs>>: >>> > RangeError: Maximum call stack size exceeded >>> > >>> > http://dl.dropbox.com/u/921459/TiddlyWikis/cityofcalgary.html >>> > http://cityofcalgary.tiddlyspot.com >>> > >>> > But the mystery thickens: >>> > * When I open it from TiddlySpot with Chrome 10.0.648.204, the error >>> > is present. >>> > * When I open it from Dropbox with Chrome 10.0.648.204, there is no >>> > error. >>> > * When I open either with IE 7.0.5730.13CO, there is no error. >>> > * When I open either with SeaMonkey 2.0.13, there is no error. >>> > * My Firefox 4 is currently corrupt so I can't test that environment. >>> > >>> > -- >>> > 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. >>> > >>> > >>> >>> -- >>> Jeremy Ruston >>> mailto:[email protected] >>> http://www.tiddlywiki.com >>> >>> -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/ca161df7-7ea7-43d8-abbb-599f60851bd5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

