'ajax' Category

  • Feb
    18
    2009

    Be Careful parsing your URL string with Javascript

    …so I know you’ve looked around the net for a good method to parse URL variables with javascript, and I’m sure that you’ve found some elegant method that looks something like: function parseLocation() { var turl = window.location.search; ar = turl.split(‘&’); var b = {}; for (var i = 0; i < ar.length; i++) { […]

    Share/Save
  • Jul
    02
    2008

    Stupid IE6 and its iframe cookie idiocy needs a throat punch

    …so let’s say you have a site, that has two versions, a.throat-punch.com and b.throat-punch.com. And Apache uses a cookie to determine which version you should be viewing, and sends a 302 redirect if you’re on the wrong domain. Now let’s say you want to access a page on this site from an <iframe> from an […]

  • Feb
    15
    2008

    Elegant little PHP JSON encoder

    update: Jay Williams has flushed this out to be a lot more useful. Check out his rendition here. …so I wrote (what I think is a) clever little function (well, two functions) to take a complex php variable and turn it into a json-ized string, ready to be passed back to javascript. It works on […]

 
Powered by Wordpress and MySQL. Theme by openark.org