Partage
  • Partager sur Facebook
  • Partager sur Twitter

Welcome me

javascript issue

Anonyme
    23 avril 2016 à 17:12:37

    hello guys,i wanna know the ways that lemme modify a js object property throught inputs in html,"data1.data" in my case which is numbers of sales in a graph  here is the code of my script thanks for your help guys
    • Partager sur Facebook
    • Partager sur Twitter
      23 avril 2016 à 18:13:52

      You wanna write some JS code into an input field to modify JS object?

      If yes, eval() but it's not really proper. Maybe by adding some object accessor and some switch case.

      • Partager sur Facebook
      • Partager sur Twitter
      $2b||!$2b
      Anonyme
        23 avril 2016 à 19:08:24

        skuti exactly,actualy data1 object contains data aray which is the number of sales in a graph,so i imagined if i am an admin and i get diffrent sales every week it would be easy if i just enter inputs an the graph changes automaticaly
        • Partager sur Facebook
        • Partager sur Twitter
          23 avril 2016 à 19:58:46

          Did you read something about your plugin Chart auto refresh?

          Changing the input configuration will not automatically change the graph.

          • Partager sur Facebook
          • Partager sur Twitter
          $2b||!$2b
          Anonyme
            23 avril 2016 à 20:04:05

            no,i didn't but i'd like to get ideas on how to change chart values throught inputs in html
            • Partager sur Facebook
            • Partager sur Twitter
              24 avril 2016 à 8:55:03

              What is the right Chart plugin name? I'll gonna check

              -
              Edité par skuti 25 avril 2016 à 9:41:35

              • Partager sur Facebook
              • Partager sur Twitter
              $2b||!$2b

              Welcome me

              × Après avoir cliqué sur "Répondre" vous serez invité à vous connecter pour que votre message soit publié.
              × Attention, ce sujet est très ancien. Le déterrer n'est pas forcément approprié. Nous te conseillons de créer un nouveau sujet pour poser ta question.
              • Editeur
              • Markdown