Coder’s Eye

A site about one of the three passions in my life.

Coder’s Eye header image 2

Ajax remoting for Invisible Castle

February 1st, 2006 · 1 Comment

Happy computerI offer the code for my Invisible Castle site under a GPL license. However, it is not the easiest code in the world to get running. Plus, it is really overkill for most people. Most people who ask for the code really just want a die-roller with database lookup for their site. They aren’t really prepared to provide a working Python/Cheetah/MySql install. That’s fine, I could help them out and pick up a new skill in one fell swoop.

Ajax to the rescue

I quickly wrote a simple remote interface to the die-roller, and then used the Prototype library to implement an Ajax interface to it. Simple simple simple. It worked beautifully, with one problem, that pesky restriction agains cross-domain XMLHTTPRequests. So, I wrote a simple little PHP proxy page, and it works perfectly!

All together, this was a pretty nice payoff for a couple hours of work, including ramping up from zero about XMLHTTPRequest objects. I already have two remote client sites functioning happily using the script, which has a working demo with install instructions here.

Technorati Tags: , , , , ,

Tags: Open Source · AJAX · Javascript · Downloads

Bookmark this article

del.icio.us:Ajax remoting for Invisible Castle digg:Ajax remoting for Invisible Castle spurl:Ajax remoting for Invisible Castle wists:Ajax remoting for Invisible Castle simpy:Ajax remoting for Invisible Castle newsvine:Ajax remoting for Invisible Castle blinklist:Ajax remoting for Invisible Castle furl:Ajax remoting for Invisible Castle reddit:Ajax remoting for Invisible Castle fark:Ajax remoting for Invisible Castle blogmarks:Ajax remoting for Invisible Castle Y!:Ajax remoting for Invisible Castle smarking:Ajax remoting for Invisible Castle magnolia:Ajax remoting for Invisible Castle segnalo:Ajax remoting for Invisible Castle gifttagging:Ajax remoting for Invisible Castle

1 response so far ↓

  • 1 creamsteak // Sep 29, 2008 at 10:43 am

    It looks like your zip file link isn’t available through the link.

Leave a Comment