Commit 01d5454
committed
Make ajax method compatible with nextRecordsUrl
The ajax call no longer prepends /services/data to paths that already
start with it. This allows the ajax method to be used with the URL
contained in the nextRecordsUrl attribute of the result object passed to
the query method's success callback.
Here's an example:
forcetkClient.query('SELECT Id, Name FROM Account', handleResult, function() {});
function handleResult(result) {
// do something with the result
if (! result.done) {
forcetkClient.ajax(result.nextRecordsUrl, handleResult, function() {});
}
}1 parent 026cfcc commit 01d5454
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
150 | 153 | | |
151 | 154 | | |
152 | 155 | | |
| |||
0 commit comments