[tw5] Re: Bookmark to a TiddlyWiki Bookmarklet proof-of-concept.

2020-10-28 Thread Atronoush
amreus,

On Sunday, October 4, 2020 at 11:50:09 PM UTC+3:30 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 
> . Apologies if I'm terse. Please 
> ask if you have questions or feedback.
>

As the Tiddlyspot has gone for now, I suggest to have GitHub page 
for http://amreus.tiddlyspot.com/#markit
 

>
> 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/246e40ff-6853-43ef-ad39-fc72434f6774n%40googlegroups.com.


Re: [tw5] Re: Bookmark to a TiddlyWiki Bookmarklet proof-of-concept.

2020-10-26 Thread Atronoush Parsi
On Mon, Oct 26, 2020 at 10:44 PM amreus  wrote:

> > Please have a look at https://github.com/buggyj/tiddlyclip
>
> I read the page - still don't know what it's for.
>
It is one the most powerful plugin for making bookmarks directly from
Firexfox/Chrome. Clip part of webpage as a tiddler and much more



>
> > 1. Is it possible to prevent overwriting an existing tiddler by adding a
> prefix number like 1, 2, ...?
>
> Yes it's on my short list of things to do.
>
> > 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!
>
> Possible.  One aspect I like about using a bookmarklet is it is its'
> simplicity.  It's more accessible to the user for making customizations.
> Easier and more understandable than hacking a browser plugin.
>
> > 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)?
>
> Also possible if I understand what you mean.  Regular copy and paste
> always works.  Do you mean pre-select text?
>

Opening the target wiki to paste contents distract you from
studying/searching in the browser. It would be great to add pre-selected
text/image. It is kind of clipping.

>
> Thanks for asking these questions. You gave me an idea that maybe I can
> use a tiddler in the wiki as customization, or configuration tiddler for
> the form.
>
>
> Thank you for sharing this useful tool.


> On Monday, October 26, 2020 at 9:26:30 AM UTC-4 Atronoush wrote:
>
>> amreus,
>>  Please have a look at https://github.com/buggyj/tiddlyclip
>>  You can get some good idea to develop TiddlywikiBookmarklet
>>
>> Atro
>>
>> On Sunday, October 4, 2020 at 11:50:09 PM UTC+3:30 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
>>> . 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/d48d97d2-1344-4dc1-bd6e-fef28d7ff2b6n%40googlegroups.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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAKHVXmqN508TbpyOdDi7fFRBW2g400A0FqFE%3D5Sf%3Dm2dbVsvcg%40mail.gmail.com.


[tw5] Re: Bookmark to a TiddlyWiki Bookmarklet proof-of-concept.

2020-10-26 Thread amreus
> Please have a look at https://github.com/buggyj/tiddlyclip 

I read the page - still don't know what it's for.

> 1. Is it possible to prevent overwriting an existing tiddler by adding a 
prefix number like 1, 2, ...? 

Yes it's on my short list of things to do.  

> 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! 

Possible.  One aspect I like about using a bookmarklet is it is its' 
simplicity.  It's more accessible to the user for making customizations. 
Easier and more understandable than hacking a browser plugin.

> 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)? 

Also possible if I understand what you mean.  Regular copy and paste always 
works.  Do you mean pre-select text? 

Thanks for asking these questions. You gave me an idea that maybe I can use 
a tiddler in the wiki as customization, or configuration tiddler for the 
form.  


On Monday, October 26, 2020 at 9:26:30 AM UTC-4 Atronoush wrote:

> amreus,
>  Please have a look at https://github.com/buggyj/tiddlyclip
>  You can get some good idea to develop TiddlywikiBookmarklet
>
> Atro
>
> On Sunday, October 4, 2020 at 11:50:09 PM UTC+3:30 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 
>> . 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/d48d97d2-1344-4dc1-bd6e-fef28d7ff2b6n%40googlegroups.com.


[tw5] Re: Bookmark to a TiddlyWiki Bookmarklet proof-of-concept.

2020-10-26 Thread Atronoush
amreus,
 Please have a look at https://github.com/buggyj/tiddlyclip
 You can get some good idea to develop TiddlywikiBookmarklet

Atro

On Sunday, October 4, 2020 at 11:50:09 PM UTC+3:30 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 
> . 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/96e7dcff-a0e3-4c07-b87f-e1b6429e2603n%40googlegroups.com.


Re: [tw5] Re: Bookmark to a TiddlyWiki Bookmarklet proof-of-concept.

2020-10-26 Thread Atronoush Parsi
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  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  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  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 .
>
> 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
> 

Re: [tw5] Re: Bookmark to a TiddlyWiki Bookmarklet proof-of-concept.

2020-10-26 Thread amreus
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  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  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 
 .

 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 

Re: [tw5] Re: Bookmark to a TiddlyWiki Bookmarklet proof-of-concept.

2020-10-26 Thread Atronoush Parsi
The same error on Firefox!

On Sun, Oct 25, 2020 at 11:41 PM amreus  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  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
>>> .
>>>
>>> 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
> . 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 

Re: [tw5] Re: Bookmark to a TiddlyWiki Bookmarklet proof-of-concept.

2020-10-25 Thread TW Tones
Amreus,

Great contribution here for the community. Quick collection of urls and 
names would be a wonder full way to quickly collate ones internet research. 

My own server config skills are not strong but please let us know if and 
when this leaves POC and can be widely used.

Just ask if you want some help.

Tones

On Monday, 26 October 2020 09:07:30 UTC+11, amreus wrote:
>
> I just tried in Chrome - worked as expected.   I'm not sure how to 
> troubleshoot from here.   I'll start by reviewing my instructions. I might 
> not get back to things until later in the week. 
>
> 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  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 
>>> .
>>>
>>> 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 
> . Apologies if I'm terse. 
> Please ask if you have questions or feedback.
>
> Thanks for looking.
>
>
>
>
> -- 
>>> You received this message because you are 

Re: [tw5] Re: Bookmark to a TiddlyWiki Bookmarklet proof-of-concept.

2020-10-25 Thread amreus
I just tried in Chrome - worked as expected.   I'm not sure how to 
troubleshoot from here.   I'll start by reviewing my instructions. I might 
not get back to things until later in the week. 

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  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 
>> .
>>
>> 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 
 . 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
>>  
>> 
>> .
>>
>

-- 
You received this 

Re: [tw5] Re: Bookmark to a TiddlyWiki Bookmarklet proof-of-concept.

2020-10-25 Thread amreus
"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  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 
>> .
>>
>> 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 
 . 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
>>  
>> 

Re: [tw5] Re: Bookmark to a TiddlyWiki Bookmarklet proof-of-concept.

2020-10-25 Thread Atronoush Parsi
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  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
> .
>
> 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
>>> . 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
> 
> .
>

-- 
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.


[tw5] Re: Bookmark to a TiddlyWiki Bookmarklet proof-of-concept.

2020-10-25 Thread amreus
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 
.

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 
>> . 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.


[tw5] Re: Bookmark to a TiddlyWiki Bookmarklet proof-of-concept.

2020-10-04 Thread Joshua Fontany
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 
> . 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/4860b118-1896-48a8-bfc3-6fd482da5753n%40googlegroups.com.