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

Cross-Document Communication: This part of the JavaScript and Iframes Tutorial has been expanded to demonstrate more clearly 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

PHP to JavaScript Examples: We have added more examples and in-depth information throughout our PHP to JavaScript Tutorial. See the updated presentation on the use of PHP's json_encode with multidimensional arrays, the use of a reviver function with JavaScript's JSON.parse, and more.

Read On

JavaScript with Radio Buttons and Checkboxes: JavaScript and Forms is the latest addition to our collection of tutorials. It 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: Examples from the JavaScript and Forms Tutorial for select boxes show how to get the value of the selected option, how to get a list of selected options in a select box that allows multiple selections, how to add and remove options in a select box using DOM methods, how to dynamically change the options in a select box based on the selection in another, and more.

Read On

Highlights

Setting Iframe Height: This popular JavaScript sets the height of an iframe to match the height of its content so that regular window scrollbars are used instead of iframe scrollbars. An example demonstrates.

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