Since I first started teaching myself PHP as well as GET and POST methods back in May to throw together a scrobbler for Last.fm, I’ve wanted to update it to make it a little more… AJAX-y (as the kids are saying today).
Yesterday, I started looking into the best way to go about doing this and came across XMLHttpRequest for the first time. Sitting here reading about it, the grin on my face grew: this thing is absolutely perfect.
My plan at the moment is to update the old scrobbler to make it all pretty and more friendly, but I keep on running into problems. For example, XMLHttpRequest only allows data transfer across a single domain name (I might not have described that well, but that’s the case). A search reveals that this is a fairly widely known thing/issue/whatever, and I’m looking at ways to get around it at the moment. As I’m on shared hosting and don’t have access to the server configuration, I’m going to try doing it via PHP. This LiveJournal post is also applicable to the situation.
Anyway, that’s the stuff I’m getting on with at the moment. Now, back to some coding…