• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers

Getting Images with cp.imagesJSONCache

New Here ,
May 06, 2022 May 06, 2022

Copy link to clipboard



I’m in the process of making a widget for captivate. I have been having issues with images not being accessible with my javascript, sometimes. The issue that I have been able to track down that a line of code seems to only retrieve 4 of the img json files that captivate generators.


I am getting the json files with the images with: ‘window.parent.cp.imagesJSONCache

The result I get when I console.log is




Looking through this object, the image that I need does not exist in these json files that were retrieved.




I can use ‘window.parent.cp.imageToJSONPathMap’  to pull information of which json file the image lives in. In my screenshots I need the img2.json which isn’t loaded with the JSONCache.  




I don’t know if there is a way to get in ALL the json files or grab the one I need with javascript  if it doesn't load. Or if there should be another route I should be taking to get these images?








Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation