Skip to content
This repository was archived by the owner on Jan 10, 2024. It is now read-only.

Conversation

@cwarden
Copy link
Contributor

@cwarden cwarden commented Sep 14, 2012

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() {});
    }
}

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() {});
	}
}
@cwarden
Copy link
Contributor Author

cwarden commented Sep 14, 2012

I see that @paulroth3d opened a similar pull request, #16, four months ago.

@metadaddy
Copy link
Contributor

Closed, since I just merged in #16.

@metadaddy metadaddy closed this Nov 9, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants