Welcome to Dynamic Web Coding!

Welcome to dyn-web.com, home of Dynamic Web Coding: JavaScript and PHP in action!

  • Presenting scripts that are lightweight, unobtrusive, and well-documented.
  • Providing tutorials with practical problem-solving information.

Latest Additions and Updates

JavaScript Arrays: Does JavaScript support associative arrays? See our discussion in the new JavaScript Arrays Tutorial which also covers how to copy arrays, how to add and remove array elements, and more.

Read On

PHP to JSON and JavaScript: Find out how to use PHP's json_encode function to translate PHP arrays to JSON and JavaScript. Examples demonstrate with multidimensional arrays too. Find out how to use JavaScript's JSON.parse method to parse a JSON string, how to use a reviver function with JSON.parse, and more.

Read On

Cross-Document Communication: Find out how to communicate from one document to another when using iframes. Examples show how to reference the iframe and the document inside it, how to access the containing document from within the iframe, and how to communicate from one iframed document to another.

Read On

JavaScript with Radio Buttons and Checkboxes: The JavaScript and Forms Tutorial includes lots of useful examples, such as how to get the value of the selected radio button, how to handle checkboxes onclick, how to make sure a checkbox is checked before submitting a form, and more.

Read On

JavaScript with Select and Option Elements: Find out how to get the value of the selected option in a select box, how to get a list of multiple selections, how to add and remove options using DOM methods, how to dynamically change the options in a select box based on the selection in another, and more.

Read On

Highlights

Iframes Tutorial Favorites: The JavaScript and Iframes Tutorial includes lots of useful examples, including how to create an iframe using DOM methods, how to handle the iframe onload event, how to handle links to iframes or in iframed documents, and more.

Read On

PHP Random Image: Keep your homepage looking fresh by displaying a different image each time the page loads. This simple script will select an image at random from a PHP directory listing. Setup is easy!

Read On

Javascript Banner Rotator: Add a little action to your page with the JavaScript Banner Rotator. You can include images and text with links in the rotator, pause and resume on mouseover and mouseout, rotate at random, and control the rate of rotation.

Read On