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 <harley...@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+unsubscr...@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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAKHVXmquM2eOCq3J2nwD1QTsQg%3Dt2Yf%3D5LfTBENs4bDOSDaUxQ%40mail.gmail.com.

Reply via email to