Javascriptoid Debunking factoids about javascript on the server http://javascriptoid.appspot.com 2010-04-02 22:07:51.183271 Javascriptoid Read and Write http://javascriptoid.appspot.com/blog/readandwrite 2010-04-02 22:07:51.183271 What differentiates JS on the server from the client is its ability to do stuff out of the sandboxed environment of the browser, like reading and writing files on your hard drive. Spooky? Fear not. Cookies and Sessions http://javascriptoid.appspot.com/blog/cookiesandsessions 2010-03-30 14:47:02.766861 If you want to persist data among different pages you can use cookies or sessions. Cookies are persisted on the client, while sessions on the server, so it really depends on what you are doing. CURL and Twitter search http://javascriptoid.appspot.com/blog/curlandtwittersearch 2010-03-29 14:42:46.565508 In this post we will be talking about getting data from other websites, something cURL has been doing for eons, but in server-side JS-speak it is called HTTP Client and here you will learn how to use it. Get and Post http://javascriptoid.appspot.com/blog/getandpost 2010-03-26 23:00:17.304802 We deal with forms a lot to capture data from the user and store it in our databases, sometimes we use GET, most of the time we use POST to pass that data to our server in order to handle it. FABE: The whole shebang http://javascriptoid.appspot.com/blog/thewholeshebang 2010-03-22 21:12:36.727852 It's been an interesting experience building this blog engine using Javascript on the server with V8 and V8CGI. It showed us that everything we do today with python, ruby or php can easily be done with our beloved javascript, so why not give it a try? FABE: Admin console http://javascriptoid.appspot.com/blog/adminconsole 2010-03-15 21:12:36.672722 Final phase, the admin console, where we can list, edit and delete entries at will. This post is going to be a little longer than previous ones so don't get bored, pay attention. FABE: Feeding the readers http://javascriptoid.appspot.com/blog/feedingthereaders 2010-03-13 21:12:36.592111 This part is really easy, as we have done it before, all we have to do is get the last 10 entries and inject them in a template based on an atom feed. FABE: Adding new entries http://javascriptoid.appspot.com/blog/addingnewentries 2010-03-12 21:12:36.507146 For this step we are going to need an html editor so we can write articles prettily formatted. There are plenty of editors already in the wild, but some are such a pain to install and use that I decided to go with Yahoo Rich Text Editor, in the name of simplicity. FABE: Viewing blog entries http://javascriptoid.appspot.com/blog/viewingblogentries 2010-03-11 21:12:36.412009 Now that we have our main window ready and our database tuned up, we need to show the articles when users click on their links. Here is how we are going to do that. FABE: Calling the data server http://javascriptoid.appspot.com/blog/callingthedataserver 2010-03-06 21:12:36.344891 To get the real data from MySQL we will be using our good friend from a previous post, the dataserver.jss library which will handle all our data needs.