Showing posts with tag: ajax
Posted May 17, 2011 by Nick Vogt in Programming
JSON stands for JavaScript Object Notation. It is a widely-used model for transferring variable data as text, and is often used in combination with AJAX to create the basis for highly-interactive, portable, and modular websites (Facebook, Twitter, etc).

If you are familiar with JavaScript objects, then you already know JSON! If you aren't, it is very easy to learn. A JavaScript object is just like an object in ActionScript 3 or an associative array in PHP, just with slightly different syntax.

Here is the basic syntax for JSON. This object contains two strings, an array, and an object:

{
   "one": "A Number",
   "hello": "world",
   "myarray": [
      "orange", 
      "apple", 
      "banana"
   ],
   "myobject": {
      "library": "books",
      "bar": "alcohol"
   }
}


Continue reading...
Posted May 12, 2011 by Nick Vogt in Programming
In a nutshell, AJAX allows you to update parts of a page with server-side content using JavaScript, without reloading the whole page. AJAX is not a new language, it's just a method for using JavaScript to achieve this functionality.

To use AJAX you will need to know a bit of JavaScript and (for this example) PHP, and have a server that can parse PHP. If you don't have this, you can download Apache server and PHP for free from their respective websites (follow my guide on setting up Apache, MySQL, and PHP on Windows).

Before diving into AJAX, first take a look at this example:

<html>
<head>
<script type="text/javascript">
function hello()
{
   document.getElementById('content').innerHTML = 'Hello World!';
}
</script>
</head>
<body>

<input type="button" value="Click Me" onclick="hello();">

<div id="content">Nothing here yet.</div>

</body>
</html>


Continue reading...
Posted February 22, 2010 by Nick Vogt in Programming
See my updated beginner guide here.

AJAX (asynchronous JavaScript and XML) is a method for using JavaScript and server-side programming languages to access the server and update specific elements without having to reload the current page.

To learn AJAX we will use a very simple example that utilizes JavaScript, PHP, and MySQL to update a DIV element on a page with dynamic content from the MySQL database. We will use two PHP files for this example:

Continue reading...

Features
Free Web MP3 PlayerComputer Build GuidePHP Beginner Tutorials
Post Series
ActionScript 3 TutorialsHard Drive Cost Charts
Popular Tags
actionscriptajaxcall of dutycrysisebayfacebookgooglejavascriptminecraftneweggphprageskyrimtutorialyoutube


H3XED © 2012 Nick Vogt | Web Design
Wednesday, February 22, 2012 | Privacy Policy | Disclosure Policy | Contact