|
|
| Author |
Message |
mcutting Cacti Guru User
Joined: 16 Oct 2006 Posts: 1622 Location: United Kingdom
|
Posted: Tue Jun 16, 2009 9:46 am Post subject: INFOURL link in same frame |
|
|
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 |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 3437 Location: United Kingdom
|
Posted: Tue Jun 16, 2009 2:10 pm Post subject: |
|
|
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. |
|
| Back to top |
|
 |
mcutting Cacti Guru User
Joined: 16 Oct 2006 Posts: 1622 Location: United Kingdom
|
Posted: Tue Jun 16, 2009 4:07 pm Post subject: |
|
|
| Thanks Howie. I"ll give this a shot. |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 3437 Location: United Kingdom
|
Posted: Tue Jun 16, 2009 4:33 pm Post subject: |
|
|
| mcutting wrote: | | Thanks Howie. I"ll give this a shot. |
No, I mean it would be a good thing to write  |
|
| Back to top |
|
 |
mcutting Cacti Guru User
Joined: 16 Oct 2006 Posts: 1622 Location: United Kingdom
|
Posted: Wed Jun 17, 2009 2:45 am Post subject: |
|
|
Ah - ok.
Any other pointers ? |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 3437 Location: United Kingdom
|
Posted: Wed Jun 17, 2009 3:33 am Post subject: |
|
|
| 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: |
$h .= " ".$this->extrahtml." ";
|
to
| Code: |
$h .= " ".$this->extrahtml." target='_blank' ";
|
|
|
| Back to top |
|
 |
mcutting Cacti Guru User
Joined: 16 Oct 2006 Posts: 1622 Location: United Kingdom
|
Posted: Wed Jun 17, 2009 4:04 am Post subject: |
|
|
Great - opens in a new tab now, which means I don't lose the Cacti session.
Thanks |
|
| Back to top |
|
 |
NetAdmin Cacti User
Joined: 30 Aug 2006 Posts: 84
|
Posted: Thu Dec 10, 2009 9:54 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
mcutting Cacti Guru User
Joined: 16 Oct 2006 Posts: 1622 Location: United Kingdom
|
Posted: Thu Dec 10, 2009 12:46 pm Post subject: |
|
|
| 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 ? |
|
| Back to top |
|
 |
Sumdzik
Joined: 08 Nov 2009 Posts: 7 Location: Poland
|
Posted: Thu Dec 10, 2009 12:52 pm Post subject: Re: INFOURL link in same frame |
|
|
| 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. |
|
| Back to top |
|
 |
|