I am working on an AJAX web service application this days. A typical AJAX web services now-a-day usually follows the MVC model (MVC stands for Model-View-Controller). The view is usually a client side that is written in Javascript and runs entirely in a browser. The "J" in AJAX is for Javascript. Having the application run in a browser avoids the hassle of installation, and enables easy access from any computer in the world.
Javascript has gone a long way. The DOM objects have made programming the entire UI in a web page possible. Various programming helper packages, such as Prototype and Mochi, have helped making it a lot easier. Although I have to say that programming and debugging in Javascript is such a pain.
Programming in Javascript to run in a browser does have a lot of limitations. One of them is that Javascript has no access on the local file systems. This is indeed a security consideration. Javascript may be run with simply loading of a web page. Without such restriction, the malicious code would be destroying or stealing one's local data in no time. This general introduction of Javascript has a really well written explanation.
What if a Javascript application does have a legitimate need to access the local file system? Microsoft provides a built-in ActiveX object named Scripting.FileSystemObject. Here are some examples on how it may be used. The FileSystemObject (FSO) has its own limitations. It only allows accessing to files in text mode, and of course it only works with Internet Explorer. If more complicated access is necessary, the best way seems is writing one's own ActiveX objects for Internet Explorer and plugins for Mozilla Firefox.
Thursday, January 31, 2008
Tuesday, January 8, 2008
Bill Gates' Last Day at Work Video
People has talked about it for a couple of days. The keynote speech that Bill Gates gave at this CES will be his last one given there. I haven't been to Las Vegas this time, but have been to the previous CES and heard Bill's speech. It is usually not so exciting promotion of Microsoft technologies, though I do like a few things he talked about, such as pen based tablet computer though it does not eventually pan out.
Anyway, from the webcast this speech is as boring, except for two things. One is a video about Bill Gates' last day at work. It is funny and cool. Bill is actually laughable and likable. Of course, one can say that with billions of dollars, he can get the best producer to script this for him. At least it is cool. The other cool thing is the gadget he showed at the end of the presentation. I know it is a demo, and the real thing never comes out as cool as prototype. But isn't it cool?
Here is the video. Enjoy!
Bill Gates Last Day at Work - CES 2008
Anyway, from the webcast this speech is as boring, except for two things. One is a video about Bill Gates' last day at work. It is funny and cool. Bill is actually laughable and likable. Of course, one can say that with billions of dollars, he can get the best producer to script this for him. At least it is cool. The other cool thing is the gadget he showed at the end of the presentation. I know it is a demo, and the real thing never comes out as cool as prototype. But isn't it cool?
Here is the video. Enjoy!
Bill Gates Last Day at Work - CES 2008
Subscribe to:
Posts (Atom)