Document Information

Last modified:
2007/05/31 19:33 by thron7

Using CPAINT with qooxdoo

One way of using CPAINT with qooxdoo. Here is an example of using CPAINT with qooxdoo:

var GACdata = [];
window.application.main = function()
{
  /* qooxdoo section */
 
  var c = {
    GACName    : {
      label : "Name",    
      type : "text", 
      width : 250,   
      sortable : true, 
      sortProp : "text"
      }
    };
 
  g = new QxListView(GACdata, c); // important don't define g with var
 
  g.setBorder(QxBorderObject.presets.shadow);
  g.setBackgroundColor("white");
  g.setWidth(450);
  g.setHeight(350);
  g.setLocation(20, 48);
 
  this.add(g);
 
  /* CPAINT section */
 
  var cp = new cpaint();
  cp.set_response_type('XML');
  cp.set_debug(false);
  cp.set_transfer_mode('get');
  cp.call('/data/DBAccess_CPaint_GetData.php', 'ExecSQL', fill_QxListView, 'DBAccess_Members_All');
}
 
function fill_QxListView(resultset){
  var rowsreturned = resultset.firstChild.childNodes.length;
  var i;
  for (i=1;i < rowsreturned; i++) {           
    GACdata.push({ GACName : 
      {text : resultset.getElementsByTagName("Name").item(i).firstChild.nodeValue });
};
g.update();  // refresh listview

Information

Last modified:
2007/05/31 19:33 by thron7

Account

Not logged in

 
 

Job Offers

To further improve qooxdoo we are seeking javascript developers. Read more...

Rich Ajax Platform (RAP)

RAP uses qooxdoo, Java and the Eclipse development model to build rich web applications. Read more...

qooxdoo Web Toolkit (QWT)

Similar to GWT this framework allows to create impressive qooxdoo applications just using Java. Read more...

Pustefix

Pustefix is a MVC-based web application framework using Java and XML/XSLT. Read more...

 
SourceForge.net Logo

Bad Behavior has blocked 0 potential spam attempts in the last 7 days.