Getting WordPress post titles asyncronously using Ajax…

Getting WordPress post titles asyncronously using Ajax…

Ajax logoAssuming you already have a pretty good knowledge of JavaScript, this post should just be recap or simple enough to understand.

I know this method can also be done using the YUI framework with slightly less code but I wanted a relatively simple, raw and quick way to populate a div using Ajax to dynamically update my most recent WordPress blog posts on my homepage. I built my site before WordPress got the in thing, so i just skinned a theme and went from there. I’d previously been using a JavaScript jump list which I’d had to manually update after each post and it was tedious work. I’ll show the YUI example also later. For this simple task though, I chose 5 posts (or my page) as being an ample amount to display (later cutting that to the the most recent post) and as I’ve been dabbling with Ajax recently, I thought I’d use that method and a server side PHP module to interact with the Ajax via a GET request, communicating asyncronously on page load. For testing, I kept all the code in just one page just to make matters simple and debugging easy but naturally as I want to use an unobtrusive method and in order to remove clutter, I later removed the JavaScript into an external file of it’s own. Continue reading

JavaScript Certification….

JavaScript Certification….

My JavaScript certificationWell, I finally got around to sitting my JavaScript Specialist Certification last month, with Taitec testers in Manchester and here’s the proof!. I’d done quite a bit of work and sweating for the exam (bearing in mind all the way, the strict retest policy my course has within it’s conditions) and thankfully, the work paid off. Otherwise, I’d have been undoubtedly hit with retest fees. I’m now learning Perl programming (One of the 3 P’s, Python, Perl & PHP), which is interesting me. Continue reading