Posts Tagged ‘Ext’

Custom Ext JS JsonReader for Google Ajax Search API

October 30th, 2008 by Martin

Well as long term Ext JS fan and user I of course faced with consuming external data resources like for example Google Data API or Google AJAX Search API. The last one mentioned has some really great output and layout capabilities, but I did not want them. I really need only some kind of JSON or XML interface. Google has one – ScriptTag. So after reading this post about creating custom Ext.data.JsonReader and Ext.data.ScriptTagProxy.

/** Ext Proxy for Google Ajax Search **/
Ext.namespace('GoogleAjaxSearch');
 
GoogleAjaxSearch.Proxy = Ext.extend(Ext.data.ScriptTagProxy, {
   url: 'http://ajax.googleapis.com/ajax/services/search/web',
   apiKey: null,
   cx: null,
   callbackParam: 'callback',
 
   constructor: function(config) {
      GoogleAjaxSearch.Proxy.superclass.constructor.call(this, config);
      this.on('beforeload', this.onBeforeLoad, this);
   },
 
   onBeforeLoad: function(o, params) {
      Ext.apply(params, {
         v: 	'1.0',
         rsz: 	'large',
         cx: 	this.cx,
         key: 	this.apiKey,
      }
      );
 
      return true;
   }
});
 
 <a href="http://www.wiso.cz/2008/10/30/custom-ext-js-jsonreader-for-google-ajax-search-api/#more-443" class="more-link"><img src="http://www.wiso.cz/wp-content/themes/wiso/images/more.gif" border="0" style="border:0" alt=" Read More " /></a>
 Tags

Erlang Documentation Viewer

October 13th, 2008 by Martin

Well, I want to announce a new viewer for Erlang documentation. Yes I know that it is nothing revolutionary and innovative, but I am Erlang user and Erlang documentation in its current version is not very user friendly (It is not only my opinion ;) ). Because I am working on an experimental Erlang web framework based on Ext JS – ErlExtUI, I realized why not do some user sample application for this purpose and shot two flies with one bullet. ;)   Please note that it is work in progress, so if you find any problem or want some new feature, feel free to contact me. And now finally URLhttp://erloid.wiso.cz/samples/documentation/.

Features

  • modules browsing/tabs
  • module name filter
  • Google powered module search

Happy using :)

 Tags
Text size: A A