Can't scroll megapixel picture (1600x1200) in firefox.

Support and queries relating to all previous versions of ZoneMinder
Locked
Acadien
Posts: 8
Joined: Wed Oct 17, 2007 2:27 pm

Can't scroll megapixel picture (1600x1200) in firefox.

Post by Acadien »

I use an AXIS 221 1600x1200 camera, the capture is fine. When I try to define zones, of course a pop-up window occurs in FireFox. However the image is so large, i can't define zone, some buttons are missing. Can I force Pop-ups in new windows or zoom the window to work with the entire image?
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

YOu can tab through the controls thats how i do it, or use a bigger desktop.
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
W.
Posts: 108
Joined: Tue Apr 10, 2007 5:06 pm
Location: Latvia

Post by W. »

or hack ZM a little.
find code

Code: Select all

function newWindow(Url,Name,Width,Height)
{
        var Win = window.open(Url,Name,"resizable,width="+Width+",height="+Height);
}
in zm_html_view_zones.php and change it to

Code: Select all

function newWindow(Url,Name,Width,Height)
{
        var Win = window.open(Url,Name,"resizable,scrollbars,width="+Width+",height="+Height);
}
and you will have scrollbars. I used the same tab trick as jameswilson described.
if common sense is so uncommon, why is it called common then?
Acadien
Posts: 8
Joined: Wed Oct 17, 2007 2:27 pm

Post by Acadien »

I added "scrollbars" to the newWindow function in
zm_html_view_zone.php
zm_html_view_zones.php
zm_html_view_monitor.php

I can't find which file is the main console window, this is because from the main console when I select one of my monitor, I would also like scrollbars.
W.
Posts: 108
Joined: Tue Apr 10, 2007 5:06 pm
Location: Latvia

Post by W. »

zm_html_view_console.php
if common sense is so uncommon, why is it called common then?
Acadien
Posts: 8
Joined: Wed Oct 17, 2007 2:27 pm

Post by Acadien »

Scrollbars works nicely, howabout a new tab in FF instead of a new window?
W.
Posts: 108
Joined: Tue Apr 10, 2007 5:06 pm
Location: Latvia

Post by W. »

tabs are not part of document object model and there is no standard way to manipulate them from js. it is a function of browser, so i suggest you look for some add-on that could take care of your problem.
if common sense is so uncommon, why is it called common then?
henke
Posts: 60
Joined: Thu Nov 10, 2005 8:16 am

Post by henke »

I wonder what i am doing wrong, i added the scrollbars text to the files
zm_html_view_zone.php
zm_html_view_zones.php
zm_html_view_monitor.php
zm_html_view_console.php

I dont get scrollbars whatever I do and which ever browser I use.

Hmm... Now I got scrollbars in the Zone window when I open it from the monitor window but not from the console.
henke
Posts: 60
Joined: Thu Nov 10, 2005 8:16 am

Post by henke »

Now I got scrollbars in the zone window but not in the monitor window when clicked from the console. Where can the scrollbars in the monitor window be added?

Tnx, for any help!
Locked