Ajax, javascript and XML

What is AJAX?  According to wikipedia “Ajax (shorthand for asynchronous JavaScript and XML) is a group of interrelated web development techniques used on the client-side to create interactive web applications. With Ajax, web applications can retrieve data from the server asynchronously in the background without interfering with the display and behavior of the existing page. The use of Ajax techniques has led to an increase in interactive or dynamic interfaces on web pages. Data is usually retrieved using the XMLHttpRequest object. Despite the name, the use of XML is not actually required, nor do the requests need to be asynchronous. Like DHTML and LAMP, Ajax is not a technology in itself, but a group of technologies. Ajax uses a combination of HTML and CSS to mark up and style information. The DOM is accessed with JavaScript to dynamically display, and to allow the user to interact with the information presented. JavaScript and the XMLHttpRequest object provide a method for exchanging data asynchronously between browser and server to avoid full page reloads.” So basically AJAX is a technology which can be accessed by javascript using the DOM. It will load information and update information dynamically without having to reload the whole page.

What is javascript? In my definition of javascript, its a script based language, which is performed on the client side to create dynamic and interactive data on the web. According to wiki, the definition of javascript is “an implementation of the ECMAScript language standard and is typically used to enable programmatic access to computational objects within a host environment. It can be characterized as a prototype-based object-oriented[4] scripting language that is dynamic, weakly typed and has first-class functions. It is also considered a functional programming language[1] like Scheme and OCaml because it has closures and supports higher-order functions.” Javascript can be used to create pop-ups window, to either alert users of certain aspect of your website, or to just simply show an ad. Javascript can also be used to create hacks to override and fix css styling to help cross browser compatibility  issues. Javascript can also be used to store cookies in users computer. Javascript is very powerful and with the addition of libraries such as JQuery and Mootools and others, it even makes life that much easier for web developers to design and create their website with ease, and to know they have the entire communities help doing so.

What is XML? According to wiki “XML (Extensible Markup Language) is a set of rules for encoding documents electronically. It is defined in the XML 1.0 Specification produced by the W3C, and several other related specifications, all gratis open standards.” I use XML to add data to my website using PHP. XML is an universal language and can be understood by almost all languages, wether its php, .net, ruby, javascript etc.

Published in: on April 21, 2010 at 11:16 pm  Leave a Comment  

Open Source

Understanding the power of open source.  It is the next big thing. In this day and age, everyone is all about working together  to make things better. Open source is the  ideas and developement of a program, or software by an entire community of people. So how does this apply to code you ask? Source code is a work a lot like book, written by one or many people. The source code is copyrighted by the authors, whether they copyright or not, its automatically done. The author can then decide to distribute the the source code as they like. The distribution will only give rights to the recipients of using the code. This is how they defined open source in wikipedia “Open source describes practices in production and development that promote access to the end product’s source materials. Some consider open source a philosophy, others consider it a pragmatic methodology. Before the term open source became widely adopted, developers and producers used a variety of phrases to describe the concept; open source gained hold with the rise of the Internet, and the attendant need for massive retooling of the computing source code. Opening the source code enabled a self-enhancing diversity of production models, communication paths, and interactive communities. Subsequently, a new, three-word phrase “open source software” was born to describe the environment that the new copyright, licensing, domain, and consumer issues created.” My personal description of open source is that its a free sharing of informaion, and everything should be open source as this only promotes better developement of technologies, programs , softwares., and more usage of such products. Out of the many open source, I enjoy using wordpress, firefox, codeignitor framework, cakephp framework, symfony framework, php itself is a great open source language. For database, I love using MySQL. Its a great open source for anyone who like to create databases for their website, or blog in particular.

Published in: on April 15, 2010 at 12:50 pm  Leave a Comment