Home Server Technology
Hosting Technology
Java Script Frame Works PDF Print E-mail

Intro

  There a number of cool JavaScript frameworks and sometimes you get into situation when you want to use some nice features from them in your Joomla! system. The major JS frameworks that we will talk about are: jQuery, Prototype, Scriptaculous, Dojo and Yahoo UI. Each of these frameworks has its own positive moments. Let’s briefly have a look at them.

 

JavaScript Frameworks overview

  1. jQuery

  This framework is designed to change the way that you write JavaScript. Features:

  • DOM element selections
  • DOM traversal and modification, (including support for CSS 1-3 and basic XPath)
  • Events
  • CSS manipulation
  • Effects and animations
  • Ajax
  • Extensibility
  • Utilities - such as browser version and the each function.
  • JavaScript Plugins

More than this there is UI for jQuery.

  2. Prototype
  The framework makes it easy to use object-oriented concepts like classes and inheritance within Javascript. It also supports basic Ajax functionality such as web remoting. Features:

  • Easily deploy ajax applications: Besides simple requests, this module also deals in a smart way with JavaScript code returned from a server and provides helper classes for polling
  • DOM extending: adds many convenience methods to elements returned by the $() function: for instance, you can write $(’comments’).addClassName(’active’).show() to get the element with the ID ‘comments’, add a class name to it and show it (if it was previously hidden)
  • Utilizes JSON (JavaScript Object Notation): JSON is a light-weight and fast alternative to XML in Ajax requests

  3. Scriptaculous
  The framework is built on Prototype library to provide a JavaScript with comprehensive Ajax coverage and UI effects. Features:

  • Visual Effects (See One-Second Spotlight pattern)
  • Drag-And-Drop (See Drag-And-Drop pattern)
  • Unit-Testing (See System Test pattern)

  4. Dojo
  This JavaScript framework offers comprehensive widget and browser-server messaging support. Features:

  • Extensive deployment support: dependency-based packaging, compression of required libraries into a single download. (See On-Demand Javascript pattern).
  • Framework for creation of custom Javascript widgets.
  • Library of pre-built widgets.
  • Solid drag-and-drop, effects, and generic animation support
  • Browser-server messaging support - XMLHttpRequest and other mechanisms.
  • Event management. (See Distributed Events pattern).
  • Support for bookmarkability and manipulating URLs in the browser.
  • Solid set of tools for DOM manipulation, Animations, Ajax, Event and keyboard normalization, Internationalization (i18n) and Accessibility (a11y)

  5. Yahoo UI
  Set of utilities and controls, written in JavaScript, for building richly interactive web applications using techniques such as DOM scripting, DHTML and AJAX. Features:

  • Animation: Create “cinematic effects” on your pages by animating the position, size, opacity or other characteristics of page elements. These effects can be used to reinforce the user’s understanding of changes happening on the page.
  • Browser History Manager: Developers of rich internet applications want bookmarks to target not just pages but page states and they want the browser’s back button to operate meaningfully within their application’s screens. Browser History Manager provides bookmarking and back button control in rich internet applications.
  • Connection Manager: This utility library helps manage XMLHttpRequest (commonly referred to as AJAX) transactions in a cross-browser fashion, including integrated support for form posts, error handling and callbacks. Connection Manager also supports file uploading.
  • DataSource Utility: DataSource provides an interface for retrieving data from arrays, XHR services, and custom functions with integrated caching and Connection Manager support.
  • Dom Collection:The DOM Utility is an umbrella object comprising a variety of convenience methods for common DOM-scripting tasks, including element positioning and CSS style management.
  • Drag & Drop: Create draggable objects that can be picked up and dropped elsewhere on the page. You write code for the “interesting moments” that are triggered at each stage of the interaction (such as when a dragged object crosses over a target); the utility handles all the housekeeping and keeps things working smoothly in all supported browsers.
  • Number of controls and examples available.


Adding JavaScript frameworks to Joomla!

  So, all these frameworks have enough features to work with. To add the framework to your Joomla! system you can modify the template. There are couple of ways to include appropriate JavaScript files. The first one is to download the script from the web and place it in your template folder. The second variant (it will work for jQuery, Prototype, Scriptaculous and dojo) is to use Google Ajax Libraries API. - a content distribution network and loading architecture for the most popular open source JavaScript libraries. This means that you using Ajax Libraries API use can get several benefits:

  • Caching can be done correctly, and once, by Google... and developers have to do nothing
  • Gzip works
  • Can serve minified versions
  • The files are hosted by Google which has a distributed CDN at various points around the world, so the files are "close" to the user
  • The servers are fast
  • By using the same URLs, if a critical mass of applications use the Google infrastructure, when someone comes to your application the file may already be loaded!
  • A subtle performance (and security) issue revolves around the headers that you send up and down. Since you are using a special domain (NOTE: not google.com!), no cookies or other verbose headers will be sent up, saving precious bytes.

Using Ajax Libraries API is easy and can speed up user-site interaction. To include the chosen JavaScript framework to your Joomla! system go to Extensions->Template Manager in the administration, select the template and click “Edit”, then click “Edit HTML”.
Before the closing “</head>” tag add the inclusion of appropriate JavaScript file. In case of using Google Ajax Libraries API this will be similar to the strings below:

<script src="http://www.google.com/jsapi"></script>
<script>
  google.load("jquery", "1"); //load jQuery
  google.load("prototype", "1.6"); //load Prototype
  google.load("scriptaculous", "1.8.1"); //load Scriptaculous
  google.load("dojo", "1.1.1"); // Load Dojo
</script>
In case of using local downloaded JavaScript file add the strings below (the example is for milkyway theme and jQuery file):
<script type="text/javascript" src="/<?php echo $this->baseurl ?>/templates/rhuk_milkyway/js/jquery.js"></script>

That’s it! You can use the features from other JavaScript frameworks in your Joomla! But be careful since some of them are not compatible with each other. For example, Prototype and mootools don’t work correctly together (but there is a solution for this already;))

 
Java Script what is it? PDF Print E-mail
Java Script
 
Mod_Rewrite PDF Print E-mail
http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html
 
Apache Web Server What is It.? PDF Print E-mail

Apache Web Server

Apache HTTP ServerApache Web Server is free software. Distributed by the Apache Software Foundation. Apache Software Foundation promotes free open source web technologies. The first version of Apache, based on the NCSA httpd Web server, was developed in 1995. Core development of the Apache Web server is performed by a group of about 20 volunteer programmers, called the Apache Group.

Apache Web  is the world's most popular Web  (According to Netcraft survey). Serving Hyper Text Transfer Protocol (HTTP) designed for Unix servers and now available for windows and other operating systems (NOS Network Operating Systems).
The name Apache Web server has been said to derive from the word "Patchy" applied to it by the developers of Apache Web servger. They were continually patching Apache Web server to address issues hence we have A Patchie Web server!. Microsoft's IIS is the biggest competitor to Apache Web. It has been reported that this is an apocriphal story and the name is a tribute to the Native American Apache Indian tribe, a tribe well known for its endurance and skill in warfare.
CGI, SSL, and virtual domains are just a few of the services available with Apache Web server. Apache Web server provides a full range of features. Plug-in modules are supported for the extensibility of Apache Web. Best of all and contributing to its success Apache Web server also is reliable, free, and relatively easy to configure. Because the source code is freely available, anyone can adapt the for specific needs, and there is a large public library of Apache add-ons. In many respects, development of Apache is similar to development of the Linux operating system. 

The original version of Apache was written for UNIX, but there are now versions that run under OS/2, Windows and other platforms.

 

 
PHP what is it? PDF Print E-mail

PHP is a server side scripting language that is capable of creating amazing web page functionality.

PHP is a server-side scripting language used for creating dynamic Web pages. PHP combines HTML and PHPs particular programming syntax to achieve its results. When an http request (that is a web page request) comes into the web server, the server parses the PHP script and then builds the webpage sending it to the users browser, ASP and ColdFusion also perform similar functions. ASP and ColdFusion however are proprietary products. ASP is owned by Microsoft and Cold Fusion is an Adobe product.  PHP is Open Source meaning that it is distributed Free under the Gnu public license running on Linux, Windows and most Unix servers. PHP can be built as a binary or an Apache module that can run as CGI. PHP Apache modules, are small and very fast executing without any process creation overhead. These PHP modules return their output quickly and keep server memory usage small.

PHP not only manipulats the content of your pages, PHP offers excellent compatability and conectivity to many database types, MySQL PostgreSQL, ODBC. PHP can send HTTP headers. PHP can set cookies. PHP can manage authentication, PHP can redirect users. PHPs integration with various external libraries allows you to do many extremely useful functions such as generating PDF documents to parsing XML or resizing images.

Read more...
 


Main Menu