Cp_Barbossa
26 Sep 2012, 5:49 AM
Hello.
Is there any way to load Model or Store with JSon parameters?
instead of:
MyModel.load(
100, // id to load
{
success: function (result) {
... // some code
}
}
);
to have like this:
MyModel.load(
{
x: 1,
y: 'some param',
obj: {
a: 12,
b: true,
otherObj: {
m: true,
n: 'ok'
}
}
}, // json parameters to load
{
success: function (result) {
... // some code
}
}
);
And same about the store
Is there any way to load Model or Store with JSon parameters?
instead of:
MyModel.load(
100, // id to load
{
success: function (result) {
... // some code
}
}
);
to have like this:
MyModel.load(
{
x: 1,
y: 'some param',
obj: {
a: 12,
b: true,
otherObj: {
m: true,
n: 'ok'
}
}
}, // json parameters to load
{
success: function (result) {
... // some code
}
}
);
And same about the store