Hi amreus, It works now! Thank you!
Some minor suggestions: 1. Is it possible to prevent overwriting an existing tiddler by adding a prefix number like 1, 2, ...? 2.Is it possible to have extra fields, especially Text field? I mean while a user is allowed to add a special tag, he/she can add some text! 3. What do you think is one can select part of text or image in a webpage and bookmarking-to-tiddlywiki can add it as tiddler body (text)? Possible issue The bookmarking-to-tiddlywiki allow to add new tiddler even with title containing forbidden characters like | {} etc. I may recommend to replace such character in title when you create a new bookmark. Thank you again and best wishes. Atro On Mon, Oct 26, 2020 at 11:43 AM amreus <harley...@gmail.com> wrote: > 2 initial thoughts.. > > 1. This will only work with the TiddlyWiki node server. It does not work > with the Bob server because it has a different API. > 2. Be sure to use 127.0.0.1:8080 and not localhost:8080 in the > bookmarklet. It matters to avoid the cross-site scripting issue. > > I made some small changes to the files on github to remove the alert, but > show the xhr.status in the popup. The popup will close on success but > remain open on an error. > > If you still have errors, open the dev console (press F12 with the popup > focused) before pressing the Save button and show the console text here. > Since I am not getting any errors in either Firefox or Chrome, it's hard to > know what is going on. Thanks. > > > On Monday, October 26, 2020 at 3:03:06 AM UTC-4 Atronoush wrote: > >> The same error on Firefox! >> >> On Sun, Oct 25, 2020 at 11:41 PM amreus <harl...@gmail.com> wrote: >> >>> "Testing? We don't need no stinking Testing." >>> >>> Seriously, though I use Firefox and will need to try it using Chrome. I >>> don't have it installed but do have a portable version I can try. >>> >>> If you know how to open the Chrome developer console, it would be >>> helpful to see if there are any errors generated when you hot the "Save" >>> button. >>> >>> >>> >>> >>> On Sunday, October 25, 2020 at 3:40:34 PM UTC-4 Atronoush wrote: >>> >>>> amreus >>>> Thank you for sharing. I created a new wiki tiddlywiki mywiki --init >>>> serverand then created an extra folder files in mywiki folder with >>>> form.html and func.js as you advised. >>>> Running new wiki using tiddlywiki mywiki --listen csrf-disable=yes >>>> everything >>>> was fine >>>> Now from TWMark bookmarks with bookmark.js, I tried to add a page to >>>> my TW in Chrome 83. >>>> The form opens and let me add tag and save! >>>> But I got this error: >>>> >>>> localhost: 8080 says >>>> xhr.status: 0 >>>> >>>> >>>> >>>> On Sun, Oct 25, 2020 at 8:50 PM amreus <harl...@gmail.com> wrote: >>>> >>>>> Just wanted to post the latest code of my bookmarking-to-tw tests. >>>>> Briefly, it works by using a bookmark that opens a popup with a form that >>>>> is populated with the current site title and url, allows editing of >>>>> fields, >>>>> then sends the data as a new tiddler in a TiddlyWiki running on a node >>>>> server. It's a 2-click solution. >>>>> >>>>> There are few parts to the setup, but the files are small and >>>>> hopefully understandable: >>>>> >>>>> 1. A bookmarklet >>>>> 2. A static html form >>>>> 3. Javascript functions >>>>> 4. Server options >>>>> >>>>> >>>>> 1. The bookmarklet is placed in your browser's toolbar. It opens a >>>>> pop-up window getting its contents from the static html form. Because the >>>>> origin of the popup is the same as the wiki server, there are no >>>>> cross-site >>>>> scripting issues. The site title and url are passed to the html file as >>>>> part of the url using the u= and t= parameters. >>>>> >>>>> 2. A static html file used for a popup window. I named mine form.html. >>>>> This is a html file which is opened by the bookmarklet. The static file >>>>> contains a form, and includes the javascript functions, and buttons to >>>>> submit or cancel. A javascript function is used to parse the parameters >>>>> from the url and populate the forms. The file lives in the files/ >>>>> folder under your node wiki location. >>>>> >>>>> 3.The javascript file (funcs.js in this case)contains helper >>>>> functions that send the form data to the node server using the WebServer >>>>> API <https://tiddlywiki.com/#WebServer%20API>. >>>>> >>>>> 4. Run the server using the *csrf-disable* option set to *yes*. >>>>> >>>>> It's cool to see it working, but there's lot's of room for >>>>> improvement. For example I'd like to grab some meta tags from the html as >>>>> well as just the title and url. >>>>> >>>>> I put the files on github: >>>>> https://github.com/amreus/bookmarking-to-tiddlywiki >>>>> >>>>> Let me know if you have any questions or thoughts. I'm just a hobbyist >>>>> and all my knowledge comes from Stackoverflow, so any improvements would >>>>> be >>>>> appreciated. >>>>> >>>>> Thanks for looking. >>>>> >>>>> >>>>> On Sunday, October 4, 2020 at 8:45:53 PM UTC-4 joshua....@gmail.com >>>>> wrote: >>>>> >>>>>> I've been tinkering with batch importing from Chrome an dFirefox, but >>>>>> that did not solve the "once I have them all in TW what to do going >>>>>> forward" with my TWBookmarks ideas. I will have to come back to this, >>>>>> thanks! >>>>>> >>>>>> I think this is a great start! Here is the pertinent Docs on >>>>>> Tiddlywiki.com: >>>>>> >>>>>> https://tiddlywiki.com/#WebServer:WebServer%20%5B%5BWebServer%20API%5D%5D%20%5B%5BWebServer%20API%3A%20Put%20Tiddler%5D%5D%20%5B%5BTiddlyWeb%20JSON%20tiddler%20format%5D%5D >>>>>> >>>>>> Best, >>>>>> Joshua Fontny >>>>>> >>>>>> On Sunday, October 4, 2020 at 1:20:09 PM UTC-7 amreus wrote: >>>>>> >>>>>>> Just playing with an idea I might have read about on this forum. >>>>>>> It's not completely functioning at moment, but enough of it is that I'm >>>>>>> certain it can be made to work. >>>>>>> >>>>>>> I made a browser bookmarklet that opens a popup window to your local >>>>>>> node tiddlywiki, and appends to the wiki address the url and title of a >>>>>>> web >>>>>>> site. (Basically sends a HTTP GET request to your wiki, passing the site >>>>>>> url and title in the query string.) >>>>>>> >>>>>>> The wiki has a tiddler that parses the request back into a url and >>>>>>> title variable, which can then be used to create tiddlers, etc. >>>>>>> >>>>>>> I tried to write up some instructions here >>>>>>> <http://amreus.tiddlyspot.com/#markit>. Apologies if I'm terse. >>>>>>> Please ask if you have questions or feedback. >>>>>>> >>>>>>> Thanks for looking. >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>> 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 tiddlywiki+...@googlegroups.com. >>>>> To view this discussion on the web visit >>>>> https://groups.google.com/d/msgid/tiddlywiki/6fe00ec2-40f0-4ad7-8d21-e17cee230d0fn%40googlegroups.com >>>>> <https://groups.google.com/d/msgid/tiddlywiki/6fe00ec2-40f0-4ad7-8d21-e17cee230d0fn%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>> . >>>>> >>>> -- >>> 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 tiddlywiki+...@googlegroups.com. >>> >> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/tiddlywiki/7d12e778-2c43-41e7-87c9-6292668ab6f3n%40googlegroups.com >>> <https://groups.google.com/d/msgid/tiddlywiki/7d12e778-2c43-41e7-87c9-6292668ab6f3n%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- > 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 tiddlywiki+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tiddlywiki/66241961-a8f6-4955-b138-8fd2368adfaen%40googlegroups.com > <https://groups.google.com/d/msgid/tiddlywiki/66241961-a8f6-4955-b138-8fd2368adfaen%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/CAKHVXmorARByJEDkFi9A%2BL2GL_ecinureOr%3DvDz6-YkbhAi3wQ%40mail.gmail.com.