HTML Dashlet Problem

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
promote
Posts: 3
Joined: Fri Apr 09, 2010 3:32 pm

HTML Dashlet Problem

Post by promote »

I'm playing around with html dashlets and created an html dashlet from the example that calls a URL in an iframe to display a flash map from Scrutinizer. It works great in the dashboard, but there a bug when using the Dashlet Manager. It tried to load the iframe instead of an image preview that I've selected.
manage_dashlet_iframe_fail.JPG
You do not have the required permissions to view the files attached to this post.
Last edited by promote on Fri Apr 09, 2010 3:49 pm, edited 1 time in total.
Thomas Pore
Plixer International
promote
Posts: 3
Joined: Fri Apr 09, 2010 3:32 pm

Re: HTML Dashlet Problem

Post by promote »

I'd like to note that when I tried to use the straight up URL example, the flash did not load in the dashlet.
Thomas Pore
Plixer International
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: HTML Dashlet Problem

Post by mmestnik »

What browser are you using? Try with FireFox. I'd personally like to hear the experience ppl have with Google Chrome, even though we don't think we expect that to work.
promote
Posts: 3
Joined: Fri Apr 09, 2010 3:32 pm

Re: HTML Dashlet Problem

Post by promote »

I'm using FireFox 3.6
Thomas Pore
Plixer International
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: HTML Dashlet Problem

Post by mmestnik »

Ohh, I see what the problem is now. I though it was just a size/spacing issue, but you are trying to point out a total replacement of content. I though I've seen this reported b4.

What version of XI? Are you using 1.1.H?

http://tracker.nagios.com/view.php?id=31
User avatar
admin
Site Admin
Posts: 256
Joined: Mon Oct 12, 2009 8:21 am

Re: HTML Dashlet Problem

Post by admin »

You can modify the type of output from the dashlet based on its current "location". There are three different types of "locations" or "modes":

1. DASHLET_MODE_PREVIEW - This is the mode the dashlet is in when its shown in the preview page / administrator view

2. DASHLET_MODE_OUTBOARD - The mode the dashlet is in when its embedded in a "normal" (non-dashboard) page.

3. DASHLET_MODE_INBOARD - The mode the dashlet is in when its placed on / displayed in a dashboard.

I would suggest looking at the code for the worldtimesaver dashlet that ships with Nagios XI. You can download the code to see how it displays different output from IN/OUTBOARD and PREVIEW modes. Look around lines 95 and 129 of worldtimeserver.inc.php for the code I'm referring to.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Ethan Galstad
President
Locked