Send variable value to other local page











up vote
0
down vote

favorite












I am trying to make a scoreboard for my darts scoring program, which I programmed in HTML. Basically, it is a program to keep the players' scores while playing darts. I have it all in one document right now, but I would like to have one page open to enter the scoring, for example on a tablet to punch in the scores, and another page open on another device, like a computer, which would be connected to the same network as the tablet used to punch in the data.



Here is the dart scoring program I already made: https://chrisle5512.github.io/dartscore/



So basically, I would like to make a separate page to display the scores only, instead of having them on the same display as the scoring tablet, so that we can see it bigger than on part of a tablet screen. I would go to the URL on my PS4 to show the score on my TV. I just don't know how to send the inputted data from the scoring page (tablet) to another local page (PS4).



If anyone could tell me how to share variable values inputted from one HTML page, to another HTML page on the same local network in real time, preferably using Javascript and avoiding jQuery, I would really appreciate it! Thanks in advance :)










share|improve this question






















  • Sounds like you need to upload to a database of some kind, JavaScript probably isn't your best option here.
    – GrumpyCrouton
    Nov 8 at 21:42










  • You will either need some kind of server backend or set up something using WebRTC. However, this question is too broad to be adequately answered here.
    – Herohtar
    Nov 8 at 21:43

















up vote
0
down vote

favorite












I am trying to make a scoreboard for my darts scoring program, which I programmed in HTML. Basically, it is a program to keep the players' scores while playing darts. I have it all in one document right now, but I would like to have one page open to enter the scoring, for example on a tablet to punch in the scores, and another page open on another device, like a computer, which would be connected to the same network as the tablet used to punch in the data.



Here is the dart scoring program I already made: https://chrisle5512.github.io/dartscore/



So basically, I would like to make a separate page to display the scores only, instead of having them on the same display as the scoring tablet, so that we can see it bigger than on part of a tablet screen. I would go to the URL on my PS4 to show the score on my TV. I just don't know how to send the inputted data from the scoring page (tablet) to another local page (PS4).



If anyone could tell me how to share variable values inputted from one HTML page, to another HTML page on the same local network in real time, preferably using Javascript and avoiding jQuery, I would really appreciate it! Thanks in advance :)










share|improve this question






















  • Sounds like you need to upload to a database of some kind, JavaScript probably isn't your best option here.
    – GrumpyCrouton
    Nov 8 at 21:42










  • You will either need some kind of server backend or set up something using WebRTC. However, this question is too broad to be adequately answered here.
    – Herohtar
    Nov 8 at 21:43















up vote
0
down vote

favorite









up vote
0
down vote

favorite











I am trying to make a scoreboard for my darts scoring program, which I programmed in HTML. Basically, it is a program to keep the players' scores while playing darts. I have it all in one document right now, but I would like to have one page open to enter the scoring, for example on a tablet to punch in the scores, and another page open on another device, like a computer, which would be connected to the same network as the tablet used to punch in the data.



Here is the dart scoring program I already made: https://chrisle5512.github.io/dartscore/



So basically, I would like to make a separate page to display the scores only, instead of having them on the same display as the scoring tablet, so that we can see it bigger than on part of a tablet screen. I would go to the URL on my PS4 to show the score on my TV. I just don't know how to send the inputted data from the scoring page (tablet) to another local page (PS4).



If anyone could tell me how to share variable values inputted from one HTML page, to another HTML page on the same local network in real time, preferably using Javascript and avoiding jQuery, I would really appreciate it! Thanks in advance :)










share|improve this question













I am trying to make a scoreboard for my darts scoring program, which I programmed in HTML. Basically, it is a program to keep the players' scores while playing darts. I have it all in one document right now, but I would like to have one page open to enter the scoring, for example on a tablet to punch in the scores, and another page open on another device, like a computer, which would be connected to the same network as the tablet used to punch in the data.



Here is the dart scoring program I already made: https://chrisle5512.github.io/dartscore/



So basically, I would like to make a separate page to display the scores only, instead of having them on the same display as the scoring tablet, so that we can see it bigger than on part of a tablet screen. I would go to the URL on my PS4 to show the score on my TV. I just don't know how to send the inputted data from the scoring page (tablet) to another local page (PS4).



If anyone could tell me how to share variable values inputted from one HTML page, to another HTML page on the same local network in real time, preferably using Javascript and avoiding jQuery, I would really appreciate it! Thanks in advance :)







javascript php html ajax






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 8 at 21:40









ChrisLe5512

124




124












  • Sounds like you need to upload to a database of some kind, JavaScript probably isn't your best option here.
    – GrumpyCrouton
    Nov 8 at 21:42










  • You will either need some kind of server backend or set up something using WebRTC. However, this question is too broad to be adequately answered here.
    – Herohtar
    Nov 8 at 21:43




















  • Sounds like you need to upload to a database of some kind, JavaScript probably isn't your best option here.
    – GrumpyCrouton
    Nov 8 at 21:42










  • You will either need some kind of server backend or set up something using WebRTC. However, this question is too broad to be adequately answered here.
    – Herohtar
    Nov 8 at 21:43


















Sounds like you need to upload to a database of some kind, JavaScript probably isn't your best option here.
– GrumpyCrouton
Nov 8 at 21:42




Sounds like you need to upload to a database of some kind, JavaScript probably isn't your best option here.
– GrumpyCrouton
Nov 8 at 21:42












You will either need some kind of server backend or set up something using WebRTC. However, this question is too broad to be adequately answered here.
– Herohtar
Nov 8 at 21:43






You will either need some kind of server backend or set up something using WebRTC. However, this question is too broad to be adequately answered here.
– Herohtar
Nov 8 at 21:43














1 Answer
1






active

oldest

votes

















up vote
0
down vote













You solution require a backend to work on. You are essentially talking about 3 interfaces, one interface to input the data, one interface to show the data, and one interface (which you are missing with) is the backend which will coordinate the data between the first two interfaces.



The backend cannot be built with HTML, you will need some sort of scripting language for that, like PHP or others. Once that build, you can synchronize the other two interfaces using javascript (without jquery) with the backend and that will give you the desired functionality.






share|improve this answer





















    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














     

    draft saved


    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53216540%2fsend-variable-value-to-other-local-page%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    You solution require a backend to work on. You are essentially talking about 3 interfaces, one interface to input the data, one interface to show the data, and one interface (which you are missing with) is the backend which will coordinate the data between the first two interfaces.



    The backend cannot be built with HTML, you will need some sort of scripting language for that, like PHP or others. Once that build, you can synchronize the other two interfaces using javascript (without jquery) with the backend and that will give you the desired functionality.






    share|improve this answer

























      up vote
      0
      down vote













      You solution require a backend to work on. You are essentially talking about 3 interfaces, one interface to input the data, one interface to show the data, and one interface (which you are missing with) is the backend which will coordinate the data between the first two interfaces.



      The backend cannot be built with HTML, you will need some sort of scripting language for that, like PHP or others. Once that build, you can synchronize the other two interfaces using javascript (without jquery) with the backend and that will give you the desired functionality.






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        You solution require a backend to work on. You are essentially talking about 3 interfaces, one interface to input the data, one interface to show the data, and one interface (which you are missing with) is the backend which will coordinate the data between the first two interfaces.



        The backend cannot be built with HTML, you will need some sort of scripting language for that, like PHP or others. Once that build, you can synchronize the other two interfaces using javascript (without jquery) with the backend and that will give you the desired functionality.






        share|improve this answer












        You solution require a backend to work on. You are essentially talking about 3 interfaces, one interface to input the data, one interface to show the data, and one interface (which you are missing with) is the backend which will coordinate the data between the first two interfaces.



        The backend cannot be built with HTML, you will need some sort of scripting language for that, like PHP or others. Once that build, you can synchronize the other two interfaces using javascript (without jquery) with the backend and that will give you the desired functionality.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 8 at 21:56









        Md Monjur Ul Hasan

        1,117721




        1,117721






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53216540%2fsend-variable-value-to-other-local-page%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Guess what letter conforming each word

            Port of Spain

            Run scheduled task as local user group (not BUILTIN)