A simple list menu(!)

I’m trying to create a simple list menu that will load my .swf file is a scrolling panel. I have played about with Flash 8 a long time ago so im very rusty and getting myself in knots ….
Here is my attempt can anyone help
Thanks
import fl.controls.List;
import fl.data.DataProvider;
import flash.net.navigateToURL;
var defaultMainDisplay:URLRequest = new URLRequest("home.swf");
// List box info
var File_list:Array = [
{label:"Home File", data:home.swf},
{label:"File 1", data:swf\File1.swf},
{label:"File 2", data:swf\File2.swf},
{label:"File 3", data:swf\File3.swf},
MyList.dataProvider = new DataProvider(File_list);
MyList.allowMultipleSelection = true;
MyList.addEventListener(Event.CHANGE, showData):void{
// I want the selected (data) .swf file to be loaded into a ScrollPalette on the screen replacing the default home.swf
removeChild(loader);
var newMainDisplayRequest:URLRequest = new URLRequest(+ event.target.selectedItem.data);
loader.load(newMainDisplayRequest);;
addChild(loader);
mainDisplay.loadMovie("home.swf");

I thought I might bright it down a level with using frame levels, but without success AGAIN!....
import fl.controls.List;
import fl.data.DataProvider;
var graphic:Array = [
{label:"Home Page", data:"home"},
{label:"About", data:"about"},
{label:"Index", data:"index"},
myList.dataProvider = new DataProvider(graphic);
myList.allowMultipleSelection = false;
myList.addEventListener(Event.CHANGE, showData);
function showData (event:Event)
{ gotoAndStop (+ event.target.selectedItem.data);
/// This should make it {gotoAndStop (home, about or index....);}

Similar Messages

  • How print  ADDRESSbook simple list? Everything prints scewd right &too long

    I'd liike to print out a simple list of names, phone, addresses from my mac AddressBook. Can't I design the layout? Prints first left 1/3 column jjust phone number, center column just name, and all the other info squeezed at the riight margin with several fields that take up space verticle so I can only print sometiimes maybe 4-6 names a page. If i had a lot of notes in the person's 'NOTES' section of their AddressBook page, it will print out everything, even a couple pages. How not print thhat? I want a simple abbbreviated, short list to carry with at least 10-14 names, address,phone,email, etc on each page.
    I'mm sure the annswer is around here somewhere, iif only i knew where.
    Thanking you foor your help and time.

    Hi thelnukus,
    Are you saying that you see the list correctly but it is printing in a vertical format albeit somewhat skewed?
    I'm not an expert with printing the Address Book in "list" form but have you tried creating a PDF first and then printing that? You do know that you can select/deselect what you wish to include in the list from the "attributes" pane?
    My method for printing a list is this:
    1. Open Address Book
    2. Select in the "Names" column the names that I wish to print a list of.
    3. File Menu>Print
    4. Select/deselect addresses/email etc. from the attributes pane that you do not wish to include in
    the list.
    5. Select other features I want such as Font size (regular/large) from the pop up.
    6. Select Print (or if that does not work select Save as PDF and then print that).
    post back if this doesn't help and try to explain what you are seeing exactly.
    littleshoulders

  • Trouble centering an unordered list menu inside a div

    Hello,
    I have an unordered list menu that is giving me a fit. I can't seem to figure out how to center it in the div. Structure is like this:
    <div id="first-nav">
    <ul>
    <li>one</li>
    <li>two</li>
    <li>three</li>
    <li>four</li>
    <li>five</li>
    </ul>
    </div>
    In my css I have:
    #first-nav{width:100%; text-align:center;}
    It's not moving the UL to the center of the div. Link Here http://skeeterz71.com/gothic/
    I'm at a loss of what to do. Any help is appreciated.
    Thanks

    I figured it out. I forgot to set mu UL to display: inline-block;
    It is always something simple and this time in the morning, easy to overlook:)

  • Simple bash menu

    I wanted a simple bash menu where arrow keys could be used to select items. So here it is. It requires cuu and cud in the teminfo or it fails to look nice.
    Example usage, distro="`smenu ArchLinux Debian Ubuntu Gentoo`"
    Feel free to modify and adapt for your own personal usage.
    #!/bin/bash
    # input: list of menu items
    # output: item selected
    # exit codes: 0 - normal, 1 - abort, 2 - no menu items, 3 - too many items
    # to select item, press enter; to abort press q
    [[ $# -lt 1 ]] && exit 2 # no menu items, at least 1 required
    [[ $# -gt $(( `tput lines` - 1 )) ]] && exit 3 # more items than rows
    # set colors
    cn="`echo -e '\r\e[0;1m'`" # normal
    cr="`echo -e '\r\e[1;7m'`" # reverse
    # keys
    au="`echo -e '\e[A'`" # arrow up
    ad="`echo -e '\e[B'`" # arrow down
    ec="`echo -e '\e'`" # escape
    nl="`echo -e '\n'`" # newline
    tn="$#" # total number of items
    { # capture stdout to stderr
    tput civis # hide cursor
    cp=1 # current position
    end=false
    while ! $end
    do
    for i in `seq 1 $tn`
    do
    echo -n "$cn"
    [[ $cp == $i ]] && echo -n "$cr"
    eval "echo \$$i"
    done
    read -sn 1 key
    [[ "$key" == "$ec" ]] &&
    read -sn 2 k2
    key="$key$k2"
    case "$key" in
    "$au")
    cp=$(( cp - 1 ))
    [[ $cp == 0 ]] && cp=$tn
    "$ad")
    cp=$(( cp + 1 ))
    [[ $cp == $(( tn + 1 )) ]] && cp=1
    "$nl")
    si=true
    end=true
    "q")
    si=false
    end=true
    esac
    tput cuu $tn
    done
    tput cud $(( tn - 1 ))
    tput cnorm # unhide cursor
    echo "$cn" # normal colors
    } >&2 # end capture
    $si && eval "echo \$$cp"
    # eof
    Last edited by fsckd (2010-09-29 21:31:17)

    livibetter wrote:
    Nice code.
    I manually added j, k, and o (~Return) into the key checking part. I could use j,k or up,down to choose, but I wonder if that possible you can re-code to make it can accept multiple keys set in $au,$ad, and $nl.
    Thanks. In the case statement you can add multiple keys, like:
    "$au"|k)
    <snip>
    "$ad"|j)
    livibetter wrote:Also, a new option to clean up the menu after user choice or leave?
    I didn't want this which is why it's not in the script. At the bottom of the script, change tput cud $(( tn - 1 )) to tput dl $tn ; tput cuu1 and it should delete the lines.
    Bug: does not work with fish shell, set distro (./smenu ArchLinux Debian Ubuntu Gentoo); I wonder how it fares with other shells and terminals.

  • Centering a horizontal list menu

    I know this has been talked about but for the life of me
    can't find the
    answer. In a basic, simple, horizontal unordered list menu,
    how can I center
    the menu in a table cell? It loves to live on the left, dang
    it!
    I don't have a page to show since the client's looking at a
    sample page so I
    faked the menu spacing, but I'd like to do it correctly.
    Here's the basic
    code (per one of Murray's posts in case it looks familiar):
    <ul>
    <li>One</li>
    <li>Two</li>
    <li>Three</li>
    <li>Four</li>
    <li>Five</li>
    </ul
    #menu ul {
    margin: 0; padding: 0;
    #menu li {
    margin: 0;
    padding: 0 10px 0 10px;
    list-style: none;
    float:left;
    Thanks!
    Mad Dog

    Thanks! The other thing is needed is to get rid of that silly
    ole
    float:left.
    MD
    P@tty Ayers ~ACE wrote:
    > I changed this:
    >
    > #menu ul {
    > margin: 0;
    > padding: 0;
    > }
    >
    > ...to this:
    >
    > #menu ul {
    > margin: 0 auto;
    > padding: 0;
    > }
    >
    > ...and it centered the menu in the table cell for me.
    I'm not sure
    > what you have #menu applied to - I applied it to a div
    which I
    > wrapped around the <ul>, all inside a table cell.
    >
    > Hope that might help,
    >
    >
    > --
    > Patty Ayers | Adobe Community Expert
    > www.WebDevBiz.com
    > Free Articles on the Business of Web Development
    > Web Design Contract, Estimate Request Form, Estimate
    Worksheet
    >
    > "Mad Dog" <[email protected]> wrote in message
    > news:etp2a8$6d0$[email protected]..
    >> I know this has been talked about but for the life
    of me can't find
    >> the answer. In a basic, simple, horizontal unordered
    list menu, how
    >> can I center the menu in a table cell? It loves to
    live on the left,
    >> dang it! I don't have a page to show since the
    client's looking at a
    >> sample
    >> page so I faked the menu spacing, but I'd like to do
    it correctly.
    >> Here's the basic code (per one of Murray's posts in
    case it looks
    >> familiar): <ul>
    >> <li>One</li>
    >> <li>Two</li>
    >> <li>Three</li>
    >> <li>Four</li>
    >> <li>Five</li>
    >> </ul
    >>
    >> #menu ul {
    >> margin: 0; padding: 0;
    >>
    >> }
    >>
    >>
    >> #menu li {
    >> margin: 0;
    >> padding: 0 10px 0 10px;
    >> list-style: none;
    >> float:left;
    >>
    >> }
    >>
    >>
    >> Thanks!
    >> Mad Dog

  • How to write heading in bold on a simple list?

    On a simple list, I want to write a heading in bold. How to write one in bold?
    Thanks.

    Hello,
    Format intensified on.
    Write: / l_header_text.
    Format intensified off.
    Message was edited by: Cyrill Smirnov

  • How do I pass a username form variable from a drop down list/menu to another page?

    Hi,
    I have a login_success.php page that has a drop down list/menu (which lists usernames). I want the user to click on their user name, and when they click the submit button the username information to be passed over to the username.php page which will contain a recordset, sorted by username.
    How do I pass the username info from the drop down list/menu to the username.php page?
    The drop down menu is connected to a recordset listUsername, I have filtered the recordset with the Form Variable = username, and I have used the POST method to send the username to the page username.php. I'm not sure how to structure the php or which page to place it on.
    <form id="form1" name="form1 method="post" action="username.php">
         <label for="username_id">choose username:</label>
         <select name="username_id" id-"username_id">
              <option value="1">username1</option>
              <option value="2">username2</option>
              <option value="3">username3</option>
              <option value="4">username4</option>
         </select>
         <input type="submit" name="send" id="send" value="Submit" />
         <input type="username" type="hidden" id="username" value="<?php echo $row_listUsername['username']; ?>" />
    </form>
    Could somebody help me please?
    Thanks.

    I would not post the variable over, In this case I personally would send it through the URL and use the $_GET method to retreve it. For Example.
    <html>
         <head>
              <title>Test Page</title>
              <script type="text/javascript">
                   function userID(){
                        //var ID = form1.userIDs.selectedIndex;
                        var user = form1.userIDs.options[form1.userIDs.selectedIndex].value;
                        window.location = "test.html?userID=" + user;
              </script>
         </head>
         <body>
              <form id="form1">
                   <select name="userIDs" id="userIDs" onchange="userID();">
                        <option>Select a User</option>
                        <option value="1">User 1</option>
                        <option value="2">User 2</option>
                        <option value="3">User 3</option>
                        <option value="4">User 4</option>
                   </select>
              </form>
         </body>
    </html>
    //PAGE TO RETRIEVE THE USERNAME
    <?php
    if(isset($_GET['userID'])
         $userID = $_GET['userID'];
         echo $userID;
         die;

  • How do I make my form (list/menu) items open in the same window (self).

    Hello, the kind, brilliant people on this forum have always been able to help me in the past, so I thought I'd give it a try today. Items in a form (list/menu) that I've created are opening in a blank window (pop-up) when clicked. I would like them to open in "self" mode so that pop up blockers on various computers don't become a challenge for site visitors. Can anyone please tell me how I could make that adjustment? I selected the entire form "red dotted line" around the list and changed the "target" in the properties menu to "self". Then I selected everything on the page and still not correct. I am inserting the code below. Any assistance to get me on the right track would be GREATLY appreciated!! BTW I also made the form a library item (just in case that fact is needed). Also if you need to see the actual link it is http://www.graphicmechanic.com/DEKALBCOUNTY/index.html. The "I WANT TO" list is the part I'm referring to.
    CODE BELOW:
    <form action="" method="post" name="form1" target="_self" class="style26" id="form1">
                       <a href="#" target="_self"><span class="style26">
                       <label FOR="iwantto">I WANT TO:</label>
                       <br />
                        <img src="../images/5x5.gif" alt="layout graphic" width="5" height="5" /><br />
                        <select name="iwantto" id="iwantto" class="style55" onchange="MM_jumpMenu('window.open()',this,0)">
                          <option value="http://web.co.dekalb.ga.us/voter/#">REGISTER TO VOTE</option>
                          <option value="https://govaffiliate.ezgov.com/ezutility/index.jsp?agency=3411">PAY MY WATER BILL</option>
                          <option value="../humanserv/hs-osa-facilities.html">FIND A SENIOR CENTER</option>
                          <option value="../humanserv/hs-lou-walker.html">GET INFO ABOUT LOU WALKER CENTER</option>
                          <option value="http://www.dekalbstatecourt.net/">FILE A RESTRAINING ORDER</option>
                          <option value="http://www.dekalbcountyanimalservices.com/">REPORT A LOOSE DOG</option>
                          <option value="http://web.co.dekalb.ga.us/courts/recorders/payment.asp">GET TRAFFIC CITATION INFO</option>
                          <option value="http://web.co.dekalb.ga.us/courts/probate/pistol.htm">APPLY FOR A PISTOL LICENSE</option>
                          <option value="http://web.co.dekalb.ga.us/courts/probate/marriage.htm">GET A MARRIAGE LICENSE</option>
                          <option value="http://www.co.dekalb.ga.us/dekalbflic/Centers.htm#service">FILE FOR A DIVORCE</option>
                          <option value="http://www.co.dekalb.ga.us/superior/index.htm">GET INFORMATION ABOUT JURY DUTY</option>
                          <option value="http://web.co.dekalb.ga.us/taxcommissioner/search.asp">PAY MY TAXES</option>
                        </select>
                       </span>
                       </a>
    </form>

    Looks like it still isn't working. When I removed those items the drop down menu stopped working as well. I went ahead and posted yours as the correct answer. I'm convinced it's my skill level. i'm gonna do some javascript searches to see where the js code should go, it's very confusing to me. Here is that code in case anything sticks out to you or anyone else.
    <link href="../cssfiles/lbistyles.css" rel="stylesheet" type="text/css"/>
    <form action="" method="" name="form1" class="style26" id="form1">
                     <span class="style26">
                       <label FOR="iwantto">I WANT TO:</label>
                       <br />
                        <img src="../images/5x5.gif" alt="layout graphic" width="5" height="5" /><br />
                        <select name="iwantto" id="iwantto" class="style55">
                        <option value="#" onClick="MM_goToURL('self','http://web.co.dekalb.ga.us/voter');return document.MM_returnValue">REGISTER TO VOTE</option>
                          <option value="https://govaffiliate.ezgov.com/ezutility/index.jsp?agency=3411">PAY MY WATER BILL</option>
                          <option value="../humanserv/hs-osa-facilities.html">FIND A SENIOR CENTER</option>
                          <option value="../humanserv/hs-lou-walker.html">GET INFO ABOUT LOU WALKER CENTER</option>
                          <option value="http://www.dekalbstatecourt.net/">FILE A RESTRAINING ORDER</option>
                          <option value="http://www.dekalbcountyanimalservices.com/">REPORT A LOOSE DOG</option>
                          <option value="http://web.co.dekalb.ga.us/courts/recorders/payment.asp">GET TRAFFIC CITATION INFO</option>
                          <option value="http://web.co.dekalb.ga.us/courts/probate/pistol.htm">APPLY FOR A PISTOL LICENSE</option>
                          <option value="http://web.co.dekalb.ga.us/courts/probate/marriage.htm">GET A MARRIAGE LICENSE</option>
                          <option value="http://www.co.dekalb.ga.us/dekalbflic/Centers.htm#service">FILE FOR A DIVORCE</option>
                          <option value="http://www.co.dekalb.ga.us/superior/index.htm">GET INFORMATION ABOUT JURY DUTY</option>
                          <option value="http://web.co.dekalb.ga.us/taxcommissioner/search.asp">PAY MY TAXES</option>
                        </select>
                       </span>
                       </a>
    </form>

  • Switch List Menu in G/L & Vendor Line Item Display

    Hi Dear All Experts,
    I've 2 problems.
    The first one is in the Vendor line item display program.
    copied RFITEMAP and create custom program and then I create new structure (like FAGLPOSX) to show extra fields. (eg. Vendor, User)
    New extra fields are shown when i execute but if I click switch menu from the setting menu, it is shown by the old fields not including new fields.
    The second one is in the GL Line Item display program.
    Even the Switch List menu is enable in the Vendor Line Item display custom program without changing anything for gui status, the switch list menu in my new custom program is disable.(copied from fagl_account_items_gl).
    Thks all in advance..
    TRA

    the second question is now solved.
    Include ZFAGL_ACCOUNT_ITEMS_DEF (C_REPID_GL     LIKE SY-REPID  VALUE  'FAGL_ACCOUNT_ITEMS_GL') I put custom program name in this field.
    When I changed to std program name, the switch list menu is enable..
    Only the first question is left..
    Please let me know is there any way to solve...
    Best Regards
    TRA

  • How to change a list/menu to a text field when 'Other' is chosen?

    Hi there. I've been trying to solve this for a week now and I have depleted all my resources, that is why I'm here. I even went to jquery but nothing works and I think I was over-complicating this way too much.
    In short: I have a contact form, which have a list/menu with validation, and one of the options of that list/menu is "other". What I want is that when the user select "other" automatically change to a text field in order to let the user put his custom color. This is what I have:
    <form method="post" action="process.php">
    <span id="spryselect1">
    <label for="colors"></label>
    <select name="colors" id="colors">
    <option selected="option1">Blue.</option>
    <option value="option2">White</option>
    <option value="option3">Red</option>
    <option value="other">other</option>
    </select>
    <span class="selectRequiredMsg">Please select a colour.</span></span>
    <input type="submit" value="Send">
    </form>
    I know now that the approach is to show/hide a separate textbox besides the other... well. I don't know how to implement that, I think I really need your help guys. I'm completely frustrated.
    Thanks in advance.

    Have a look at the following
    <!DOCTYPE HTML>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    <link href="http://labs.adobe.com/technologies/spry/widgets/selectvalidation/SpryValidationSelect.css" rel="stylesheet">
    <link href="http://labs.adobe.com/technologies/spry/widgets/textfieldvalidation/SpryValidationTextField.css" rel="stylesheet">
    <style>
    .hidden {display:none;}
    </style>
    </head>
    <body>
    <form action="" method="post">
      <span id="spryselect1">
      <label for="colors">Colours:</label>
      <select name="colors" id="colors" onchange="MyOnClickHandler(this.value)">
        <option value="">Please select...</option>
        <option value="blue">Blue</option>
        <option value="white">White</option>
        <option value="red">Red</option>
        <option value="other">other</option>
      </select>
      <span class="selectRequiredMsg">Please select a colour.</span></span><span id="sprytextfield1">
      <input name="other" id="other" class="hidden" type="text">
      <span class="textfieldRequiredMsg">A value is required.</span></span>
      <input name="" type="submit">
    </form>
    <script src="http://labs.adobe.com/technologies/spry/includes_minified/SpryDOMUtils.js"></script>
    <script src="http://labs.adobe.com/technologies/spry/includes_minified/SpryValidationSelect.js"></script>
    <script src="http://labs.adobe.com/technologies/spry/includes_minified/SpryValidationTextField.js"></script>
    <script>
    var spryselect1 = new Spry.Widget.ValidationSelect("spryselect1");
    var sprytextfield1;
    function MyOnClickHandler(value) {
         if(value =='other') { //show text field and set validation
              if(!sprytextfield1){
              sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1");
              Spry.$$('input#other').removeClassName('hidden');
         } else { //hide textfield and destroy validation
              if(sprytextfield1 && sprytextfield1.destroy){
                   sprytextfield1.resetClasses();
                   sprytextfield1.destroy();
                   sprytextfield1 = null;
              Spry.$$('input#other').addClassName('hidden');
         return false;
    </script>
    </body>
    </html>
    Gramps

  • List/Menu (multiple selected)  insert into MySQL

    I have been building a feedback form and I am running into a
    issue that when I place a list/menu that allows multiple selections
    when I submit my form in my MySQL database it collected the
    information but only on the last multiple selection.
    For example, this is what my list/menu looks like.
    <select name="occasion" size="5" multiple="MULTIPLE"
    id="occasion">
    <option value="Spur of the moment,">Spur of the
    moment</option>
    <option value="Family dinner">Family
    dinner</option>
    <option value="Special occasion (i.e.
    birthday)">Special occasion (i.e. birthday)</option>
    <option value="Office get together">Office get
    together</option>
    <option value="Romantic dinner">Romantic
    dinner</option>
    <option value="Night out with friends">Night out with
    friends</option>
    <option value="Business meeting">Business
    meeting</option>
    <option value="Other">Other</option>
    </select>
    And my MySQL database I have it set up as...
    Field Type
    occasion mediumtext
    I do not know why I cannot have more than one selection
    inputed into my field, what must I do to correct this? Everything
    works perfectly expect the multi selected list/menu. I want to
    place all that is selected in the list/menu in that one database
    field called occasion.

    .oO(MikeL7)
    >>You should also test with isset() and is_array() if
    $_POST['occasion']
    >>is available at all and of the expected type. The
    code above will also
    >>throw a notice if $insert_string is not initialized
    before the loop.
    >
    > I use both isset and is_array in my code, When you say
    notice, you dont mean
    >a script stoppiong error?
    Nope. An E_NOTICE error won't terminate the script, but
    shouldn't happen
    nevertheless. While developing, the error_reporting directive
    should be
    set to E_ALL|E_STRICT and _all_ reported problems should be
    solved. It's
    not only better coding style, but also helps to prevent real
    errors. In
    this particular case it was just a guess, because it was only
    a part of
    the code. But using an uninitialized variable with a '.='
    operator for
    example would lead to a notice, which should be fixed.
    >>But of course this is a really bad DB design, as it
    already violates the
    >> first normal form (1NF). Just some ideas for queries
    that might come to
    >> mind, but would be really hard to do with such a
    comma-separated list:
    >
    > A better table design would be to have column for |
    list_ID | user_ID |
    >song_ID | and do a insert for each song selected.
    Yes, something like that.
    >Thanks for the input, i like escaping the variables from
    a string as they
    >stand out more in code view, is the single quote method
    faster? And which one
    >will be or is already deprecated?
    All are correct and won't be deprecated. IMHO it's more or
    less just
    personal preference. It also depends on the used editor and
    its syntax
    highlighting capabilities. For example I use Eclipse/PDT for
    all my PHP
    scripts, which can also highlight variables inside a string.
    But if the
    above is your preferred way, there's nothing really wrong
    with it.
    Just some additional thoughts:
    Personally I prefer as less escaping and concatenating as
    possible,
    because such a mixture of single quotes, double quotes, dots
    and
    sometimes even escaped quote signs (for example when printing
    HTML)
    _really_ confuses me. I like to keep my code clean and
    readable.
    Something like this:
    print "<img src=\"".$someVar."\" ...>\n";
    not only hurts my eye, it is also quite error-prone. It's
    easy to miss a
    quote or a backslash and get a parse error back, especially
    in editors
    with limited syntax highlighting (or none at all). So I would
    prefer
    print "<img src='$someVar' ...>\n";
    or even
    printf("<img src='%s' ...>\n", $someVar);
    When it comes to performance issues, of course there's a
    difference
    between the various methods. But for me they don't really
    matter. In
    practice you usually won't notice any difference between an
    echo, a
    print or a printf() call for example, as long as you don't
    call them
    a million times in a loop.
    So I always just use the method that leads to the most
    readable code.
    In many cases, especially when a lot of variables or
    expressions are
    involved, (s)printf() wins. Not for performance, but for
    readability.
    But as said - personal preference. YMMV.
    Micha

  • Please help! How can I validate Radio Buttons and List Menu with PHP.

    Hello everyone, I have been learning PHP step by step and
    making little projects.
    The point is I find it easy to learn by doing "practical
    projects."
    I have been reading the David Powers's Book on PHP Solutions
    and it's really great, however there is nothing mentioned regarding
    Validating Radio buttons. I know the book cannot cover every aspect
    of PHP and maybe someone in here can help.
    I have been learning how to process HTML forms with PHP.
    The problem is every book or tutorial I have read or
    encountered fall short on validation.
    I'm wondering how I can learn to validate Radio Buttons and
    Select List Menu.
    I have managed to create validation for all other fields but
    have no clue as to how I can get validation for Radio Buttons and
    List Menu.
    I would also like an error message echoed when the user does
    not click a button or make a selection and try to submit the form.
    I would appreciate any help.
    Patrick

    It's not that default value is "None." In fact it's not. It
    will only be
    "none" when the form is submitted.
    Also if your submit button is names 'send' then
    $_POST['send'] will only be
    set if the form was submitted.
    Make sure you didn't hit the refresh button on your browser
    which usually
    reposts the information. Also make sure you did not reach the
    form from
    another form with the same button names.
    Otherwise paste the snippet.
    Also you can check what fields are set in the post array by
    adding this to
    the top of (or anywhere on) your page:
    print_r($_POST);
    Cosmo
    "Webethics" <[email protected]> wrote in
    message
    news:[email protected]...
    >
    quote:
    Originally posted by:
    Newsgroup User
    > Off the top of my head this should be no different than
    your radio buttons
    > except that 'productSelection' will always fail the
    !isset check when the
    > form is submitted since the default value is "None", and
    therefore always
    > set. :-)
    >
    > So how about this..?
    > <?php
    > if (isset($_POST['send']) and
    ($_POST['productSelection'] == "None"))
    > {echo "Please select a product.";}
    > ?>
    >
    >
    >
    >
    > "Webethics" <[email protected]> wrote
    in message
    > news:[email protected]...
    > > Another question - how do i applied the code you
    just showed me to
    > > select
    > > menu
    > > or select list?
    > >
    > > This is the list:
    > >
    > > <div class="problemProduct">
    > > <label for="productSelection"><span
    class="product_label">Product
    > > Name.</span></label>
    > > <select name="productSelection" id="products"
    class="selection">
    > > <option value="None">-------------Select a
    product----------</option>
    > > <option value="Everex DVD Burner">Everex DVD
    Burner</option>
    > > <option value="Vidia DVD Burner">Vidia DVD
    Burner</option>
    > > <option value="Excerion Super Drive">Excerion
    Super Drive</option>
    > > <option value="Maxille Optical Multi
    Burner">Maxille Optical Multi
    > > Burner</option>
    > > <option value="Pavilion HD Drives">Pavilion
    HD Drives</option>
    > > </select>
    > > </div>
    > >
    > > I thought I could just change the name is the code
    from operatingSystem
    > > to
    > > productSelection.
    > >
    > > Something like this:
    > >
    > > From this:
    > >
    > > <?php
    > > if (isset($_POST[send]) and
    !isset($_POST['operatingSystem']))
    > > {echo "Please select an operating system.";}
    > > ?>
    > >
    > > To this:
    > >
    > > <?php
    > > if (isset($_POST[send]) and
    !isset($_POST['productSelection']))
    > > {echo "Please select an operating system.";}
    > > ?>
    > >
    > > But this does not work, any ideas?
    > >
    > > Patrick
    > >
    >
    >
    >
    >
    > Hey, I tried this about but as you mentioned, since the
    default product
    > value
    > is "None" an error message appears when the page loads.
    >
    > Is there a way to code this things so that even though
    the default value
    > is
    > "None" there ia no error message untle you hit the
    submit?
    >
    > When I applied the code, it messes up the previous code,
    now the operating
    > system is requiring an entry on page load.
    >
    > When I remove the code from the list menu everything
    goes back to normal.
    >
    > I know this is a little much but I have no other
    alternatives.
    >
    > Patrick
    >

  • List/menu options from database

    Hello
    I need help trying to populate 2 list/menu with some database information.
    Let's suppose that this is my table:
    Id
    Brand
    Model
    1
    ford
    f1
    2
    citroen
    c1
    3
    citroen
    c2
    4
    citroen
    c3
    5
    toyota
    t1
    6
    toyota
    t2
    7
    volvo
    v1
    I have 2 list/menu. One is  the brand menu, which extracts the values  in the brand column of the database (using the DISTINCT statement in MySql). So when you click the menu, these options appear:
    ford
    citroen
    toyota
    volvo
    The  code for that menu is something like  this:
    <select name="menu_marque" id="menu_marque">
    <option value="null">select</option>
    <?php do {  ?>
    <?php
    print '<option  value="'.$row_marque_recordset['marque'].'">'.$row_marque_recordset['marque'].'</option>' ;
    ?>
    <?php } while ($row_marque_recordset =  mysql_fetch_assoc($marque_recordset)); ?>
    </select>
    Now,  I want to do the same for the model menu.  The problem is that I don't know how to write in the Sql, that it  should take the selected value of the brand menu.  I have something like this:
    SELECT modele FROM test WHERE marque  = 'colname' ORDER BY modele ASC
    (where colname is:  $_POST['menu_marque']..... Obviously I am not getting the value by a  POST method, but I tried changing it to something like:
    menu_marque.selectedIndex
    but  it doesn't work...... Any tips on how can I solve this

    Hi DanielAtwood,
    Thanks for your reply...
    Actually when i send the variable in 'WHERE Clause' in Db Adapter query it will retrieve more than one record as the output.
    I want to put that values to a 'SelectOneChoice' component and list down all the values..
    First I tried with data control. But i couldn't find the way to pass the value to the variable(in WHERE clause) to the query in data control view.
    Thanks,
    Nir

  • A simple list with seven time buckets starting from the date report is run.

    Hi All,
    I am new to ABAP.Recently i have planned to write a progam which will help in planning the delivery of scheduled items.For a given sales Org. it will display all the undelivered,delivered items in a simple list and sort them with delivery dates.it will also provide a summary report at material group.For that i have used selection screen(LIKP-VKORG-Obligatory).when i enter VKORG Details i should get all the delivery docs for which delivery is not done or partially done.For this i have taken one more table LIPS
    (LIPS-MATKL,LIPS-MATNR,LIPS-VBELN,LIPS-POSNR,LIPS-WERKS,LIPS-LFIMG,LIPS-MEINS) for tables LIKP and LIPS VBELN is the key field.when i enter VKORG Data in the selection screen ,how can i get the data from LIPS Table.Please explain?
    Also report should be simple list with seven time buckets starting from the date when the report is run.The amount of quantity to be delivered should be displayed under appropriate bucket i.e within the bucket where its delivery date falls in.for ex:If the report is run on Tuesday 15th march 2010 then the start date 1 should be starting date of the week which is Monday 14th March.
    The report will be summarized at Material Group and Material Number.
    Appreciate your help
    Thanks and Regards,
    Shakeer Hussain

    Sorry, sounds too much like a complete requirement you want done for you by the community.
    Please work on it yourself and search for available information before posting specific problems only.
    Thread locked.
    Thomas

  • Only allowed 1 simple list of web portal?

    Hi all,
    I have 4 simple lists as user prompts for a Service request. From the the web portal all is fine and seperate.
    When i log the same request from the console the 4 list are now 1 big list.
    Any way to seperate these out for the console other than creating MP lists for each?
    Which would mean you can only have 1 simple list per Service request?
    2012 RTM.

    Hi Anton,
    From the request offering setup, i added 4 differnt simple lists
    And from the console when i open the Service request i see all my lists with the default value for list in item 6 above, and when i try to drop down it shows everything from all 4 lists
    Any thoughts or is this normal behaviour?
    Thansk in advance
    John

Maybe you are looking for

  • BBC Radio Player no longer works with Airport Express

    This weekend I've been unable to get connected to the BBC Radio Player (from http://www.bbc.co.uk/radio). This has worked for the past year, and suddenly stopped. I have narrowed the problem down to the airport express. Radio streaming works without

  • Apple web site crashes safari on ipad

    I Have tried to get to the apple web site today and every time I try to access it safari crashes.     I can not understand how apples own web site can crash its browser on iPad.    ApparentLynn chrome does not have this issue

  • Installing on Tbook G4?

    I have an older powerbook, Titanium G4, 400 MHz and 768 SDRAM. Can I install Leopard on this?

  • Problem during ipad 2 update

    Hi guys! my ipad 2, bought right now, is blocked by about 40 minutes during the upgrade screen (update to 5.01) ... what can I do? I have to unplug the cable or wait? If you disconnect the cable may damage iPad? the update is about half of half... on

  • New S4 that Reboots / Freezes ?????  Any Ideas

    Help just got a Galaxy S4 and now the phone freezes when using it and reboots.  Mostly happens when i swipe the home screen to unlock to enter device.   Any ideas ??? Just got this phone last Thursday.   Any suggestions????  FYI My RAM is fine and ph