[CODE4LIB] server side vs client side

2011-12-01 Thread Nate Hill
As I was struggling with the syntax trying to figure out how to use javascript to load a .txt file, process it and then spit out some html on a web page, I suddenly found myself asking why I was trying to do it with javascript rather than PHP. Is there a right/wrong or better/worse approach for

Re: [CODE4LIB] server side vs client side

2011-12-01 Thread Jonathan Rochkind
Well, you need to use javascript if you want it to run in a browser. So that's one reason to pick it, and the main reason people pick it for it's most popular uses. It will be very difficult to get javascript running in a browser to do what you just said though. Not sure if you were running

Re: [CODE4LIB] server side vs client side

2011-12-01 Thread Ken Irwin
. Ken -Original Message- From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf Of Nate Hill Sent: Thursday, December 01, 2011 12:49 PM To: CODE4LIB@LISTSERV.ND.EDU Subject: [CODE4LIB] server side vs client side As I was struggling with the syntax trying to figure out how to use

Re: [CODE4LIB] server side vs client side

2011-12-01 Thread Jon Gorman
On Thu, Dec 1, 2011 at 11:49 AM, Nate Hill nathanielh...@gmail.com wrote: As I was struggling with the syntax trying to figure out how to use javascript to load a .txt file, process it and then spit out some html on a web page, I suddenly found myself asking why I was trying to do it with

Re: [CODE4LIB] server side vs client side

2011-12-01 Thread Nate Hill
I should have provided a bit more information here. Here's a rough in-progress view of what I'm up to. http://www.natehill.net/loadsketch/donerightclasses.html I was using processing.js to read a file and then visualize some of the data... you can see the circles are being generated from the

Re: [CODE4LIB] server side vs client side

2011-12-01 Thread Nate Vack
On Thu, Dec 1, 2011 at 12:35 PM, Nate Hill nathanielh...@gmail.com wrote: I should have provided a bit more information here. Here's a rough in-progress view of what I'm up to. http://www.natehill.net/loadsketch/donerightclasses.html I was using processing.js to read a file and then

Re: [CODE4LIB] server side vs client side

2011-12-01 Thread Nate Hill
Other Nate, this is *exactly* the advice I needed. indeed, i want to interact with the circles. Much thanks! N On Thu, Dec 1, 2011 at 10:59 AM, Nate Vack njv...@wisc.edu wrote: On Thu, Dec 1, 2011 at 12:35 PM, Nate Hill nathanielh...@gmail.com wrote: I should have provided a bit more

Re: [CODE4LIB] server side vs client side

2011-12-01 Thread Joe Hourcle
On Dec 1, 2011, at 12:49 PM, Nate Hill wrote: As I was struggling with the syntax trying to figure out how to use javascript to load a .txt file, process it and then spit out some html on a web page, I suddenly found myself asking why I was trying to do it with javascript rather than PHP.