Some of our customers are experiencing difficulty logging in. We are aware of this issue and are working to resolve it as quickly as we can.

CFjqAjax

cphongsavath
Regular Participant

CFjqAjax

 Hi, I am using CFjqAjax for a replacement for cfgrid because bluedragon no longer supports this tag.


I am only able to retrieve the first 50 records because of the API.  Is there a way around this and can or if you can take a look at the code provided by CFjqAjax and find an alternative.


 


 


Thanks


Chris 

1 REPLY 1
David_J
Employee

Unfortunately I am not familiar with CFjqAjax, but I will take a look and see if I can get this grid working with contacts from our API. At this time we currently only return 50 contacts per page, and a link to the next set of 50 if another page exists. It seems like you would just need to make a request to https://api.constantcontact.com/ws/customers/{user-name}/contacts and continue to make requests as long as a next link is present. Once you have all of that information aggregated you would create a cfquery of that information and bind that to the data grid being displayed.


 


See below for an example of the next link in the returned XML:


 


<?xml version='1.0' encoding='UTF-8'?>
<feed xmlns="http://www.w3.org/2005/Atom">
<id>http://api.constantcontact.com/ws/customers/joesflowers/contacts</id>
<title type="text">Contacts for Customer: joesflowers</title>
<link href="contacts" />
<link href="contacts" rel="self" />
<author>
<name>joesflowers</name>
</author>
<updated>2009-11-19T14:49:21.928Z</updated>
<link href="/ws/customers/joesflowers/contacts?next=g24umerp-fymhqg" rel="next" />
<link href="/ws/customers/joesflowers/contacts" rel="first" />
<link href="/ws/customers/joesflowers/contacts" rel="current" />
<entry>

David J

Developer Portal

View API documentation, code samples, get your API key.

Visit Page