Tag Archive: AJAX
Debugging AJAX
I can debug my JavaScript using console.log(), which also displays code errors. I can debug my PHP code using print_r() (which I prefer because it’s leaner; many use var_dump()). Since I have PHP’s display_errors directive enabled, and usually I declare error_reporting( E_ALL ^ E_STRICT ) or error_reporting( -1 ), so errors are output within the browser.*
So I can immediately read ...
Blurbette Plugin: Copy Metabox
In this chapter, I’ll create the metabox enabling a user to copy any post to a new Blurbette. This action shouldn’t force the user to leave the edit panel, so copying ought to take place via AJAX. And, for good measure, why not track whether a post has already been copied to a Blurbette, and link to it?
My plan is ...
Blurbette Plugin: TinyMCE Control
This time I’ll define a TinyMCE Control class that must be instantiated.
The last one, the Shortcode class, works fine without instantiating because all its properties are one-offs, and its public elements are available to all scopes (global and function).
This class defines a ‘thing’ that has unique properties, and there might be more than one of these ‘things,’ so it must ...