0

I have a Tableau view and I need to change the name(span element) of this view.I have not access to this view(it is an example, name is "CT School Districts by Income and Grade Level Equivalents, 2009-13"). Can I use the javascript or jquery to change the span element? I'm trying a lot approaches, nothing working.

<iframe src="https://public.tableau.com/views/CTSchoolDistrictsbyIncomeandGradeLevels2009-13/Sheet1?:embed=y&:display_count=yes&:toolbar=n&:showVizHome=no"
        width="645" height="955"></iframe>

jquery not work:

$("span:contains('CT School Districts by Income )")[0].replaceWith("Test");
J.Doe
  • 1
  • 5
  • 1
    You cannot get elements within iframes unless your code is on the same domain. –  Sep 02 '17 at 17:56
  • why? inside iframe i have generated html, I think, it's possible, but I don't know how to do that. – J.Doe Sep 02 '17 at 18:04
  • https://stackoverflow.com/questions/6170925/get-dom-content-of-cross-domain-iframe –  Sep 02 '17 at 18:11
  • any ideas how to use postMessage to change span in iframe body? – J.Doe Sep 02 '17 at 19:41

0 Answers0