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

20308Re: simple button question

Expand Messages
  • Gawron1
    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>
      >
    • Show all 4 messages in this topic