All Apps and Add-ons

IFrame module with dynamic url

synodineios
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

synodineios
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

synodineios
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]

synodineios
Explorer

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

sideview
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.

Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...