Web Info & Tutorials

December 10th, 2007

EXT.CFC: EASING INTEGRATION WITH EXT AND ADOBE COLDFUSION

Ext.CFC isn't about the greenhouse gasses, but instead abstracts out Ext components into the land of CFML:

“The Ext library is packed with tons of cool features, but like most CF programmers, I was initially interested in the Grid Panel. The Grid panel is implemented in ColdFusion 8 using the <cfgrid>, <cfgridcolumn>, and <cfgridrow> tags. Since I started this long before <cfgrid> was a thought, this code will obviously work in CF7.”

Currently the only abstraction is the Grid component, which allows you to do the following in CFML to create a rich grid:

JAVASCRIPT:
  1.  
  2. extobj = createobject("component",extcfc).init();
  3. extobj.initGrid(title="messages",path='http://'&cgi.server_name&cgi.script_name&'?
  4. action=getData',root='messages',id='id',defaultSortColumn=form.sort,defaultSortOrder=form.dir);
  5. extobj.initGridFooter();
  6. //extobj.setGridCol(header='Subject',width=200,name='subject',render="String.format('{0}‘, value)”,detailRender=”String.format(’{0}
  7. {1}’, value, record.data[’body’]));
  8. extobj.setGridCol(header=’Subject’,width=200,name=’subject’);
  9. extobj.setGridCol(header=’Sender’,width=150,name=’sender’);
  10. extobj.setGridCol(header=’Sent’,width=150,name=’datetime’);
  11.  

which creates:

Ah, now I can feel a little less guilty about how little we post on Coldfusion.... at least until Rey joined the fun!

December 10th, 2007

BINDOWS 4: CLOCKS, FACES, AND MORE.

Bindows 4 is out in beta and it has many new features.

One new major component is Bindows Faces which "is a components library that enables you create powerful Ajax web applications with a Windows look-and-feel - using Java through JSF."

If you run the demo you will see the look and feel. On my Mac it looked like this:

Bindows LF

There are also free Ajax Gauges to be had. Fancy a clock or a speedo? If so, run the wizard to get your own custom gauges.

Bindows Gauges

December 10th, 2007

OPENSOCIAL CONTAINER CHECKER: IGCHECK

Didier Durand wanted to check the compliance of various OpenSocial containers, so he decided to create a tool, IGCheck, that will do the checking for him:

The purpose of IGCheck is to test and report which functions of the Google Gadget API (i.e., prefixed with _IG_ in their Javascript name) are available in which containers. IGCheck then produces a report comparing the current test with reference data.

To get current status, check this page to see the most current result that we can produce concerning igoogle, orkut, hi5 & ning.

As the number of opensocial partners that are open for tests remain limited as of now, the following conclusions can be drawn as of now :

  • Orkut uses the gmodules infrastructure of Google Gadgets to run the opensocial api (see the line "host" in the result array)
  • Hi5 does the same and as such seems to have "outsourced" the task of running its opensocial container to Google (see the line "host" in the result array)
  • Ning has followed a more independent approach by implementing a fully independent container named "proxy.ning.com" (see the line "host" in the result array)
  • The choice of Ning has currently drawbacks: IGCheck finds only 6 _IG_ functions whereas 55 are present in the others. (see the line "count" in the result array)
  • Ning seems to have created its own function(s) with _IG_Prefix: a function "G_Tabs" is present in the Ning container but nowhere else(see the line "_IG_Tabs" in the result array).

The conclusions above are preliminary results only:

  • the current and future containers will have to converge after the current pioneering phase in order to reach the promise "Write Once, Run Anywhere" although the fact that IGCheck itself is a proof of partial achievement (IGCheck source code is unique for all containers)
  • the opensocial initiative will have to get more precise on Google Gadget API requirements: the debate on this topic is currently hot on the opensocial discussion group as nothing (at least to my knowledge...) has been clearly and officially stated in this area until now . A poll is under way. The target is to get opinions of developers and eventually to define to which extent opensocial containers have to implement the _IG_ API.

See the current results, and help Didier get this running in other containers.

December 10th, 2007

AJAX CROSS DOMAIN SCRIPT

Bart Van der Donck has free his playscript to do Ajax Cross Domain scripting. You download the ACD.js playscript and then you crapper do things same this hello world:

HTML:

  1.  
  2. <script type=“text/javascript” src=“http://www.ajax-cross-domain.com/cgi-bin/ACD/ACD.js?uri=(http://216.92.176.52/?name=john)”></script>
  3. <script type=“text/javascript”>alert(ACD.responseText);</script>
  4.  

Here is how it works:

I fuck how the acquisition flex has been circumscribed for you to Bart :)