how to script with monkey web server ?
Forum: Programming and Scripting
Topic: how to script with monkey web server ?
started by: manishsadh
Posted by manishsadh on Feb. 16 2007,07:20HI Folks,
i need to do some web programming with html and scripting of some kind to make the web pages dynamic.
i want to use just the monkey web server. i dont want the overhead of any dsl extensions.
what are my options ?
Posted by mikshaw on Feb. 16 2007,15:00CGI programming with Perl, Lua, or Bash (or C if you can use tcc and its header to build your program).
< http://www-128.ibm.com/developerworks/web/ >
< http://developer.yahoo.com/yui/#start >
< http://developer.mozilla.org/en/docs/AJAX:Getting_Started >
< http://www.w3.org/TR/html4/struct/global.html >
< http://code.google.com/ >
It seems more and more people are opting out of client-side scripts for security and privacy reasons, and browsers are making it increasingly easy (and in some cases seemingly encouraging) to disable these scripts.
In addition, these scripts are hardly ever implemented the same from browser to browser.
Using server-side programs is also faster in many cases, since the script does not need to be downloaded before it is run.
Personally I have scripting disabled by default in my browsers, with only a very few trusted sites enabled.
Posted by newOldUser on Feb. 16 2007,23:53Mikshaw, I agree with you to some extent... It's true that server side scripting has it's place. If you're moving lots of database fields around then the server is perfect.... On the other hand if you're interest is in a more fluid, application like, experience for the user then client side scripting works better. It's just a matter of the right tool for the right job and sometimes I use both.
manishsadh asked about using a native DSL environment to do dynamic webpages. That puts a limit on many of the server side scripts. Like I said before it really depends on what he wants to do. If he wants to display a lot of database (SQLite?) information on static html pages then maybe server side will be best. If he wants to have things float around on his webpage, appear and disappear on command, change fonts and colors or do drag-n-drop, well then server side isn't going to cut it.
Posted by mikshaw on Feb. 17 2007,03:21yes, I think you're right that each has it's place. Another particular instance when client-side scripting would be better is if you have no cgi access to the server (also unfortunately an increasing situation).
Posted by durbnpoisn on Mar. 17 2007,16:53Right tool for the right job, is the key.
Both server side and client side have their pros and cons. But moreover than that, they each have their limitations. To effectively write a webbased app, you need to use both.