Loading ...
Sorry, an error occurred while loading the content.

Re: simple button question

Expand Messages
  • Gawron1
    Has anyone messed with the button control? Im still stumped..:) Thanks ... src= http://yui.yahooapis.com/2.3.1/build/button/button-beta-min.js
    Message 1 of 4 , Nov 1, 2007
    • 0 Attachment
      Has anyone messed with the button control? Im still stumped..:)

      Thanks


      --- In ydn-javascript@yahoogroups.com, "Gawron1" <Gawron2@...> wrote:
      >
      > I have skinned my button fine. Its just a basic button with a drop
      > down menu. Basically when they choose a menu option I want to push
      > them off to another URL. I know I am just missing it in the
      > documentation, but if someone could push me in the right direction, it
      > would be a big help.
      >
      > Here is my code.:
      >
      > It creates the button no problem. I just want to redirect when they
      > hit the dropdown selection.
      >
      > <script type="text/javascript"
      >
      src="http://yui.yahooapis.com/2.3.1/build/button/button-beta-min.js"></script>
      >
      >
      > <div>
      >
      > <input type="submit" id="menubutton1" name="menubutton1_button"
      > value="Options">
      > <select id="menubutton1select" name="menubutton1select">
      > <option onclick="window.location('http://www.msnbc.com');"
      > value="0">Refresh Queue</option>
      > <option value="1">Transfer Document</option>
      > <option value="2">Split Document</option>
      > <option value="3">Delete Document</option>
      > <option value="4">Email Notification</option>
      > <option value="5">Print Barcodes</option>
      > </select>
      >
      >
      > <script language=javascript>
      > var oMenuButton1 = new YAHOO.widget.Button("menubutton1", {
      > type: "menu",
      > menu: "menubutton1select" });
      >
      >
      > </script>
      >
    • Gopal Venkatesan
      ... Enclose the input/select elements inside a form and specify the form action. When the drop-dorn is chosen the form is submitted automatically. -- Gopal
      Message 2 of 4 , Nov 1, 2007
      • 0 Attachment
        On Thu, Nov 01, 2007 at 03:39:59PM -0000, Gawron1 wrote:
        > > I have skinned my button fine. Its just a basic button with a drop
        > > down menu. Basically when they choose a menu option I want to push
        > > them off to another URL. I know I am just missing it in the
        > > documentation, but if someone could push me in the right direction, it
        > > would be a big help.
        > >
        > > Here is my code.:
        > >
        > > It creates the button no problem. I just want to redirect when they
        > > hit the dropdown selection.
        > >

        Enclose the input/select elements inside a form and specify the form
        action. When the drop-dorn is chosen the form is submitted
        automatically.

        --
        Gopal Venkatesan

        http://gopalarathnam.com/weblog/
      • dav.glass@yahoo.com
        Gawron1 -- This example should get you going: http://blog.davglass.com/files/yui/button9/ Hope that helps :) Dav Dav Glass dav.glass@yahoo.com
        Message 3 of 4 , Nov 1, 2007
        • 0 Attachment
          Gawron1 --

          This example should get you going:
          http://blog.davglass.com/files/yui/button9/
           
          Hope that helps :)
          Dav

          Dav Glass
          dav.glass@...
          blog.davglass.com
           
           
          + Windows: n. - The most successful computer virus, ever. +
          + A computer without a Microsoft operating system is like a dog
          without bricks tied to its head +
          + A Microsoft Certified Systems Engineer is to computing what a
          McDonalds Certified Food Specialist is to fine cuisine +


          ----- Original Message ----
          From: Gawron1 <Gawron2@...>
          To: ydn-javascript@yahoogroups.com
          Sent: Thursday, November 1, 2007 8:39:59 AM
          Subject: [ydn-javascript] Re: simple button question

          Has anyone messed with the button control?  Im still stumped..:)

          Thanks


          --- In ydn-javascript@yahoogroups.com, "Gawron1" <Gawron2@...> wrote:
          >
          > I have skinned my button fine.  Its just a basic button with a drop
          > down menu.  Basically when they choose a menu option I want to push
          > them off to another URL.  I know I am just missing it in the
          > documentation, but if someone could push me in the right direction, it
          > would be  a big help.
          >
          > Here is my code.:
          >
          > It creates the button no problem.  I just want to redirect when they
          > hit the dropdown selection.
          >
          > <script type="text/javascript"
          >
          src="http://yui.yahooapis.com/2.3.1/build/button/button-beta-min.js"></script>
          >
          >
          >  <div>
          >       
          >    <input type="submit" id="menubutton1" name="menubutton1_button"
          > value="Options">
          >    <select id="menubutton1select" name="menubutton1select">
          >        <option  onclick="window.location('http://www.msnbc.com');"
          > value="0">Refresh Queue</option>
          >        <option value="1">Transfer Document</option>
          >        <option value="2">Split Document</option>               
          >        <option value="3">Delete Document</option>
          >        <option value="4">Email Notification</option>
          >        <option value="5">Print Barcodes</option>
          >    </select>
          >
          >   
          >    <script language=javascript>
          > var oMenuButton1 = new YAHOO.widget.Button("menubutton1", {
          >                                        type: "menu",
          >                                        menu: "menubutton1select" });
          >

          > </script>
          >





          Yahoo! Groups Links

          <*> To visit your group on the web, go to:
              http://groups.yahoo.com/group/ydn-javascript/

          <*> Your email settings:
              Individual Email | Traditional

          <*> To change settings online go to:
              http://groups.yahoo.com/group/ydn-javascript/join
              (Yahoo! ID required)

          <*> To change settings via email:
              mailto:ydn-javascript-digest@yahoogroups.com
              mailto:ydn-javascript-fullfeatured@yahoogroups.com

          <*> To unsubscribe from this group, send an email to:
              ydn-javascript-unsubscribe@yahoogroups.com

          <*> Your use of Yahoo! Groups is subject to:
              http://docs.yahoo.com/info/terms/


        Your message has been successfully submitted and would be delivered to recipients shortly.