Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
An interesting question that was put to me today:
Is there any support for multi monitor/ multi screen HTML5/JS-Applications planned for HTML5 (or any vendor specific solution available) for the main browsers.
How about the support on device specific platforms/ libraries/ SDKs?
Does MHL support multiple screens?
Any out of browser experiences planned to support multi monitors?
Or Fullscreen API capabilities I don't know?
etc...

Thanks for any comments.
Posted
Updated 17-May-14 9:17am
v2

I think you just don't understand the idea behind Javascript. No library can implement anything beyond the Javascript standard, absolutely not. As Javascript does not have access to the client system, it does not get access to multiple screens; it just uses the resources provided by the browser. So, you may only create some new features for the browser. But there is no a need for it: a browser, as any other multi-window application, already support multiple screens. But the Javascript code cannot access then directly. And, in my opinion, it should not: the windows, screens, etc. should be at full discretion of the user, nobody else.

—SA
 
Share this answer
 
Comments
Oliver Bleckmann 18-May-14 14:02pm    
I think this is simply not true! Please correct me if I am wrong (I am no mobile developer). Well, let's say, in ancient times, you were totally right, where js security policy followed the sandbox idea. But time has changed! Two name some examples: Today, you can access the camera through JS, Web Storage lets you persist Data on the client, what was prohibited or better limited to cookies before (in most cases the browser will ask you to allow such actions, like turning on the camera and storing more than 50mb). OK, there is no full file access in a browsers JS engine, but there are plenty of SDK's (iOS, Android BlackBerry and WindowsPhone) let you use arbitrary/vendor specific JavaScript to access other "critical" device specific functions. To name some more, and that is exactly what these frameworks are made for, Apache Cordova and PhoneGap, see for yourself http://docs.phonegap.com/en/1.0.0/phonegap_events_events.md.html.<br>
And that is where HTML5 comes into play by standardizing some of these features. And, according to Silverlight, the need of a framework capable of accessing system functions (file access) and running out of the browser (screen access) was seen like what, 8 year ago!? What I am trying to say is: multi screen support should be on the list of HTML5 capabilities, maybe as enhancement to the Full-screen API.
Hi,

yes this is possible, if the pages you host in the separate windows are from the same domain. This is what restricts Javascript in communication.

If you don't want to code the communication layer yourself, there are libraries providing a corresponding API ... like https://github.com/diy/intercom.js[^]

Best
T.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900