Introduction to Ajax

php-training-in-gurgaon
Ajax (Asynchronous Java script And XML)  Introduction In Jesse Garrett’s original article that coined the term, it was AJAX. The “X” in AJAX really stands for XML HTTP Request though, and not XML. Jesse later conceded that Ajax should be a word and not an acronym and updated his article to reflect his change in heart. So “Ajax” is the correct casing. As its name implies, Ajax relies primarily on two technologies to work: JavaScript and the XML HTTP Request. Standardization of the browser DOM (Document Object Model) and DHTML also play an important part in Ajax’s success, but for the purposes of our discussion we won’t examine these technologies in depth. How Ajax Works At the heart of Ajax is the ability to communicate with a Web server asynchronously without taking away the…
Read More

The While Loop

php-training-in-gurgaon
A While loop is used when we have to repeat a set of statements as long as the condition is false. It could be the best where number of repetition is not known earlier or in advance. It can be explain in plain English as "Keep doing something until a condition is true". Syntax: while (condition) { //  Set of statements goes here; } Example <?php $ct=5; while($ct<=50) { echo  $ct . "<br>"; $ct = $ct+5; } ?> Output: 5 10 15 20 25 30 35 40 45 50 The do…while loop example: <?php $i = 1; do { $i++; echo  $i . "<br>"; } while($i <= 3); ?>  Output: 2 3 4 Difference Between while and do…while Loop: With a while loop, the condition to be evaluated is tested…
Read More

Arrays in PHP

php-training-in-gurgaon
An array is a data structure that stores similar type of values in a common variable. Arrays are also called homogeneous data type. For example if you want to store 50 numbers then instead of defining variables it is easy to define an array with size of 50. In PHP, the array() function is used to create an array Arrays can store numbers, strings and any object but their index will be represented by numbers. By default array index starts from zero. $x=array("laxmi","hirdesh","rahim","ashu","amit"); // To count number of elements stored in array x echo count($x); // To populate value from any specific index or position //echo $x[1]; // output – Hirdesh // To print all elements in array x - using for-each loop echo " <br>Names are :"; foreach ($x…
Read More
PHP Ajax Tutorial

PHP Ajax Tutorial

php-training-in-gurgaon
The Ajax provides two way to developers to build rich application, server centric and client centric. The extenders use a block of JavaScript code to add new enhanced capabilities to ASP.net. JQUERY is the library of JavaScript. It is lightweight, supported by all the browser, active developer community, and extensible plug-in to develop the website. Using jqurey we can do DOM manipulation, apply CSS to the element, CURD operation on the element, and apply CSS runtime AJAX allows web pages to be updated asynchronously by exchanging small amounts of data with the server behind the scenes. Ajax uses the JavaScript DOM, the XMLHttpRequest object, XML, and CSS to download and display just the content that needs to change. Ajax allows content on Web pages to update immediately when a user…
Read More