Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F15622412
JsonService.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
JsonService.js
View Options
/*
Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
if
(
!
dojo
.
_hasResource
[
"dojo.rpc.JsonService"
]){
dojo
.
_hasResource
[
"dojo.rpc.JsonService"
]
=
true
;
dojo
.
provide
(
"dojo.rpc.JsonService"
);
dojo
.
require
(
"dojo.rpc.RpcService"
);
dojo
.
declare
(
"dojo.rpc.JsonService"
,
dojo
.
rpc
.
RpcService
,{
bustCache
:
false
,
contentType
:
"application/json-rpc"
,
lastSubmissionId
:
0
,
callRemote
:
function
(
_1
,
_2
){
var
_3
=
new
dojo
.
Deferred
();
this
.
bind
(
_1
,
_2
,
_3
);
return
_3
;
},
bind
:
function
(
_4
,
_5
,
_6
,
_7
){
var
_8
=
dojo
.
rawXhrPost
({
url
:
_7
||
this
.
serviceUrl
,
postData
:
this
.
createRequest
(
_4
,
_5
),
contentType
:
this
.
contentType
,
timeout
:
this
.
timeout
,
handleAs
:
"json-comment-optional"
});
_8
.
addCallbacks
(
this
.
resultCallback
(
_6
),
this
.
errorCallback
(
_6
));
},
createRequest
:
function
(
_9
,
_a
){
var
_b
=
{
"params"
:
_a
,
"method"
:
_9
,
"id"
:++
this
.
lastSubmissionId
};
var
_c
=
dojo
.
toJson
(
_b
);
return
_c
;
},
parseResults
:
function
(
_d
){
if
(
dojo
.
isObject
(
_d
)){
if
(
"result"
in
_d
){
return
_d
.
result
;
}
if
(
"Result"
in
_d
){
return
_d
.
Result
;
}
if
(
"ResultSet"
in
_d
){
return
_d
.
ResultSet
;
}
}
return
_d
;
}});
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 26, 03:37 (1 d, 8 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24034
Default Alt Text
JsonService.js (1 KB)
Attached To
Mode
rZEDHG ZedLegacy
Attached
Detach File
Event Timeline
Log In to Comment