Re: [pollen] Comments to book drafts online

2017-03-15 Thread Matthew Butterick

> On Mar 15, 2017, at 2:54 PM, Paulo Matos  wrote:
> 
> Would you be able to share the code doing this so I don't need to reinvent 
> the wheel? 


If you want to see the JS, it's here, and it's garbage:

http://beautifulracket.com/functions.js 


There are a zillion ways to send form data to a server, most of which are 
better than this. So if you want to follow a model, you could do better ;)


-- 
You received this message because you are subscribed to the Google Groups 
"Pollen" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pollenpub+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [pollen] Comments to book drafts online

2017-03-15 Thread Matthew Butterick

> On Mar 15, 2017, at 7:56 AM, 'Paulo Matos' via Pollen 

> Once I get my book chapter draft online, what's the best way to enable public 
> comments to paragraphs?
> 
> I am sure I have seen this before but maybe not integrated with Pollen.

I've been doing something like this on the preview pages at beautifulracket.com 
. But it's not a Pollen thing — it's just a boring 
web form that cooperates with a boring server script. Then I use boring JS to 
insert the form under the paragraph when someone clicks in the margin.

I do use Pollen to generate the paragraph-specific URLs, but that happens when 
the page is compiled, not as a browser scripe.


-- 
You received this message because you are subscribed to the Google Groups 
"Pollen" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pollenpub+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.