Ajax remoting for Invisible Castle

Posted on | February 1, 2006 | 2 Comments

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: , , , , ,

Comments

2 Responses to “Ajax remoting for Invisible Castle”

  1. creamsteak
    September 29th, 2008 @ 10:43 am

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

  2. spankweasel
    January 28th, 2010 @ 8:36 am

    http://test.zefamily.com/remote.html is a 404.

    Can you update this link or possibly email me the zip file? Please?

Leave a Reply





CommentLuv Enabled

Video & Audio Comments are proudly powered by Riffly