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!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...