All Apps and Add-ons

IFrame module with dynamic url

Explorer

Greetings Splunkers!
I have a sparkline table with a field called ref, which contains some links.When i click this ref field it opens a popup window that shows the relevant url.
I would like to do this using the IFrame module but i can't make it work properly.

Note:I can't put a specific url to <![CDATA[]]> because every time it's different!
Any thoughts are welcome 🙂
Here's a piece of my code :

results
row

$click.fields.ref$
True



<![CDATA[$click.fields.ref$]]>
402

1 Solution

Explorer

Well i found it!
The way to do this is by adding an HTML module and place the iframe in it.

<module name="HTML" layoutPanel="panel_row3_col1">
        <param name="html"><![CDATA[
          <iframe id="theFreshMaker" name="theFreshMaker" src="$click.fields.ref$" height="500px" width="100%" style="border:0px;"></iframe>
        ]]></param>

      </module>

I took the idea from here : [http://192.168.252.20:9000/en-US/app/sideview_utils/refresh_entities][1]

View solution in original post

Explorer

Well i found it!
The way to do this is by adding an HTML module and place the iframe in it.

<module name="HTML" layoutPanel="panel_row3_col1">
        <param name="html"><![CDATA[
          <iframe id="theFreshMaker" name="theFreshMaker" src="$click.fields.ref$" height="500px" width="100%" style="border:0px;"></iframe>
        ]]></param>

      </module>

I took the idea from here : [http://192.168.252.20:9000/en-US/app/sideview_utils/refresh_entities][1]

View solution in original post

Explorer

🙂 Thank you sideview for your great apps!Keep on with the "splunk" work!

SplunkTrust
SplunkTrust

😃 Cool. You beat me to it. Indeed the Sideview HTML module makes an excellent replacement for the IFrameInclude module, as well as several others.