-1

I am trying to acheive having 2 open html files open and be able to manipulate on with the other.

not sure where to start. I am attempting to create a cricket scoreboard layout and have the first html file which will be displayed on an electronic scoreboard while a game is being played and want to be able to have buttons in another file which will be used on another computer or tablet to change the wickets and runs.

Any guidance would be appreciated.

1 Answers1

0

Flow

Having a webserver to handle this would be ideal but if that is not the case.

  • You may need a database to store the score which can be accessed by both the pages. While one page would write/update the score other page (scoreboard) would primarily be fetching the data to show it. Check this to find how to access and updpate sqlite. Is it possible to access an SQLite database from JavaScript?

you can access SQLite database with client-side JavaScript by using SQL.js.

  • For the scoreboard page, access data from sqlite db and auto-refresh so that the latest scores are shown. Add below html tag to refresh every 5 seconds.

<meta http-equiv="refresh" content="5" >
Community
  • 1
  • 1
Penguin
  • 169
  • 3
  • 14