Changes between Initial Version and Version 1 of Ticket #6756


Ignore:
Timestamp:
May 15, 2008, 11:14:05 AM (12 years ago)
Author:
alex
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6756 – Description

    initial v1  
    22
    33Example:
     4
     5{{{
    46       var myObject = new dojo.rpc.JsonService("/definition.smd");
    57       var myDeferred = myObject.add(121,5});
    68       myDeferred.addCallback(myCallbackMethod);
    79       myDeferred.addErrback(myErrorbackMethod);
     10}}}
    811
    912add method definition:
    1013
     14{{{
    1115methods:[
    1216{
     
    2226        }
    2327}
     28}}}
    2429
    25 Expected: params = {x:131,y:5}
     30Expected: {{{ params = {x:131,y:5} }}}
    2631
    2732Result:
     33{{{
    2834[ Error: invalid property id ]
    2935[ Error: Unable to load SMD from https://www.somewebsite.org/definition.smd ]
     36}}}
    3037
    3138Details:
     
    3542It is not possible to give parameters as object. If definition smd is changed to:
    3643
     44{{{
    3745methods:[
    3846{
     
    4856        ]
    4957}
     58}}}
    5059
    5160submitted parameters are {131,5}
     
    7281
    7382and than on line 136 do something like this:
     83{{{
    7484                                if (true === dojo.isObject(parameters)) {
    7585                                        this.bind(method, this.toNamed(dojo._toArray(arguments), parameters), deferredRequestHandler, url);
     
    7787                                        this.bind(method, dojo._toArray(arguments), deferredRequestHandler, url);
    7888}
     89}}}