Pages

Showing posts with label Code. Show all posts
Showing posts with label Code. Show all posts

Monday, August 13, 2012

The basics of JavaScript

If you are writing big code it is very helpful write comments to the segment of the code as comment will not be executed, it is for code masters to check where and which segment is located.


Learning HTML is not the sole discretion of programmers as the trend can be seen it is been learnt by many bloggers and webmasters. The sole purpose for this is to make it more and more convenience and to customize the web page to its fullest extent all by it self as with this knowledge in your kitty , you can reduce the cost factor as you can make the coding and with the advent of modern web technologies . With the advance modern web , where you can find more and more use of API and other related applications and with due course of time even the web page is fast becoming one of the conglomerate of applications visibility.

JavaScript is a scripting language and it is funnily called as diet programming language because of its easy in nature and the way it can be employed with very slight nature of use and appliances. It is been designed for easy to learn and adopt and it is wonderful for novices. It is also true that you can learn and can code the language within short span of time; it is very easy to use and adopt. It is a good practice to learn the basics of NTML before learning the basics of JavaScript. In the later time I shall write the details of HTML and the points which you should know about it.

 

How Java Script works:

Java and Java Script share the names only but these two languages have very little in common, in fact there are vast differences between these two languages. JavaScript is the language which meant to introduce the very basic elements of web and it is solely based in web and it works in cloud. Java is the language which tends to work as desktop application and in many big enterprises and also it goes on with to work online with various databases and its scope is very high and it does related with many applications and platforms simultaneously.

Java script is an interpreted languages and the browser interprets it and processed all the information in real time by contacting all server files and then interpret and shows it on your web page.  You can change the value of variables at any time s the name suggests it is dynamic in nature; all variables need a declaration – that is you have to tell the interpreter what to treat as variable.

Functions are blocks of code, once written can be used as many times as declared within the program. If you want to add the functionality of Add and Print, then you could write a function called AddAndPrint and so on. It is useful for more complex coding as it can supplement easily for hundreds lines of code and that can reduce the overall size of the code. As JavaScript is always at the interpret side and works with browsers so minimization holds the key as if its size is very small then it would not affect the vital page load time and in this way you can have some of the added functionality plus search engine optimization and page rank settings. Many JavaScript in the web page can reduce the page load time, thus makes heavy the site and also it affects your site with Google Panda updates and for this it is vital in nature, as it can affect Google’s search front page.

That is why, it is good to use functions if you are using and coding long and in this manner it does makes the code small and precise. Object, in programs represent physical entitles, complete with their attributes and behaviours.  The objects you will encounter when writing Java Script code will include the browser window- you can use the command to open the window. Everything else is also an object- be it text boxes, images, even your mouse cursor.

Java Script code is always enclosed in the <script> tags inside your HTML document. You can insert code blocks anywhere in the document, but it is always good practice to enclose your script within the <head> tags of the HTML. This way, the script will always be loaded before it gets used within the page. There are no semicolons at the end of each line. They are purely optional, and there so that C programmers do not suddenly feel out of their elements when writing Java Script.

If you are writing big code it is very helpful write comments to the segment of the code as comment will not be executed, it is for code masters to check where and which segment is located. If you have the JavaScript code within your web page then in the modern browsers there are very vital functionalities from where the user can right click on the page and can see the view source to observe the use in your website. There are provisions while making the code if you do not want the visitors to watch the code then you can make it within <script> tags to employ this idea.

Variables in Java Script can be declared by using “var” statement. The switch statement takes the variable browser and compares it one by one to the values mentioned in the case statements. The break statement prevents the browser from executing the very next line of code and tells it to exit the switch block.

There is one different way you can check your conditions in Java Script- this one specifically if you want to assign a value to a variable based in a condition. Programming loops let you execute the same block of code over and over again as many times as you like. The simplest example would be printing the numbers 1 to 10 or 1 to 100. The for loop is typically used when you can predict exactly how many times a piece of code. The while loop effectively tells your browser as long as this condition is true keep executing this block of code. You would typically use a while loop to check a condition rather than execute code a specific number of times this reducing the page load times.

Wednesday, June 6, 2012

Content management systems: Joomla and Drupal

It is the content management system used with dynamic websites and web content, many a times it requires a special kind of software for editing and constructing articles. It makes the development of websites much easier .

Joomla:


If you observe it , this is the relatively new content management system and of course this has taken the content management industry by storm. It is based on Mambo and it is beautiful and very easy to use and manage. It is open source software and it is licensed under GPL. Download it free of cost from joomla.org and it is always updated regularly.

Joomla is a phonetic spelling of the Swahi9li word Jumla which means �together�. It is largely based on Mambo, which has same set of features but it has some of fine features which stands out from the rest.

Features:


1.    It is like the next door HTML site, so the peer dressing for Joomla is not necessary.
2.    The news and the article management system is the most advance and the modern feature with full fledged WYSIWYG editor that is integrated with various option to add  tables, flash contents and advance HTML contents.
3.    There is an additional option to add the meta data in each of the article and with this the modern web search engine optimization can be done properly.
4.    It has the most advanced and busiest caching system mechanism and if your site is busy with too many visitors then it will not break due to its spectacular and absorbing web caching mechanisms.
5.    The RSS management system is built into this and due to this feature you can use it to provide the news on your site.
6.    A lot of elegant and absorbing beautiful themes are available and with this your site can take the habit of great themes.

Installation:

1.    Download the latest version of Joomla from joomla.org and use the WinRar to extract the achieve zip file. Extract achieve on the Windows. Copy the extracted contents to the new folder ��Joomal . Place this folder inside the �www� directory in C:\Program Files\EasyPHPx-x\
2.    Now after wards the installation is very simple. Point your web browser to http://loaclhost/joomla/ It will not go through the pre installation check. Then go ahead and install the joomla.
3.    Click the next button at the top of the page, and then enter the details about the local server.
4.    Under the �Host Name� enter �localhost� then enter your MYSQL user name and it is the �root� and then leaves the MYSQL password field blank. Enter the data base name as the �joomladb� . It is now time to click the Next. Then the installed should advance to the next step.
5.    Now you will need to confirm the website detail. The URL should be http://localhost/joomla and the Path should be C:\Program Files\EasyPHPx-x\www\joomla  . Then enter your email id and administration password.
6.    If you go through all the information correctly and following all the instructions correctly, then the installation of Joomla should now be complete. Now click on the �Administration� link and then enter the details and start modifying and designing your website.

Drupal:

It is second to Joomla and it is popular content management system. It is the English spelling of the Dutch word �Druppel� which means the drops of water. It is mainly for the blogging engine but with due course of time it is being constantly evolved and it is now fast becoming the one of popular content management system for blogging. It is being constantly developed and managed by the group of individual and enthusiastic developers. It is being offered free on Drupal.org . It is released under the terms of GPL. It offers an excellent protection against the security threats and it is best for small business ventures as well as independent web masters.

Its interface is flexible, very ease to use and feature full makes it more and more popular and it has been employed in some of the popular websites. This is the reason why many popular websites use Drupal as its base.

Features:


Through out the years Drupal has been renowned as it is feature rich and this content management system it is almost at par with most of the features with most of the renowned content management system has.
1.    One of the most unique and out standing part of the Drupal content management system is its theme engine. You can customize each and every theme that has the plenty of options to choose it from. It is flexible and lots of theme is available for the customization after the installation.
2.    The module or the theme management system of Drupal content management system is very simple to use with enable, disable and the updates features.
3.    It gives various formats with authoring and publishing options.
4.    There is the access control system where you can restrict the certain part of the website and restrict them for further use. You can also set access rules and roles.
5.     There is the useful section inside of the content management system where you can access, modify or delete the comments and due to the advent of plenty of spam this system is perfect to use it.

ittech042

Installations:


1.    Download the latest build of Drupal from drupal.org and you can use the popular achieve extract format.
2.    Then , copy the extracted content to the new folder called as �drupal� then place the folder inside the  �www� directory in C:\Program Files\EasyPHPx-x\
3.    After this you will have to create the data base using PhpMyAdmin  . Go to http://localhost/mysql/ .  Then in the main PhpMyAdmin menu , under the �create new database� , enter the database name �drupaldb� and click on �Create� .
4.    Under the �drupaldb� database left clickon SQL on the top bar. Then go to the sub heading �Location of the text file� and then left click and browse and then select the �database.4.2.mysql� file. It is located in �C:\Program Files\EasyPHPx-x\www\drupal\database� after the click �GO�.
5.    In the next step edit the configuration file to enter the details about your server. Go to �C:\Program Files\ EasyPHPxx\www\drupal\sites\ default and edit the file �settings.php�. In the field �$db_url�, enter �mysql://root;@localhost/drypaldb� write it without the mentioned quotes.. �root� being the username of MySQL and �drupaldb � being the database name.
6.    If you have followed all the steps correctly then the installation part is now over. Then point your browser to http://localhost/drupal and then create an administrative account. To do this click on the �Create the first account� on the home page of your drupal installation. Then, log into your Drupal account and start customizing and decorating your website from within i

Digg This