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

PHP -Building Blocks

php-training-in-gurgaon
If –else statements: if…else statement – executes set of codes if a condition is true and another code if the condition is false Within a statement, if a certain condition is true, then something happens. Otherwise, something else happens. We can continue adding else statements as many times as we need. So, within PHP statement, we first define the variable and then set up the conditional statements like this: Syntax: if (condition) code to be executed if condition is true; elseif (condition) code to be executed if condition is true; else code to be executed if condition is false; Example 1: <?php $avg = 50 if ($avg>60) { echo "You have a good score"; } else { echo "Score is less than average"; } ?> Example 2:  <?php $status =…
Read More

PHP Superglobals

php-training-in-gurgaon
We already learned about variables, but there are some Readymade or predefined keywords in PHP that can be used without you having to create them first. Predefined or Superglobals variables are used to provide information from and about the web server, the web browser, and the user. There are several types of Super Global Variables:- $_GET - Is used to pass data through URL. Example: http://websjyoti.com?id=2 $_POST - Is used to pass data to server by hiding from URL. $_REQUEST – Is the combination of $_GET, $_POST, and $_COOKIE. $_SESSION - is used to maintain session and data from Local machine to Server. $_COOKIE – Is used to save/get user data on same machine in browser cookies. $_SERVER – Is an associative array which is used to know server information…
Read More

PHP – Date / Time Functions

php-training-in-gurgaon
When working in any programming language, dealing with dates and time is a simple task. That is, until time zones have to be supported. PHP's time () function gives you all the information that you need about the current date and time. It requires no arguments but returns an numeric value. If you will call to time() function which will return a set of numeric values which is difficult to understand. So to make it easy we can have time format along with the date() function. <?php $today = date("d/m/Y"); echo "Today is ".$today; ?> We can use different time format with separator like d-m-Y, d.m.Y and so on. Display Current Date and Time:  We can use the following characters to format the time string: <?php echo date("h:i:s") . "<br>";…
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