HTML5 Data Bindings Support Product Page

Returning data from Web API

Asked 07 Feb 2015 15:07:38
1
has this question
07 Feb 2015 15:07:38 Jon Halton posted:
A newbie question but I hope someone can help.

I need to return data from a Web API. I have set up the connection by entering the URL into the Feed URL box and set the Type to Public Feeds and the source to custom. I then see the list of fields available that were returned from the API.

When I add them to the page they do not display. If I test the feed I can see data but it is returned in a .js file which has to be downloaded and opened in notepad before I can see the data. I think that this is the problem but is there a facility to display data returned in this format or am I going about this in the wrong way?

I also have a data binding set up to a MySQL database and this is returning data on my web page without a problem.

Replies

Replied 09 Feb 2015 09:32:23
09 Feb 2015 09:32:23 Teodor Kuduschiev replied:
Hi John,
Please provide a link to your page.
Replied 09 Feb 2015 20:39:25
09 Feb 2015 20:39:25 Jon Halton replied:
Hi Teodor

Thanks for your response. I have created a test page here using the DMX extension and have a loopd section and a couple of individual fields listed but the page is just blank.

212.64.153.241/triptest1.php

I have also created a second page showing the raw Json result of the feed not using the dmx extension here

212.64.153.241/triptest.php


Replied 11 Feb 2015 10:03:36
11 Feb 2015 10:03:36 Teodor Kuduschiev replied:
Hello John,
It seems the json returned from this API is not properly formatted, which causes an error when parsing the data on the page.

Reply to this topic