Ninjadoodle Posted July 18, 2018 Share Posted July 18, 2018 Hi @enpu This is kind of a weird question, but is there any way Panda can open 2 browser windows, both updated by the same script? I'm not really sure if anything like this is possible, but in this case I'm asking on somebody else behalf. Thank you in advance! Quote Link to comment Share on other sites More sharing options...
enpu Posted July 18, 2018 Share Posted July 18, 2018 You mean in development? Yes you can open as many browser windows as you want, and all will get updated. Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted July 18, 2018 Author Share Posted July 18, 2018 Hi @enpu - I mean as a browser app. Example - someone I know needs a scoring system where there is a timer and 2 windows (separate monitors) and the judges sit by their respective monitor and update their teams score. As far as I know this is only possible by duplicating the computer screen (2 monitors), or by stretching a browser window to span more than one monitor (not sure if this works). There might be other solutions, but I have no idea. Quote Link to comment Share on other sites More sharing options...
enpu Posted July 18, 2018 Share Posted July 18, 2018 Simplest solution would be to stretch the browser window into two monitors. For this to look good, both monitors should have same resolution. Otherwise you would need a way for two browser windows to communicate, which would need backend/server. Ninjadoodle 1 Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted July 18, 2018 Author Share Posted July 18, 2018 @enpu Ok, thanks heaps for the reply - I'll get back to them and explain the details Panda is not only useful for games, but also kettlebell lifting compos lol. Quote Link to comment Share on other sites More sharing options...
Wolfsbane Posted July 18, 2018 Share Posted July 18, 2018 @Ninjadoodle Not really a web developer here, but if we're not talking about a massive amount of data, could you just use the local storage trick? (Both writing/reading to a file to update their display. Old 'early network' trick) Or Broadcast Channels sounds like something like what you're wanting? Shouldn't need a backend/server for this. Ninjadoodle 1 Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted July 18, 2018 Author Share Posted July 18, 2018 @Wolfsbane - Yeah we're just talking a timer and 2 sets of scores. Not sure if they timer would be precise with Local Storage? Thanks for the tip btw Quote Link to comment Share on other sites More sharing options...
Wolfsbane Posted July 18, 2018 Share Posted July 18, 2018 For a timer, yeah, probably not a good idea for Local Storage, especially since it's wrapped inside the browser, and I don't reeeally know what limitations the browser might impose on you when it comes to accessing the local file system. Ninjadoodle 1 Quote Link to comment Share on other sites More sharing options...
enpu Posted July 18, 2018 Share Posted July 18, 2018 Broadcast Channel API looks like something that could be used in this: https://developer.mozilla.org/en-US/docs/Web/API/Broadcast_Channel_API Ninjadoodle 1 Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted July 18, 2018 Author Share Posted July 18, 2018 @enpu @Wolfsbane - Thanks guys, looks interesting I will probably go with the easiest solution in this case, but will have a look into broadcast channels a little more, as the API sounds quite useful! Quote Link to comment Share on other sites More sharing options...
enpu Posted July 18, 2018 Share Posted July 18, 2018 Yeah just stretching one browser window into two monitors is a lot simpler solution. But if that doesn't work, then i would look into the Broadcast Channels API next. Ninjadoodle 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.