INFOURL link in same frame

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

INFOURL link in same frame

Post by mcutting »

Hi Howie,

In my map config, I have set the INFOURL to be an external link to my NETFLOW application. This works fine, but the link navigates away from Cacti, which isn't really what I want.

Is there a way to keep within the same frame as the map itself, or to open a seperate window or tab within the browser ?

I'm still RTFM :) so if it's in there, apologies...

Thanks
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

Well, the map isn't in a frame, so that's not an option :-)

Probably some sort of INFOURLTARGET option might be a good thing.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Thanks Howie. I"ll give this a shot.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

mcutting wrote:Thanks Howie. I"ll give this a shot.
No, I mean it would be a good thing to write :-)
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Ah - ok.

Any other pointers ?
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

mcutting wrote:Ah - ok.

Any other pointers ?
If you don't mind it doing that for all your maps, just edit the HTML_ImageMap.class.php, and change line 38 from

Code: Select all

                        $h .= " ".$this->extrahtml." ";
to

Code: Select all

                        $h .= " ".$this->extrahtml." target='_blank' ";
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Great - opens in a new tab now, which means I don't lose the Cacti session.

Thanks
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
NetAdmin
Cacti User
Posts: 98
Joined: Wed Aug 30, 2006 8:45 pm

Post by NetAdmin »

Howie,

I too am looking to do this and I tried changing the code above in the HTML_ImageMap.class.php file but it doesn't seem to be working using the 0.97 weathermap files.

Any thoughts?

Thanks.

NetAdmin
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

NetAdmin wrote:Howie,

I too am looking to do this and I tried changing the code above in the HTML_ImageMap.class.php file but it doesn't seem to be working using the 0.97 weathermap files.

Any thoughts?

Thanks.

NetAdmin
I am also using 0.97, and it works fine for me ?
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
Sumdzik
Posts: 10
Joined: Sun Nov 08, 2009 1:02 pm
Location: Poland

Re: INFOURL link in same frame

Post by Sumdzik »

mcutting wrote:Is there a way to keep within the same frame as the map itself, or to open a seperate window or tab within the browser ?
In Firefox when you press CTRL key + mouse click, page is opened in new tab. Probably there is smiliar trick in other browsers.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest