Using a popup menu and triggering an action when choosing an item?

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

    Using a popup menu and triggering an action when choosing an item?

    Hello,

    I'm a newbie in php.
    I would like to show a popup menu on my website and update the page when
    the user has changed its selection.
    I have looked over the Internet but haven't found what I want
    (apparently, "Popup menu" is not the correct term, but it's the one I
    use in "desktop" programming).

    Can someone point me in the right direction?
  • Sjoerd

    #2
    Re: Using a popup menu and triggering an action when choosing anitem?

    On Aug 19, 3:26 pm, Anic297 <h...@nowhere.m kwrote:
    I would like to show a popup menu on my website and update the page when
    the user has changed its selection.
    For the menu, you can try searching for "css menu" or "dhtml menu",
    since the menu is all HTML, JavaScript and CSS.

    When some item in the menu is clicked and a link is followed, then PHP
    come into play. An item in the menu can link to your PHP page which
    displays something.

    Comment

    • Erwin Moller

      #3
      Re: Using a popup menu and triggering an action when choosing anitem?


      Anic297 schreef:
      Hello,
      >
      I'm a newbie in php.
      I would like to show a popup menu on my website and update the page when
      the user has changed its selection.
      I have looked over the Internet but haven't found what I want
      (apparently, "Popup menu" is not the correct term, but it's the one I
      use in "desktop" programming).
      >
      Can someone point me in the right direction?
      Try comp.lang.javas cript

      Regards,
      Erwin Moller

      --
      =============== =============
      Erwin Moller
      Now dropping all postings from googlegroups.
      Why? http://improve-usenet.org/
      =============== =============

      Comment

      • Anic297

        #4
        Re: Using a popup menu and triggering an action when choosing anitem?

        Sjoerd a écrit:
        For the menu, you can try searching for "css menu" or "dhtml menu",
        since the menu is all HTML, JavaScript and CSS.
        >
        When some item in the menu is clicked and a link is followed, then PHP
        come into play. An item in the menu can link to your PHP page which
        displays something.
        Thanks, but I would like a simple popup menu like you can see in most
        desktop applications.

        For now, I have the following, but I don't receive any feedback when the
        selection is changed:

        <select name="cat" class="input" style="width:17 0px;font-size:12px;">
        <option value="">Anywhe re</option>
        <option value="news" >News</option>
        <option value="folders" >Special folders</option>
        <option value="tips >Tips</option>
        <option value="download " >Downloads</option>
        <option value="processe s" >Processes</option>
        <option value="faqs" >FAQs</option>
        <option value="help" selected="selec ted">Help</option>
        </select>

        (the main difference being that this menu can be placed anywhere on the
        page). Unless if you have a better idea, I'd like to implement this
        standard control. Thanks anyway.

        So, now, how do I manage to get when the user changes my menu (made with
        the code above) and display another page automatically?

        Comment

        • Anic297

          #5
          Re: Using a popup menu and triggering an action when choosing anitem?

          Erwin Moller a écrit:
          Anic297 schreef:
          >Hello,
          >>
          >I'm a newbie in php.
          >I would like to show a popup menu on my website and update the page
          >when the user has changed its selection.
          >I have looked over the Internet but haven't found what I want
          >(apparently, "Popup menu" is not the correct term, but it's the one I
          >use in "desktop" programming).
          >>
          >Can someone point me in the right direction?
          >
          Try comp.lang.javas cript
          Wow, it seems someone just asked this today (and got an answer)!
          Thank you!

          Comment

          • Anic297

            #6
            Re: Using a popup menu and triggering an action when choosing anitem?

            Sjoerd a écrit:
            For the menu, you can try searching for "css menu" or "dhtml menu",
            since the menu is all HTML, JavaScript and CSS.
            >
            When some item in the menu is clicked and a link is followed, then PHP
            come into play. An item in the menu can link to your PHP page which
            displays something.
            I would like to explain my thoughts about web programming, so, maybe,
            you might tell me where I'm wrong.

            I do "desktop" programming very often (the main thing I do on computers)
            and I find this really easier than "web" programming.
            For instance, it's easy to add any interface control on a window (like
            popup menus, check boxes, and so on...) in a "desktop" program. In a
            "web" script (program?), first it's really harder (you don't have events
            when things happen) and the user has just to deactivate JavaScript
            (which seems to be a common practice) to simply make a disaster on your
            website (because JavaScript seems to be the only way to do things in
            several areas).

            Is this true?

            Comment

            • john6630

              #7
              Re: Using a popup menu and triggering an action when choosing anitem?

              On Aug 19, 12:02 pm, Anic297 <h...@nowhere.m kwrote:
              Sjoerd a écrit:
              >
              For the menu, you can try searching for "css menu" or "dhtml menu",
              since the menu is all HTML, JavaScript and CSS.
              >
              When some item in the menu is clicked and a link is followed, then PHP
              come into play. An item in the menu can link to your PHP page which
              displays something.
              >
              I would like to explain my thoughts about web programming, so, maybe,
              you might tell me where I'm wrong.
              >
              I do "desktop" programming very often (the main thing I do on computers)
              and I find this really easier than "web" programming.
              For instance, it's easy to add any interface control on a window (like
              popup menus, check boxes, and so on...) in a "desktop" program. In a
              "web" script (program?), first it's really harder (you don't have events
              when things happen) and the user has just to deactivate JavaScript
              (which seems to be a common practice) to simply make a disaster on your
              website (because JavaScript seems to be the only way to do things in
              several areas).
              >
              Is this true?

              I too am a desktop programmer transitioning to web based applications.
              I believe this is the new paradigm and eventually desktop apps will
              fall to the wayside. In the meantime, it is true that everything is
              harder to do on the web. What I have discovered is that the world
              divides into 2 parts client side and server side. You can get events
              and components etc. for the client side but javascript is a must. On
              the server side you use PHP...and then you have to know DHTML and CSS.
              So it is a fragmented environment to say the least.

              My best advice to you is to check out the jQuery library. It is by far
              the best resource I have found. The user community is very active and
              the library/plugins are everything you will need. As for users turning
              off javascript, I do not see how anyone can expect to run a web app
              without allowing javascript. If building an app without javascript is
              your objective, I do not see how you can do it.

              Just my 2 cents worth.

              Joh

              Comment

              • Anic297

                #8
                Re: Using a popup menu and triggering an action when choosing anitem?

                john6630 a écrit:
                On Aug 19, 12:02 pm, Anic297 <h...@nowhere.m kwrote:
                >Sjoerd a écrit:
                >>
                >>For the menu, you can try searching for "css menu" or "dhtml menu",
                >>since the menu is all HTML, JavaScript and CSS.
                >>When some item in the menu is clicked and a link is followed, then PHP
                >>come into play. An item in the menu can link to your PHP page which
                >>displays something.
                >I would like to explain my thoughts about web programming, so, maybe,
                >you might tell me where I'm wrong.
                >>
                >I do "desktop" programming very often (the main thing I do on computers)
                >and I find this really easier than "web" programming.
                >For instance, it's easy to add any interface control on a window (like
                >popup menus, check boxes, and so on...) in a "desktop" program. In a
                >"web" script (program?), first it's really harder (you don't have events
                >when things happen) and the user has just to deactivate JavaScript
                >(which seems to be a common practice) to simply make a disaster on your
                >website (because JavaScript seems to be the only way to do things in
                >several areas).
                >>
                >Is this true?
                >
                >
                I too am a desktop programmer transitioning to web based applications.
                I believe this is the new paradigm and eventually desktop apps will
                fall to the wayside. In the meantime, it is true that everything is
                harder to do on the web. What I have discovered is that the world
                divides into 2 parts client side and server side. You can get events
                and components etc. for the client side but javascript is a must. On
                the server side you use PHP...and then you have to know DHTML and CSS.
                So it is a fragmented environment to say the least.
                >
                My best advice to you is to check out the jQuery library. It is by far
                the best resource I have found. The user community is very active and
                the library/plugins are everything you will need. As for users turning
                off javascript, I do not see how anyone can expect to run a web app
                without allowing javascript. If building an app without javascript is
                your objective, I do not see how you can do it.
                >
                Just my 2 cents worth.
                Yes, I agree with you.
                Thank you.

                Comment

                • Erwin Moller

                  #9
                  Re: Using a popup menu and triggering an action when choosing anitem?


                  Anic297 schreef:
                  john6630 a écrit:
                  >On Aug 19, 12:02 pm, Anic297 <h...@nowhere.m kwrote:
                  >>Sjoerd a écrit:
                  >>>
                  >>>For the menu, you can try searching for "css menu" or "dhtml menu",
                  >>>since the menu is all HTML, JavaScript and CSS.
                  >>>When some item in the menu is clicked and a link is followed, then PHP
                  >>>come into play. An item in the menu can link to your PHP page which
                  >>>displays something.
                  >>I would like to explain my thoughts about web programming, so, maybe,
                  >>you might tell me where I'm wrong.
                  >>>
                  >>I do "desktop" programming very often (the main thing I do on computers)
                  >>and I find this really easier than "web" programming.
                  >>For instance, it's easy to add any interface control on a window (like
                  >>popup menus, check boxes, and so on...) in a "desktop" program. In a
                  >>"web" script (program?), first it's really harder (you don't have events
                  >>when things happen) and the user has just to deactivate JavaScript
                  >>(which seems to be a common practice) to simply make a disaster on your
                  >>website (because JavaScript seems to be the only way to do things in
                  >>several areas).
                  >>>
                  >>Is this true?
                  >>
                  >>
                  >I too am a desktop programmer transitioning to web based applications.
                  >I believe this is the new paradigm and eventually desktop apps will
                  >fall to the wayside. In the meantime, it is true that everything is
                  >harder to do on the web. What I have discovered is that the world
                  >divides into 2 parts client side and server side. You can get events
                  >and components etc. for the client side but javascript is a must. On
                  >the server side you use PHP...and then you have to know DHTML and CSS.
                  >So it is a fragmented environment to say the least.
                  >>
                  >My best advice to you is to check out the jQuery library. It is by far
                  >the best resource I have found. The user community is very active and
                  >the library/plugins are everything you will need. As for users turning
                  >off javascript, I do not see how anyone can expect to run a web app
                  >without allowing javascript. If building an app without javascript is
                  >your objective, I do not see how you can do it.
                  >>
                  >Just my 2 cents worth.
                  >
                  Yes, I agree with you.
                  Thank you.
                  Anic, a warning about JQUERY: Most regulars in comp.lang.javas cript
                  think it is a mess produced by inferior programmers.

                  Me myself never used it, so I cannot comment on it, but I know the
                  people that say Jquery is inferior DO know what they are talking about.
                  And comp.lang.javas cript is filled with question concerning JQuery.

                  That is why I alway develop my own JavaScript: if you bumb into a
                  problem, you only have to find the bug in your own code, and not in a
                  100K lib.

                  Just a warning. You might get yourself into a bigger mess if you rely on
                  this package.

                  Regards,
                  Erwin Moller

                  --
                  =============== =============
                  Erwin Moller
                  Now dropping all postings from googlegroups.
                  Why? http://improve-usenet.org/
                  =============== =============

                  Comment

                  • Anic297

                    #10
                    Re: Using a popup menu and triggering an action when choosing anitem?

                    Erwin Moller a écrit:
                    >
                    Anic297 schreef:
                    >john6630 a écrit:
                    >>On Aug 19, 12:02 pm, Anic297 <h...@nowhere.m kwrote:
                    >>>Sjoerd a écrit:
                    >>>>
                    >>>>For the menu, you can try searching for "css menu" or "dhtml menu",
                    >>>>since the menu is all HTML, JavaScript and CSS.
                    >>>>When some item in the menu is clicked and a link is followed, then PHP
                    >>>>come into play. An item in the menu can link to your PHP page which
                    >>>>displays something.
                    >>>I would like to explain my thoughts about web programming, so, maybe,
                    >>>you might tell me where I'm wrong.
                    >>>>
                    >>>I do "desktop" programming very often (the main thing I do on
                    >>>computers)
                    >>>and I find this really easier than "web" programming.
                    >>>For instance, it's easy to add any interface control on a window (like
                    >>>popup menus, check boxes, and so on...) in a "desktop" program. In a
                    >>>"web" script (program?), first it's really harder (you don't have
                    >>>events
                    >>>when things happen) and the user has just to deactivate JavaScript
                    >>>(which seems to be a common practice) to simply make a disaster on your
                    >>>website (because JavaScript seems to be the only way to do things in
                    >>>several areas).
                    >>>>
                    >>>Is this true?
                    >>>
                    >>>
                    >>I too am a desktop programmer transitioning to web based applications.
                    >>I believe this is the new paradigm and eventually desktop apps will
                    >>fall to the wayside. In the meantime, it is true that everything is
                    >>harder to do on the web. What I have discovered is that the world
                    >>divides into 2 parts client side and server side. You can get events
                    >>and components etc. for the client side but javascript is a must. On
                    >>the server side you use PHP...and then you have to know DHTML and CSS.
                    >>So it is a fragmented environment to say the least.
                    >>>
                    >>My best advice to you is to check out the jQuery library. It is by far
                    >>the best resource I have found. The user community is very active and
                    >>the library/plugins are everything you will need. As for users turning
                    >>off javascript, I do not see how anyone can expect to run a web app
                    >>without allowing javascript. If building an app without javascript is
                    >>your objective, I do not see how you can do it.
                    >>>
                    >>Just my 2 cents worth.
                    >>
                    >Yes, I agree with you.
                    >Thank you.
                    >
                    Anic, a warning about JQUERY: Most regulars in comp.lang.javas cript
                    think it is a mess produced by inferior programmers.
                    >
                    Me myself never used it, so I cannot comment on it, but I know the
                    people that say Jquery is inferior DO know what they are talking about.
                    And comp.lang.javas cript is filled with question concerning JQuery.
                    >
                    That is why I alway develop my own JavaScript: if you bumb into a
                    problem, you only have to find the bug in your own code, and not in a
                    100K lib.
                    >
                    Just a warning. You might get yourself into a bigger mess if you rely on
                    this package.
                    Thank you for your warning. I won't try packages for now, I thimk.

                    Comment

                    Working...