window.open in specified size on webview

Please do not use to report errors- use your regional help desk.
Please mark posts as being for RPG or RDMLX (LANSA) developer.
To subscribe by email, display this forum, scroll to the end and select ‘Subscribe Forum’.
Post Reply
MegumiSawada
Posts: 268
Joined: Tue Feb 19, 2013 5:18 pm

window.open in specified size on webview

Post by MegumiSawada »

Hi,

The web page shown in webview has a following script:

Code: Select all

<html lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<title>sample</title>
<script type="text/javascript">
<!--
function openwin() {
	window.open("http://www.yahoo.co.jp/", "", "width=500,height=400");
}
// -->
</script>
</head>
<body>
<a href="javascript:openwin();">Open New Window</a>
</body>
</html>
When it is executed in browser on PC, the new window is shown in the specified size(width/height).
However, it is executed on LongRange, the new window is shown in a appropriate size, not specified size.

Is there any way to show new window in specified size on LongRange?

I appreciate your kind advice.
Best Regards,
Megumi Sawada
tsupartono
Posts: 289
Joined: Wed Apr 18, 2012 10:21 am

Re: window.open in specified size on webview

Post by tsupartono »

Hi Megumi,
Unfortunately there is no way to emulate the behaviour of PC''s browsers.
MegumiSawada
Posts: 268
Joined: Tue Feb 19, 2013 5:18 pm

Re: window.open in specified size on webview

Post by MegumiSawada »

Hi Tony,

Thank you for your reply.
Now I understand that this is a specification to adjust a new window size.

Is there any way to show the new window bigger?
The window size is automatically adjusted and shown, but it is too small on iPad mini.
The customer would like to know if it is possible to change the new window size by setting or so.

Best regards,
Megumi Sawada
tsupartono
Posts: 289
Joined: Wed Apr 18, 2012 10:21 am

Re: window.open in specified size on webview

Post by tsupartono »

Hi Megumi,
We can enhance LongRange so that you can indicate whether you want the new window to open full screen.
This enhancement will be included in either RV23 or RV24 - I will keep you posted as we progress closer to the release date.
MegumiSawada
Posts: 268
Joined: Tue Feb 19, 2013 5:18 pm

Re: window.open in specified size on webview

Post by MegumiSawada »

Hi Tony,

Thank you!

Best Regards,
Megumi Sawada
Post Reply