Here is a working example that demonstrates the basic capabilities of this method:
Some more examples...
Well, you get the idea... let's move on to the PHP to see how this is accomplished.