<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Trying to manipulate css of an iframe integration in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Trying-to-manipulate-css-of-an-iframe-integration/m-p/1792815#M14050</link>
    <description>&lt;P&gt;Hi Rbartley,&lt;/P&gt;&lt;P&gt;Thanks for the reply!&lt;/P&gt;&lt;P&gt;When trying to manipulate the element with jquery I checked the dev-tools/console first to find the right element and changed the css manually in the "Elements" tab to "preview" what I want.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sebb_0-1616147070092.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/51453i305BC8C5DD2E4212/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sebb_0-1616147070092.png" alt="Sebb_0-1616147070092.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And that works.&lt;/P&gt;&lt;P&gt;When I change the "Background-color in the dev-tools/console the change is applied.&lt;/P&gt;&lt;P&gt;But when I use the script I put in my question it doesn't work.&lt;BR /&gt;Maybe there's something wrong with my jquery selector?&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Sebb&lt;/P&gt;</description>
    <pubDate>Fri, 19 Mar 2021 09:47:07 GMT</pubDate>
    <dc:creator>SBDataspark</dc:creator>
    <dc:date>2021-03-19T09:47:07Z</dc:date>
    <item>
      <title>Trying to manipulate css of an iframe integration</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Trying-to-manipulate-css-of-an-iframe-integration/m-p/1792640#M14048</link>
      <description>&lt;P&gt;Hi there fellow Qlik users,&lt;/P&gt;&lt;P&gt;I'm integrating a sheet by the standard iframe integration.&lt;/P&gt;&lt;P&gt;This works ok, but there's a slight little styling issue that I'd like to solve.&lt;/P&gt;&lt;P&gt;When using the "Horizon" theme the background of the sheet is light gray.&lt;/P&gt;&lt;P&gt;But in the iframe integration this is partiallly gray.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sebb_0-1616090832391.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/51406i48D910B4AD271A66/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sebb_0-1616090832391.png" alt="Sebb_0-1616090832391.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I've found the element on the page responsible for it, but I can't manage to manipulate the css by jquery.&lt;/P&gt;&lt;P&gt;The element is:&lt;/P&gt;&lt;P&gt;&amp;lt;article qva-radial-context-menu="openContextMenu($event)" qva-context-menu="openContextMenu($event)" id="content" ng-class="{'selections-disabled' : noSelections}"&amp;gt;&amp;lt;div style="position:relative;width:100%;height: 100%" class="qvt-sheet"&amp;gt;&amp;lt;div style="position:absolute;left: 0%;top: 0%;width: calc(13.88888888888889% - 10px);height: calc(11.11111111111111% - 10px);margin: 5px" data-qid="a052d349-ab4a-4061-a6c4-9d5e1779eaa5" col="0" row="0" tabindex="0"&amp;gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This is my javascript with the id of the iframe. And I try to set the new backgroud color of the element after 10 seconds. This is just a first try. Will try to make it more complex after I manage to get this done.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;$&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'#dashboardiframe'&lt;/SPAN&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;SPAN&gt;on&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'load'&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;function&lt;/SPAN&gt;&lt;SPAN&gt;(){&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;setTimeout&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;function&lt;/SPAN&gt;&lt;SPAN&gt;()&amp;nbsp;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;$&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'#dashboardiframe'&lt;/SPAN&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;SPAN&gt;contents&lt;/SPAN&gt;&lt;SPAN&gt;().&lt;/SPAN&gt;&lt;SPAN&gt;find&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'div.single-object #content'&lt;/SPAN&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;SPAN&gt;css&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"background-color"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"#f2f2f2"&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;10000&lt;/SPAN&gt;&lt;SPAN&gt;);&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also injecting a style tag inside the iframe doesn't work.&lt;BR /&gt;Is anything preventing me from editing the contents of the iframe?&lt;/P&gt;&lt;P&gt;Anyone an idea?&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Sebb.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 18:11:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Trying-to-manipulate-css-of-an-iframe-integration/m-p/1792640#M14048</guid>
      <dc:creator>SBDataspark</dc:creator>
      <dc:date>2021-03-18T18:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to manipulate css of an iframe integration</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Trying-to-manipulate-css-of-an-iframe-integration/m-p/1792811#M14049</link>
      <description>&lt;P&gt;Hi Sebb,&lt;/P&gt;&lt;P&gt;As far as I am aware, nothing should prevent you modifying the content. However, I suppose it comes down to the timing of the loading of the iframe content and when the default styling is applied.&amp;nbsp; Have you looked in the dev-tools/console to see which style is actually being applied? Do you have any other extensions on your page that set override any qlik styles?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 09:36:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Trying-to-manipulate-css-of-an-iframe-integration/m-p/1792811#M14049</guid>
      <dc:creator>rbartley</dc:creator>
      <dc:date>2021-03-19T09:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to manipulate css of an iframe integration</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Trying-to-manipulate-css-of-an-iframe-integration/m-p/1792815#M14050</link>
      <description>&lt;P&gt;Hi Rbartley,&lt;/P&gt;&lt;P&gt;Thanks for the reply!&lt;/P&gt;&lt;P&gt;When trying to manipulate the element with jquery I checked the dev-tools/console first to find the right element and changed the css manually in the "Elements" tab to "preview" what I want.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sebb_0-1616147070092.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/51453i305BC8C5DD2E4212/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sebb_0-1616147070092.png" alt="Sebb_0-1616147070092.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And that works.&lt;/P&gt;&lt;P&gt;When I change the "Background-color in the dev-tools/console the change is applied.&lt;/P&gt;&lt;P&gt;But when I use the script I put in my question it doesn't work.&lt;BR /&gt;Maybe there's something wrong with my jquery selector?&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Sebb&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 09:47:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Trying-to-manipulate-css-of-an-iframe-integration/m-p/1792815#M14050</guid>
      <dc:creator>SBDataspark</dc:creator>
      <dc:date>2021-03-19T09:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to manipulate css of an iframe integration</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Trying-to-manipulate-css-of-an-iframe-integration/m-p/1792890#M14052</link>
      <description>&lt;P&gt;Why not try writing out the object to the console (or step through your code) using console.log?&amp;nbsp; That'll tell you whether the object you're looking for exists at the time you are trying to apply the style.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 13:39:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Trying-to-manipulate-css-of-an-iframe-integration/m-p/1792890#M14052</guid>
      <dc:creator>rbartley</dc:creator>
      <dc:date>2021-03-19T13:39:28Z</dc:date>
    </item>
  </channel>
</rss>

