[Logo] Mango Community
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
is it possible to pass image size as parameter to a public_view?  XML
Forum Index » Development general discussion
Author Message
gtludwig

Initiate

Joined: 24/03/2011 16:38:52
Messages: 14
Offline

The public view function is a jsp page rendered on the server, but is it possible to re-render it dinamically or pass the result dimensions as parameters to construct the public view jsp?

Thanks in advance,
gtludwig

Best regards,

Gustavo T. Ludwig
www.scadabr.org.br
mlohbihler

Master
[Avatar]

Joined: 01/03/2007 22:48:52
Messages: 1847
Offline

Not sure what you mean. Can you be more specific?

Best regards,
Matthew Lohbihler
gtludwig

Initiate

Joined: 24/03/2011 16:38:52
Messages: 14
Offline

Well, I can call a public view like this:

http://<some-server-ip>:8080/Mango/public_view.htm?viewId=<number>

The screen size of a public view depends on its background picture size. So if the picture is (I'll exaggerate here) 2560x1980 and my computer has a 12" screen with a max resolution of 1366x768 I'll get scrolling bars.

I wondered if it would be possible to pass to the Mango instance the screen size (say 800x600), so the public view is rendered to fit a 800x600 screen without having to display the scrolling bars.

I think this would be particularly interesting considering the viewing size of a number of portable devices.

I hope this can be done!

Thanks in advance,
gtludwig


Best regards,

Gustavo T. Ludwig
www.scadabr.org.br
mlohbihler

Master
[Avatar]

Joined: 01/03/2007 22:48:52
Messages: 1847
Offline

I suppose it could be done, but then all of the positions of the components in the view would need to be changed accordingly. I presume also that you would want all components to be scaled in the same way as well.

Best regards,
Matthew Lohbihler
 
Forum Index » Development general discussion
Go to:   
Powered by JForum 2.1.9 © JForum Team