Log Analyser

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
Nadir
Posts: 264
Joined: Mon Aug 29, 2005 2:01 am

Log Analyser

Post by Nadir »

Hi all,
Could it possible to change width and height on report generated by Log Analyser when I check create charts inserts links in report?

In code source from report I can see this script, how can change it for all reports?
<script language="JavaScript"><!--
function openWin(img) {
winId = window.open('','newwin','width=420,height=320');
winId.document.write('<body onLoad="if (window.focus) window.focus()">');
winId.document.write('<center><img src="' + img + '">/center></body>');
winId.document.close();
}//--></script>
Thanks a lot
Yoorix
Posts: 177
Joined: Wed Dec 14, 2005 8:28 am

Re: Log Analyser

Post by Yoorix »

Nadir wrote:Could it possible to change width and height on report generated by Log Analyser when I check create charts inserts links in report?
Width and height of what? Window? Image?

If you want to change width and height of image, you should specify them in Report manager window -> chart setting area -> Image width, Image height input boxes.
Nadir wrote: winId = window.open('','newwin','width=420,height=320');
You are not allowed to change window size, because that code is generated automaticaly, according to image width and height (image width+20px,image height+20px). Hence, if you want to change window width and height, you should change image width and height.

Regards,
Yoorix
Nadir
Posts: 264
Joined: Mon Aug 29, 2005 2:01 am

Post by Nadir »

I want to change windows's width and height who contains charts because if I just change image's width and height she don't display correctly
Nadir
Posts: 264
Joined: Mon Aug 29, 2005 2:01 am

Post by Nadir »

I want to change windows's width and height who contains charts because if I just change image's width and height she don't display correctly
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

I want to change windows's width and height who contains charts because if I just change image's width and height she don't display correctly
Size of the windows depends on size of the image.
What exactly means "she don't display correctly"? Could you send screen shot to support@ks-soft.net?

Regards
Alex
Nadir
Posts: 264
Joined: Mon Aug 29, 2005 2:01 am

Post by Nadir »

When I apply in log Analyser charts settings image size width=600 and Heigth=500 (I sent screen shot to support)
Yoorix
Posts: 177
Joined: Wed Dec 14, 2005 8:28 am

Post by Yoorix »

I assume, the cause of problem lies in your IE settings. Could you check it?
To do that you should go IE menu > Tools > Internet Options. On General tab you should click on "Accessibilty" button. I guess, you have checked some of those checkboxes in? Try to uncheck all of them and try reload log Analyser chart window.

Regards,
Yoorix
Yoorix
Posts: 177
Joined: Wed Dec 14, 2005 8:28 am

Re: Log Analyser

Post by Yoorix »

Nadir wrote:
winId.document.write('<center><img src="' + img + '">/center></body>');
Looks like I have found the bug. "Center" tag is not closed correctly. It might be a reason. Try to replace "/center>" with "</center>" manually. Is it shown correctly?

Regards,
Yoorix
Nadir
Posts: 264
Joined: Mon Aug 29, 2005 2:01 am

Post by Nadir »

It doesn'l works, I thinks problem come from this function
winId = window.open('','newwin','width=420,height=320');
HTML codes always use this size 'width=420,height=320' but not size comes from Log Analyser charts settings.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

HTML codes always use this size 'width=420,height=320' but not size comes from Log Analyser charts settings.
Not really. Log Analyzer uses code like width=(ChartWidth+20),height=(ChartHeight+20).

Probably you are using your own custom header for the report? Then you should modify your header file manually.
Or may be you are using some old version of Log Analyzer?

Regards
Alex
Post Reply