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!

September Community Champions: A Shoutout to Our Contributors!

As we close the books on another fantastic month, we want to take a moment to celebrate the people who are the ...

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...