Hacker News new | past | comments | ask | show | jobs | submit login

Sure, here's the source: https://gist.github.com/1609919 Also requires jQuery.

I access it like this: http://domain.com/notepad?key=yoursecret

The JS checks to see if the contents of the textbox has changed, and if it has, it makes a POST request via AJAX to the server that saves it to a text file.




Thanks so much for that! I also added in a Ctrl+S capture because I have an irritating habit of pressing it! Kudos!


Mind sharing your code for that? I think I tried implementing that originally but I could never get it to work.


I just used the shortcut.js library.. You can find it here : http://www.openjs.com/scripts/events/keyboard_shortcuts/




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: