Page 1 of 1

window.open in specified size on webview

Posted: Thu Jul 14, 2016 12:32 pm
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

Re: window.open in specified size on webview

Posted: Fri Jul 15, 2016 9:27 am
by tsupartono
Hi Megumi,
Unfortunately there is no way to emulate the behaviour of PC''s browsers.

Re: window.open in specified size on webview

Posted: Fri Jul 15, 2016 1:38 pm
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

Re: window.open in specified size on webview

Posted: Mon Jul 18, 2016 8:59 am
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.

Re: window.open in specified size on webview

Posted: Wed Jul 20, 2016 3:09 pm
by MegumiSawada
Hi Tony,

Thank you!

Best Regards,
Megumi Sawada