This project uses the Open Trivia Database API (https://opentdb.com/) to fetch the questions using the AJAX technology. Once the questions are fetched, the Common JavaScript interface for Adobe Captivate is used to populate the value of Captivate variables that are then used to display the fetched questions to the user. Some basic error handling is also baked into the project if the remote API does not send the expected response. Variables and advanced actions are used to power the Captivate side of this project.
This project demonstrates how to use the AJAX capabilities of the browser to fetch remote data and to use this data to create a game in Adobe Captivate.
You can choose the topic, and the difficulty of the questions to pull at the beginning of the project, but you cannot tel it to pull specific questions. It is a limitation of the API we pull questions from. It does not allow to say something like “Pull only question X, Y Z” or “Pull only the questions that I have submitted”.
You can find the API documentation at the following location : https://opentdb.com/api_config.php
I you want to create a similar example with just your questions or just questions on a specific topic, you have 2 solutions
- Find another API that let you choose the questions you want
- Write your own API
I hope it helps clarifying the way the project works. If not, don’t hesitate to let me know, I’ll be happy to pursue the conversation.
Happy Captivating!
Damien
You must be logged in to post a comment.