on/off midi file by using radio buttons

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • shror

    on/off midi file by using radio buttons

    i want to add a midi file to my pages and i want to put two radio
    buttons so that on is on and the other is off so that the users can
    start or stop the file playing by choosing one of the radio buttons,
    but the problem is that i dont know how to do it.

    does any body know how this could be done
    Thanks in advance for your help

    shror


  • Erwin Moller

    #2
    Re: on/off midi file by using radio buttons

    shror wrote:
    i want to add a midi file to my pages and i want to put two radio
    buttons so that on is on and the other is off so that the users can
    start or stop the file playing by choosing one of the radio buttons,
    but the problem is that i dont know how to do it.
    >
    does any body know how this could be done
    Thanks in advance for your help
    >
    shror
    www.s7els7.com
    Hi,

    This is a clientside issue.
    Since PHP is serverside , it cannot help you playing midifiles on the
    client.
    PHP only produces the response (HTML) that your client (browser) receives.

    Try a HTML newsgroup or JavaScript.
    eg: comp.lang.javas cript

    Regards,
    Erwin Moller

    Comment

    • Jerry Stuckle

      #3
      Re: on/off midi file by using radio buttons

      shror wrote:
      i want to add a midi file to my pages and i want to put two radio
      buttons so that on is on and the other is off so that the users can
      start or stop the file playing by choosing one of the radio buttons,
      but the problem is that i dont know how to do it.
      >
      does any body know how this could be done
      Thanks in advance for your help
      >
      shror

      >
      You can't do it in PHP. PHP is server side - it knows nothing about
      buttons being clicked on the client until the user submits the form.
      And once that form is submitted, PHP still can't affect the player on
      the client machine. That would be a huge security hole.

      You might be able to do it with javascript - but I doubt it. I haven't
      looked into the api's for the various players, so I don't know what you
      can and can't do client-side.

      But why bother? Players have their own start and stop buttons.

      --
      =============== ===
      Remove the "x" from my email address
      Jerry Stuckle
      JDS Computer Training Corp.
      jstucklex@attgl obal.net
      =============== ===

      Comment

      • shror

        #4
        Re: on/off midi file by using radio buttons

        On Mar 15, 3:28 pm, Jerry Stuckle <jstuck...@attg lobal.netwrote:
        shror wrote:
        i want to add a midi file to my pages and i want to put two radio
        buttons so that on is on and the other is off so that the users can
        start or stop the file playing by choosing one of the radio buttons,
        but the problem is that i dont know how to do it.
        >
        does any body know how this could be done
        Thanks in advance for your help
        >>
        You can't do it in PHP. PHP is server side - it knows nothing about
        buttons being clicked on the client until the user submits the form.
        And once that form is submitted, PHP still can't affect the player on
        the client machine. That would be a huge security hole.
        >
        You might be able to do it with javascript - but I doubt it. I haven't
        looked into the api's for the various players, so I don't know what you
        can and can't do client-side.
        >
        But why bother? Players have their own start and stop buttons.
        >
        --
        =============== ===
        Remove the "x" from my email address
        Jerry Stuckle
        JDS Computer Training Corp.
        jstuck...@attgl obal.net
        =============== ===
        the idea is that am implementing an ecard system to my company and
        they told me to add music option to the cards, so i found this website
        http://www.christianet.com/cgi-bin/ecards.cgi and i liked the idea but
        i dont know how its working, so thats why i was asking.

        anyway thanx for telling me about checking javascripts i was not
        looking at the situation that its a clinet side, thanks for directing
        me.

        shror


        Comment

        • shror

          #5
          Re: on/off midi file by using radio buttons

          On Mar 15, 3:28 pm, Jerry Stuckle <jstuck...@attg lobal.netwrote:
          shror wrote:
          i want to add a midi file to my pages and i want to put two radio
          buttons so that on is on and the other is off so that the users can
          start or stop the file playing by choosing one of the radio buttons,
          but the problem is that i dont know how to do it.
          >
          does any body know how this could be done
          Thanks in advance for your help
          >>
          You can't do it in PHP. PHP is server side - it knows nothing about
          buttons being clicked on the client until the user submits the form.
          And once that form is submitted, PHP still can't affect the player on
          the client machine. That would be a huge security hole.
          >
          You might be able to do it with javascript - but I doubt it. I haven't
          looked into the api's for the various players, so I don't know what you
          can and can't do client-side.
          >
          But why bother? Players have their own start and stop buttons.
          >
          --
          =============== ===
          Remove the "x" from my email address
          Jerry Stuckle
          JDS Computer Training Corp.
          jstuck...@attgl obal.net
          =============== ===
          i have found that the card is loading if i choose for example off
          music and its loading with another link, so i was wondering if i can
          make the page reload by just chooseing a radio button, so that the on/
          off radio buttons are a form part and directly by choosing a radio
          button the form is submitted to be containing the music file or not.

          anyway its just a idea if anybody can help me solving it

          Thanks again
          shror


          Comment

          • Erwin Moller

            #6
            Re: on/off midi file by using radio buttons

            shror wrote:
            On Mar 15, 3:28 pm, Jerry Stuckle <jstuck...@attg lobal.netwrote:
            >shror wrote:
            i want to add a midi file to my pages and i want to put two radio
            buttons so that on is on and the other is off so that the users can
            start or stop the file playing by choosing one of the radio buttons,
            but the problem is that i dont know how to do it.
            >>
            does any body know how this could be done
            Thanks in advance for your help
            >>>>
            >You can't do it in PHP. PHP is server side - it knows nothing about
            >buttons being clicked on the client until the user submits the form.
            >And once that form is submitted, PHP still can't affect the player on
            >the client machine. That would be a huge security hole.
            >>
            >You might be able to do it with javascript - but I doubt it. I haven't
            >looked into the api's for the various players, so I don't know what you
            >can and can't do client-side.
            >>
            >But why bother? Players have their own start and stop buttons.
            >>
            >--
            >============== ====
            >Remove the "x" from my email address
            >Jerry Stuckle
            >JDS Computer Training Corp.
            >jstuck...@attg lobal.net
            >============== ====
            >
            i have found that the card is loading if i choose for example off
            music and its loading with another link, so i was wondering if i can
            make the page reload by just chooseing a radio button, so that the on/
            off radio buttons are a form part and directly by choosing a radio
            button the form is submitted to be containing the music file or not.
            >
            Yes you can do that. Easily.
            But again: With JavaScript.
            NOT WITH PHP.

            Go here: comp.lang.javas cript

            Regards,
            Erwin Moller
            anyway its just a idea if anybody can help me solving it
            >
            Thanks again
            shror
            www.s7els7.com

            Comment

            • shror

              #7
              Re: on/off midi file by using radio buttons

              On Mar 15, 6:58 pm, Erwin Moller
              <since_humans_r ead_this_I_am_s pammed_too_m... @spamyourself.c omwrote:
              shror wrote:
              On Mar 15, 3:28 pm, Jerry Stuckle <jstuck...@attg lobal.netwrote:
              shror wrote:
              i want to add a midi file to my pages and i want to put two radio
              buttons so that on is on and the other is off so that the users can
              start or stop the file playing by choosing one of the radio buttons,
              but the problem is that i dont know how to do it.
              >
              does any body know how this could be done
              Thanks in advance for your help
              >>
              You can't do it in PHP. PHP is server side - it knows nothing about
              buttons being clicked on the client until the user submits the form.
              And once that form is submitted, PHP still can't affect the player on
              the client machine. That would be a huge security hole.
              >
              You might be able to do it with javascript - but I doubt it. I haven't
              looked into the api's for the various players, so I don't know what you
              can and can't do client-side.
              >
              But why bother? Players have their own start and stop buttons.
              >
              --
              =============== ===
              Remove the "x" from my email address
              Jerry Stuckle
              JDS Computer Training Corp.
              jstuck...@attgl obal.net
              =============== ===
              >
              i have found that the card is loading if i choose for example off
              music and its loading with another link, so i was wondering if i can
              make the page reload by just chooseing a radio button, so that the on/
              off radio buttons are a form part and directly by choosing a radio
              button the form is submitted to be containing the music file or not.
              >
              Yes you can do that. Easily.
              But again: With JavaScript.
              NOT WITH PHP.
              >
              Go here: comp.lang.javas cript
              >
              Regards,
              Erwin Moller
              >
              >
              >
              anyway its just a idea if anybody can help me solving it
              >
              Thanks again
              shror
              www.s7els7.com- Hide quoted text -
              >
              - Show quoted text -- Hide quoted text -
              >
              - Show quoted text -
              Thanks so much for your answers

              shror

              Comment

              Working...