Streaming live at 10am (PST)

JSON Integration


#1

Hello!

I’m looking to integrate this into my site - http://okfnlabs.org/wikipediajs/?url=http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FNormandy_landings

Does anyone have any advice on how to pass the parameters into web flow text boxes and images?

Many thanks,

Rory


#2

I never use this idea. Anyway, this library only gives you access to information from Wikipedia (JSON). You should know how to code (JS & JSON) to convert this JSON to HTML (Subject for a long tutorial). Try to learn this idea first in codepen (This is not webflow issue) -or- find easier solution.

http://okfnlabs.org/wikipediajs/docs/wikipedia.html

In general in the code the developer put empty html tags such as:

<h4>
   <span class="title"></span>
</h4>

Than by JS --> put title X inside this element.

Sorry, This is more a task for freelancer (Anyway on webflow you put the custom code. Nothing more).


#3

The demo you linked explains this:

This simple demo uses wikipedia.js library to load information on the given page and display it below. The JS source for the demo is here while the HTML source is just this page!

The first link is the actual library used to get the JSON. The second link is something that you could code for your Webflow page to use the library to get and insert the data onto the page itself.

If you are interested in another JSON API demo, I have this project http://flickrsearch.webflow.io