Journal of Applied Mathematics / 2014 / Article / Alg 2

Research Article

REST-MapReduce: An Integrated Interface but Differentiated Service

Algorithm 2

A portion of our HTML5 application code.
var button = new Ext.Toolbar({
       cls: “calculator_button”,
       height: 35,
       items: this.text,
          {xtype: ‘spacer’},
          {html: new Ext.XTemplate(‘<img style=“width:.5em;height:.5em;”
src=“resources/imgs/button.png”/>’).apply({name: ‘button’}),
          handler: function () {
             Ext.Ajax.request({
               url: ‘/localhost:8080/Example/apis/example/,
                params:{
                action: ‘calculation’,
                userid: ‘15’,
                username: ‘MCHOI’,
                username: ‘MCHOI’,
                userDate: ‘20140315’,
userEtc: ‘etc’
HouseHolds: ‘2’
AreaofExcsSpace: ‘5’
AcquisitionPrice: ‘25000’
userContact: ‘01099695699’
                },
                success: function(xhr) {
                 var response =
Ext.decode(xhr.responseText);
                }
             });
          
          
     });