Posts Tagged "JavaScript"

AJAX Powered Lightbox

You may or may not have heard about "Lightbox". This script is well known for creating the effect of dimming out a page and showing an element (like a picture or page) in the foreground at full illumination. Against the dark background this makes the element pop as well as disables the background temporarily for the user. The effect is nice for things like photo galleries or showing text snippets. ...

Spewing JavaScript JSON with PHP

There may be a time in the not so distant future where your employer may ask you do develop a web application which will hook up with a JSON data source. Perhaps you will be like "Uhhhhhh" and have a dumb look on your face. Have no worries, the underground is here to help! Lets use some PHP to generate some JSON code which we will fetch via AJAX and ...

Directory Tree Script with PHP

The old saying goes "The world is but a file and I, a lonely man, shall list it in the cosmos!" Ok, I made up the new old saying but haven't you ever wanted to add a basic file directory listing script to use with your own file manager? Maybe something that can simply list the contents of a directory (its subfolders and files) and even make them expandable/collapsible like ...

Parsing XML and a Dynamic Callback in JavaScript

One of the most common tasks for a web developer is implementing an AJAX solution to create a more dynamic interface. A common method is to query a database, get some results, parse the results and update the interface without needing to refresh the page. But how do we customize our data, prepare it for some parsing, use the data returned to create something useful? The other day I had ...

Fading Objects in Javascript

Ever visit a website and see some elements which seem to disappear or appear with a gradual fade in or fade out effect? Ever wonder how that is done? I am sure you have at one point. You probably dug around Google and would find some long winded scripts that may or may not work quite right. Maybe they are hard to setup and always had bugs. We here at ...