Toddish's Scripts

Demos

To view the code for the demos on this page, simply view the source.

Simple mailing list

This is the most basic example, simply passing the content to the popup.

View the simple mailing list demo.

Mailing List with JavaScript Validation

This example prevents the usual AJAX submission and does its own JavaScript error handling, submitting the form normally on success.

View the mailing list with JavaScript validation demo.

Register/Login Form

This demo shows how you can have two different forms on the page, each with their own callback functions.

View the Register/Login demo.

Simple Modal

This modal example shows how to create a modal lightbox that loads in content from the page, rather than via AJAX.

View the simple modal demo.

Simple Modal with Content Replace

This modal example shows how to replace the content in the popup on the fly. Note that you may need to apply the click event via the "Live" handler.

View the modal with replacement content demo.

Append data to the end of the content URL

Easily append data to the end of the content URL. This is especially useful if you want to pass custom data across to each popup, without targeting each popup individually.

View the modal with appended data.