[uf-rest] Introducing JAHAH

Max Voelkel maxvoelkel at googlemail.com
Thu Jan 5 08:49:27 PST 2006


Hi David,

  JSONP seemed strange to me, so I looked it up and found
  http://unclehulka.com/ryan/blog/archives/2005/12/12/jsonpyoure-joking-right/

  I also belive that future browsers should and will fix this.

  Apart from that I think that JAHAH got everything right and is
  brilliant work.


Kind regards,

  Max Völkel
--
Dipl.-Inform. Max Völkel
University of Karlsruhe, AIFB, Knowledge Management Group
mvo at aifb.uni-karlsruhe.de   +49 721 608-4754   www.xam.de  

Thursday, January 5, 2006, 2:47:17 PM, hast Du geschrieben:

DJB> I came to this group by a slightly strange path -- I wanted a way of 
DJB> providing webservices that others could load into their own webpages. 
DJB> "traditional" AJAX, if there is such a beast, cannot do this because of
DJB> limitations with cross site scripting.

DJB> I mulled this over for a while and discovered at Christmas time that one
DJB> can use the SCRIPT element to dynamically load scripts from anywhere. I
DJB> had also been looking at a technology called JSON which has huge 
DJB> replacement to be a widely used net transport language, as it's much 
DJB> easier to deal with that XML. JSON led me to Bob Ippolito's JSONP, which
DJB> lets me combine the SCRIPT with JSON with a callback.

DJB> Finally, looking back through my notes, I revisited AHAH which provided
DJB> an easy method for producers and consumers to use HTML in "AJAX-y" 
DJB> applications.

DJB> Combining them all together, I've produced JAHAH (pronounced the German
DJB> way).

DJB> - it allows cross site scripting
DJB> - if the "jsonp" parameter is not passed to the webservice, HTML 
DJB> documents are returned
DJB> - if it is, a simple JSON payload is returned with "html" holding the 
DJB> HTML document; arbitrary other data can be added to the payload

DJB> I've written a deeper description here [1], the official home (please 
DJB> don't like to the temporary redirect) and I'm providing code samples, 
DJB> JAHAH webservices for extracting HTML from files or looking at RSS 
DJB> feeds, and all my sources. If you'd like to publicly comment or link to
DJB> it on a blog, please also link to [2]. My code also builds on Ippolito's
DJB> MochiKit.

DJB> Regards, etc...
DJB> David

DJB> [1] http://www.blogmatrix.com/tools/jahah/
DJB> [2] http://blog.davidjanes.com/mtarchives/2006_01.html#003498

DJB> _______________________________________________
DJB> microformats-rest mailing list
DJB> microformats-rest at microformats.org
DJB> http://microformats.org/mailman/listinfo/microformats-rest




More information about the microformats-rest mailing list