Thursday, January 12th, 2006
JAHAH – Cross-Domain JS Library
<>p>With all the recent excitement about cross-domain Javascript, it was perhaps inevitable that libraries would emerge to automate the process. David Janes has produced one such library: JAHAH. The name comes from AHAH, which we posted about earlier.Amongst its features:
* It is easy for web page authors to include JAHAH documents
* It is easy for content producers to create JAHAH documents
* JAHAH documents can be included “cross-domain”, unlike most AJAX technologies (without bridging)
* JAHAH documents are search engine friendlyThe package comes with several Python JAHAH webservices:
* jahah-include — extract the body or a fragment of another document and return it as a JAHAH document
* jahah-feed — convert an RSS/Atom feed into a JAHAH document.All JAHAH webservices must have a fallback mode into AHAH, making these tools useful in that environment also.
Code usage:
Automatically load by magically marked hyperlinks
<script type="text/javascript" src="jahah.js"></script> ... <a rel="include-jahah" href="http://www.example.com/jhah-service/">loading...</a>Load a JAHAH document into a element (by ID)
<script type="text/javascript"> loadJSONDoc("http://www.example.com/jhah-service/", "element-id") </script>
JAHAH is apparently the first library to support JSONP, allowing the caller to influence the Javascript that will be output by the remote server.
Related Content:











Cool stuff. They say it is search engine friendly but it seems to require javascript on the client in order to inject the remote html. How is that search engine friendly? Maybe I am missig something?
OK, let’s try again [a little problem with comments earlier].
All JAHAH webservices must fallback to HTML if the ‘jsonp’ parameter is not present. The include is done by an A tag marked rel=”include-jahah”. Because this A tag is converted to the include (JAHAH) document at viewtime in the user’s browser, non browser users (i.e. search engines) will see it as a normal HTML document,
respeced sir/madam
i want to know about WORK LIFE BALACE ,,,as i am doing a project on this . can u provide some material on this topic..
thanking u
Where to download jahaj.js
Where is a download button?