It's nearly 6 am on Sunday, October 8th. For whatever reason, I can't sleep. Instead, I've spend the past 3 or so hours writing AJAX code. If you're not a programmer, there's a good chance this is the last sentence of this post that you'll want to read. Don't say I didn't warn you.
I'm working on a project that pairs an AJAX front-end with a PHP back-end. To make things even more complicated, the content for the site is stored both in a MySQL database and in XML files. The plus side is that the complexity of the project has pretty much forced me into improving my coding style, my college advisor
would be proud. It's also making it much more interesting and requiring me to learn a lot just to get it done.
the relevant objects, pass them that way, and then just
them in the PHP script. I'll have to play around with that.)
Once the object set has been re-created in the PHP script, it is then able to pull the needed data from a MySQL database and send it back. Unfortunately, the data that gets sent back needs to go into three different places, so the response has to be in XML. This is where I'm currently stuck. I can format the response as valid XML with no problem, however once I do that and
variable, and not the
one. This would be fine, except that I apparently can't use
. Once I figure this out, the rest of the project will be a breeze, and should only take another couple of hours (at least to get it demo-able, there are a few other complex features I need to add before it's actually ready, but they don't affect the functionality so much as the interface). Hopefully I'll be able to figure this out (or some helpful soul will be able to give me a hint) and get the project finished by the end of next week.
For now, I think I'm going to give sleeping another go.