Re: [pollen] Comments to book drafts online

2017-03-17 Thread 'Paulo Matos' via Pollen


On 16/03/17 01:34, Matthew Butterick wrote:
> 
>> 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 ;)
> 
> 

Thanks, given my JS-fu being weak I might be better off starting with
what you provide. :)

Now, I wonder if using whalesong something like this could be integrated
with pure-racket code. Have you ever thought about something along these
lines?

-- 
Paulo Matos

-- 
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-17 Thread 'Paulo Matos' via Pollen


On 15 March 2017 19:09:37 CET, Matthew Butterick  wrote:
>
>> 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.

Would you be able to share the code doing this so I don't need to reinvent the 
wheel? 

Thanks. 

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

-- 
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-16 Thread Matthew Butterick

> On Mar 16, 2017, at 3:05 AM, Paulo Matos  wrote:
> 
> Thanks, given my JS-fu being weak I might be better off starting with
> what you provide. :)


One Google search on the topic would yield a hundred more qualified teachers, 
including people who actually like JS, which I do not ;)


> Now, I wonder if using whalesong something like this could be integrated
> with pure-racket code. Have you ever thought about something along these
> lines?

I have not used Whalesong [1] (Racket-to-JS compiler) nor Urlang [2] (JS with 
more Racket-like syntax, IIUC). You could use them with Pollen, I suppose, just 
like you can use any other kind of JS with Pollen. But they do different 
things, and would not join together Voltron-style.


[1] https://github.com/soegaard/whalesong 

[2] https://github.com/soegaard/urlang 

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