Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


INFOURL link in same frame

 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map)
Author Message
mcutting
Cacti Guru User


Joined: 16 Oct 2006
Posts: 1622
Location: United Kingdom

PostPosted: Tue Jun 16, 2009 9:46 am    Post subject: INFOURL link in same frame Reply with quote

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

PostPosted: Tue Jun 16, 2009 2:10 pm    Post subject: Reply with quote

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

PostPosted: Tue Jun 16, 2009 4:07 pm    Post subject: Reply with quote

Thanks Howie. I"ll give this a shot.
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 3437
Location: United Kingdom

PostPosted: Tue Jun 16, 2009 4:33 pm    Post subject: Reply with quote

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

PostPosted: Wed Jun 17, 2009 2:45 am    Post subject: Reply with quote

Ah - ok.

Any other pointers ?
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 3437
Location: United Kingdom

PostPosted: Wed Jun 17, 2009 3:33 am    Post subject: Reply with quote

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

PostPosted: Wed Jun 17, 2009 4:04 am    Post subject: Reply with quote

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

PostPosted: Thu Dec 10, 2009 9:54 am    Post subject: Reply with quote

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

PostPosted: Thu Dec 10, 2009 12:46 pm    Post subject: Reply with quote

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

PostPosted: Thu Dec 10, 2009 12:52 pm    Post subject: Re: INFOURL link in same frame Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map) All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group