JavaScript and PHP Tutorials

JavaScript with PHP

JSON, PHP, and JavaScript
Information on passing data from PHP to JSON and JavaScript. Covers JavaScript Object Notation, PHP's json_encode, JavaScript's JSON.parse, and more.

JavaScript Tutorials

JavaScript and Forms
How to interact with forms and form elements using JavaScript. Demonstrates with radio buttons, checkboxes, select boxes, and more.
Ajax and XMLHttpRequest
How to handle Ajax requests with XMLHttpRequest. Demonstrates GET and POST requests, and JSON with Ajax.
JavaScript Arrays
JavaScript array methods; how to add and remove elements; how to search, sort, and traverse arrays; multi-dimensional arrays, and more.
JavaScript Strings
JavaScript string methods; how to search strings, how to select substrings, how to convert strings to arrays, and more.
JavaScript and Iframes
Using JavaScript to interact with iframes. Examples: cross-document references, setting iframe height, loading new documents, iframe onload, dynamically generating an iframe, and more.
Iframes and postMessage
How to use the postMessage method to safely communicate between documents on different domains.
JavaScript Object Literals
Object literal definition, syntax, and examples. How to access, modify, and add object literal properties.
Data Type and Type Conversion in JavaScript
Find out about JavaScript's loose typing, automatic type conversion, the typeof operator, parseInt and parseFloat, and type conversion functions.
Initializing JavaScript - Old and Modern Methods
Various means of setting up onload or DOM ready function calls, from old-school to the DOM event model.
Troubleshooting JavaScript Problems and Errors
What to do when a script doesn't work. Solving common problems; locating and deciphering error messages.

PHP Tutorials

PHP Arrays
Information on PHP arrays and array functions. How to add and remove elements, how to search and traverse arrays, and more.
PHP Strings
Information on strings and string functions in PHP. How to search, compare, cleanup, format and display strings, and more.
Variable Type and Type Conversion in PHP
Find out about automatic type conversion in PHP, and how to check or change the type of a variable or value.

Back to top