0

There is a HTML widget loaded along with a webpage, when I do inspect element on it, the code shows as

This is part of the widget's HTML document

I need to access the widget's HTML elements in bootstrap tour for which I wrote following code (viewAll is the class name of one of the <div>):

var iframe = document.getElementById('widgetIframe424615');
var innerDoc = (iframe.contentDocument) ? iframe.contentDocument : iframe.contentWindow.document;


tour.addStep({lb}
element: innerDoc.getElementsByClassName("viewAll"),
placement: "right",
title: "My Cases Quick View",
content: tour.step1Content(),
template: tour.defaultTemplate({lb}currentStep: 1, totalSteps:totalStepsCount, closeButton: true{rb})

Here I'm trying to get the tour popover on element 'viewAll'. The tour is working fine with the DOM elements loaded. But not working only for widget's elements.
Any help appreciated.

Mr Lister
  • 45,515
  • 15
  • 108
  • 150
surm
  • 167
  • 2
  • 11
  • Possible duplicate of [Access iframe elements in JavaScript](http://stackoverflow.com/questions/1451208/access-iframe-elements-in-javascript) – Turnip Mar 21 '16 at 19:59
  • If you have any code to show us, please paste the code in here. Don't give us screenshots of code. – Mr Lister Mar 28 '16 at 09:45

0 Answers0