The Use of Ajax Programming in cnn july 7, 2008



Download 8.46 Kb.
Date02.02.2017
Size8.46 Kb.
#16296
The Use of Ajax Programming in CNN

July 7, 2008

William L. Waldock Jr.


Ajax programming stands for “asynchronus JavaScript and XML” which is a web development technique used to create interactive web applications that do not need to completely reload when scrolling towards different content. Ajax web applications “can retrieve data from the server asynchronously in the background without interfering with the display and behavior of the existing page.”
Ajax was first used back in 1996 when internet explorer introduced the IFrame element. Microsoft's Remote Scripting, introduced in 1998, acted as a more elegant replacement for these techniques, with data being pulled in by a Java applet with which the client side could communicate using JavaScript. In 2002, Microsoft created the XMLHttpRequest object as an ActiveX control in Internet Explorer 5, and developers of Mozilla and Safari followed soon after with native versions of the object. It did not become an official web standard until April 5, 2006, when the World Wide Web Consortium (W3C) released a specification for the object.
Advantages


  • In many cases, the pages on a website consist of much content that is common between them. Using traditional methods, that content would have to be reloaded on every request. However, using Ajax, a web application can request only the content that needs to be updated, thus reducing the number of server requests.

  • Because only sections of pages need to be reloaded, Ajax improves usability of web applications, giving users the feeling that changes are happening instantaneously.

  • The use of Ajax can reduce connections to the server, since scripts and style sheets only have to be requested once.

Disadvantages




  • Dynamically created pages do not register themselves with the browser's history engine, so clicking the browser's "back" button would not return the user to an earlier state of the Ajax-enabled page, but would instead return them to the last page visited before it. Workarounds include the use of invisible IFrames to trigger changes in the browser's history.

  • Dynamic Web page updates also make it difficult for a user to bookmark a particular state of the application. Solutions to this problem exist, many of which use the URL fragment identifier (the portion of a URL after the '#') to keep track of, and allow users to return to, the application in a given state.

  • Because most web crawlers do not execute JavaScript code, web applications should provide an alternative means of accessing the content that would normally be retrieved with Ajax, to allow search engines to index it.

  • Any user whose browser does not support Ajax or JavaScript, or simply has JavaScript disabled, will not be able to use its functionality. Similarly, devices such as mobile phones, PDAs, and screen readers may not have support for JavaScript or the XMLHttpRequest object. Also, screen readers that are able to use Ajax may not properly read the dynamically generated content.

  • The same origin policy prevents Ajax from being used across domains, although the W3C has a draft that would enable this functionality.

  • The number of HTTP requests to a web server can increase considerably, causing an increase in server load.

The use of AJAX programming could be really special for the CNN application. One of the leading criticisms of online news content the lack of a “stumble upon” effect that you have in a newspaper, i.e. you need to seek out almost all stories. In a news paper you have to browse various stories you may not seek out as you flip through the pages looking at various articles. With AJAX you could almost create a newspaper on the monitor that people can drag and pull. If you think about the evolution of monitors to a multi-touch platform you can see how AJAX programming in a news source could alone be worth switching from the incumbent news sources. Another cool thing to think about would be some sort of partnership with Apple since they are leading the way in multi-touch platforms. This could turn into Apply installing our web app on all their phones and new computers, as well as blackberry, which is closely following suit with a multi-touch screen in a mobile phone. I think this type of formatting could really lend itself to mobile applications since they are so hard to view on a small screen, being able to zoom and almost throw the news paper around on the screen could prove to be an awesome feature. The range of options that an AJAX style of programming would open up as far as presenting content is pretty awesome. It also provides a huge competitive advantage for the “early adoption” crowd and gets them to try out the site.


I also think AJAX could boost advertising revenues tremendously. In the current news form advertising is very expensive in a print source, but the advantage is people are forced to view you ad as they leaf through the paper. In a traditions news website the ads are placed to the side or out of view, where as with our site and AJAX programming we could place them right into the news paper just like in print form. On top of that we could adjust the adds, and I would work on this with Google, so that the adds show up depending on the stories you look at and based on your previous Google search histories. You could also use interactive or various content form adds with music when you scroll over them, or some sort of moving video ect. Then we could have a premium option in which these adds don’t exist, but instead we do automatic story selection so that as they are scrolling through the page the servers are automatically selecting the best stories to place when the user scrolls. I also think it would be cool to have subjects that are assigned to a particular scrolling direction. Lets say if you scroll up it selects international news, sideways to the left is local news, to the right is financial news, down is arts/entertainment ect. This would revolutionize the news and get MAJOR notice.

Download 8.46 Kb.

Share with your friends:




The database is protected by copyright ©ininet.org 2024
send message

    Main page