[photo] Mark Jeftovic

easyDNS CEO, Career Contrarian & AntiGuru

easySPF: an ajax enabled SPF wizard

Creating Sender Policy Framework (SPF) data is a task that naturally lends itself to ajax. As you tweak the parameters of your policies, the spf record changes on the fly. This was a good opportunity for me to learn jquery and I was pretty impressed with how fast jquery enabled me to get a basic framework up and running.

What took me the longest was figuring out how to get the contents of my form processing via an external php script before being rendered into my inline <div>, after awhile I gave up and asked one of my programmers. Turns out it’s the load() event handler, but the jquery page doesn’t really make it evident in the documentation that what I want to do is this:


$("#my_div_id").load("some_script.php", { myvar: myvar } );

Then I can access the myvar and anything else passed in the parameter list via the php $_REQUEST structure.

Anyhoo, the result is easySPF: an ajax enabled SPF wizard.

3 Comments to easySPF: an ajax enabled SPF wizard

  1. August 24, 2007 at 3:01 pm | Permalink

    Did you forget to include the “include” option?

  2. September 3, 2007 at 7:33 pm | Permalink

    Hi Mark. You might want to check out the Mootools framework. In my oppinion its by far the best JS framework and has a sleek effects engine.

    Thanks for the PHP Whois libraries up at sourceforge. I just use them on a new tool: http://www.semlabs.co.uk/old-domain-digest/

    You probably saved me a good few hours or even days 🙂

  3. June 18, 2008 at 9:47 pm | Permalink

    I have been using that Mootools Framework i like it for the cross browser ability. As i use Firefox as my web browser but the population still under control of IE 6 & 7.

Real Time Analytics