Error message based on text in a drop-down menu...

So I have a simple number field and a text drop-down box (with, let's say, the values "Blue", "Red" and "Green".)
I want to set a minimum and maximum (say between 5 and 20) value on the number field and send an error if the user enters a number outside of that range. BUT the range can be different depending on if the user selects Blue, Red or Green from the drop-down menu.
So for Blue, the range might be 5-20; for Red 7-22, and Green 10-25.
SO if the user chooses Blue then enters a 4 or a 21, he'll get an error message prompting him to specifiy a value that is from 5-20.
That's it, in a nutshell.
Any help I could get would be awesome. Thanks in advance.
Thanks,
T.

There are several events to consider here:
1. The drop-down value is changed without any values in the text field
2. The drop-down value is changed with a value in the text field
3. The value of the text field is changed (I'm assuming there's no "blank" value in the drop-down, or there will be another event, where the value of the text field is changed when the "blank" option is selected)
You need to decide how to treat each event. I would recommend resetting the text field each time the value of the drop-down is changed. Otherwise you will need to perform the validation from two different sources.
To do that add the following code to the drop-down's custom validation script (replace "Text1" with the actual field's name):
this.resetForm(["Text1"]);
The code you can use for the text field can be something like this, as the custom validation script (replace "Color Selection" with the actual field's name):
event.rc = true;
if (event.value) {
    var color = this.getField("Color Selection").value;
    var min=0,max=0;
    if (color=="Blue") {
        min = 5;
        max = 20;
    } else if (color=="Red") {
        min = 7;
        max = 22;
    } else if (color=="Green") {
        min = 10;
        max = 25;
    var v = Number(event.value);
    if (v<min || v>max) {
        app.alert("Error! The value must be between " + min + " and " + max);
        event.rc = false;

Similar Messages

  • Add value entered in a text box to drop down menu options

    hi everyone
    i am making a pdf form for medical imaging report. i have a text box where the users enters a number, i want this entered number to appear within a drop down menu options
    thanks

    Hi Alexander,
    I can explain you the details there is a list as you mentioned Newsletter with a column email in it you are right but for your answer ya i can use enforce unique values for that column but if i am using it it gives me an error in the next page what i want
    is just beside my text box to say that already registered user.I want that functionality that is what i meant.
    Thanks
    Eswar
    Eswar Chand Teki

  • Email form script with custom text field and drop-down menu?

    Hey, I'm building a website in iWeb - http://dl.dropbox.com/u/19707357/Website/craftpackage.html
    And I was looking for a script that could possibly send an email to me with the info a user chooses from/puts in 1. dropdown menu 2. text field 3. another text field. I'd be awesome if the fields could have a custom background or a transparent background.The drop-down menu could have any background, but it would be awesome if it could be made with custom images !

    Basic question.
    What have you yourself done to find out?
    Nothing?
    Start here :
    http://www.google.com/search?q=how+to+make+a+mail+form
    http://www.google.com/search?q=dropdown+menu+with+transparent+background
    Unfortunately, it has no dropdown menu :
    http://www.wyodor.net/blog/archives/2010/01/entry_301.html
    Btw, dropdown menus in forms at select menus. These are not the same.
    http://www.google.com/search?q=select+menu+form
    http://http://www.w3schools.com/html/html_forms.asp
    So start practicing and once everything works the way it should, display it in a html snippet.

  • Display normal text instead of drop down menu

    I have two tables. One is the customer particular, which has RaceID(int) as one of the field. The other
    table is Race, which has RaceID(int) and Race(char). Both of these tables are linked together.
    I have the following code generated from Ultradev when I am using Dynamic Elements Server Behavior.
    I will gonna do a search page, which list the value of Race of customer in normal text for each staff,
    not the drop down menu(but during insert page, I am using drop down menu to enter the data). How to
    do that?
    Codes:(This code will generate a drop down menu which compare the value in the customer particular and
    the race tables. If selected, display that one with the drop down menu.
    <select name="race">
    <%
    while (Race_hasData) {
    %>
    <option value="<%=((Race.getObject("raceID")!=null)?Race.getObject("raceID"):"")%>" <%=(((Race.getObject("raceID")).toString().equals(((((Matching_data
    = Matching.getObject("raceID"))==null || Matching.wasNull())?"":Matching_data)).toString()))?"SELECTED":"")%>
    <%=((Race.getObject("race")!=null)?Race.getObject("race"):"")%></option><%
    Race_hasData = Race.next();
    Race.close();
    Race = StatementRace.executeQuery();
    Race_hasData = Race.next();
    Race_isEmpty = !Race_hasData;
    %>
    </select>

    don't use <select>, use <input type = "text"> instead and you will get text box.

  • Copy text fields and drop down menu fields

    Hi,
    Using LiveCycle Designer ES, I am making a simple form with some text fields and along with some drop-down menu fields.  With the resulting pdf, I need for one to be able to select the appropriate selection in the drop-down menus.  Then using cntl-a to select everything and then cntl-v to copy it into a text document.  This approach will only copy the text fields and not what is showing in the drop-down menu field.  Is there any way to solve this problem?  The end users computer has limited tools and software cannot be installed on it.
    Thank you for considering this issue and any help you may provide,
    ja

    Hi,
    I don't really know if the text field can be selected using Ctl+a, but if that is possible how about adding extra text field that is linked to pulldown menu?
    If the usage of the PDF is only for copying, then I would make a formcalc or javascript to combine all the text into one text field so that user only need to copy paste one field.

  • "undefined" appearing next to text in CSS Drop-Down menu, why?

    Hello everyone,
    I am having a problem with a CSS drop-down menu. The menu works fine, as you can see here:
    http://littlebuddymedia.com/help/011.html
    But the text "undefined" appears next to the main menu options. My question is, why?
    I have narrowed the problem down to this chunk of code:
    <div class="chromestyle" id="chromemenu">
    <ul>
    <li><a href="http://www.dynamicdrive.com">Home</a></li>
    <li><a href="#" rel="dropmenu1">Resources</a></li>
    <li><a href="#" rel="dropmenu2">News</a></li>
    <li><a href="#" rel="dropmenu3">Search</a></li>   
    </ul>
    </div>
    If you remove the rel="dropmenu1" portion of the code, the word "undefine" no longer appears, but then the menu doesnt drop-down anymore.
    Any ideas?
    If it is needed:
    Here is the CSS file: http://littlebuddymedia.com/help/chrometheme/chromestyle.css
    Here is the JS file:http://littlebuddymedia.com/help/chromejs/chrome.js
    Thank you.

    When I use FF to view the generated source, I see this -
    <li><a href="#" rel="dropmenu1">Resources undefined</a></li>
    <li><a href="#" rel="dropmenu2">News undefined</a></li>
    <li><a href="#" rel="dropmenu3">Search undefined</a></li>
    The undefined is coming from the javascript functions that you have loaded in that external file.  This function call is what starts it -
    <script type="text/javascript">
    cssdropdown.startchrome("chromemenu")
    </script>
    If you want 100% reliable drop menus that have been exhaustively tested in all common browsers/platforms, check the ones available from http://www.projectseven.com.

  • How do I get a sum of cells for rows that contain a text in a drop down menu?

    I am trying to track individual sales with each of my vendors. I have a column of drop down menu's that list each of my vendors. I am trying to associate a dollar amount for a single transaction in a row that is associated with a vendor and get a sum for all of my single trasactions with that vendor for the year. I have used =countif to build a pie chart of % of transactions per vendor now I am trying to get a dollar amount as well
    Thanks in advance
    Don

    HI Don,
    COUNTIF will count, SUMIF will sum.
    The main difference between them is that COUNTIF works with data in a single column—in this case the column containing the vendor names—while SUMIF uses two columns—the vendor names to decide which rows to include in the sums and the amount column to determine the amount to incude.
    Example:
    Main: Vendor names in column A, descriptions in columns B and C, and dollar amounts in column D
    Summary: Vendor names in column A, Number of transactions in column B, Dollar totals in column C
    Formulas inn Summary (both are entered in row 2 and filled doen to the last row):
    B2: =COUNTIF(Main :: $A,A2)
    C2: =SUMIF(Main :: $A,A2,Main :: $D)
    Regards,
    Barry

  • Error due to drop down menu in the dataTable

    I have a data table which has a drop down menu in one of the table columns. When the drop down menu is disabled, every action in the page works (click on it, and it does what it does). When the drop down menu is enabled, every action (with one exception) in the page does not work (click on it, it refreshes the page, but the action is not fired). I cannot debug the thing because the action is not fired at all.
    The exception is that for buttons that is marked as immediate, it works. I created an inline message, and wire that to the dropdown menu. I do not see any error. Looking into the log file, I do not see anything.
    I was suspecting maybe conversion error. The data value for the drop down menu is integer (I try both setting the convert to integer and nothing). Even there's error in conversion, there should be error message showing up (in the inline message box).
    So, again, how do I diagnos this, and to find out what is going on?
    Thank you very much.
    Vh.

    Thank you for your attention.
    The bug link is:
    https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=51
    I thought I could add attachment afterward, but I couldn't. Please add these for me:
    //////////////////////////////////////////////////// Page3.jsp //////////////////////////////////////////////////////////////////
    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page">
        <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
        <f:view>
            <html lang="en-US" xml:lang="en-US">
                <head>
                    <meta content="no-cache" http-equiv="Cache-Control"/>
                    <meta content="no-cache" http-equiv="Pragma"/>
                    <title>Page3 Title</title>
                    <link href="resources/stylesheet.css" rel="stylesheet" type="text/css"/>
                </head>
                <body style="-rave-layout: grid">
                    <h:form binding="#{Page3.form1}" id="form1">
                        <h:dataTable binding="#{Page3.dataTable1}" headerClass="list-header" id="dataTable1" rowClasses="list-row-even,list-row-odd"
                            style="height: 111px; left: 60px; top: 120px; position: absolute" value="#{Page3.dataTable1Model}" var="currentRow" width="360">
                            <h:column binding="#{Page3.column1}" id="column1">
                                <h:outputText binding="#{Page3.outputText1}" id="outputText1" value="#{currentRow.c1}"/>
                                <f:facet name="header">
                                    <h:outputText binding="#{Page3.outputText2}" id="outputText2" value="column1"/>
                                </f:facet>
                            </h:column>
                            <h:column binding="#{Page3.column2}" id="column2">
                                <h:outputText binding="#{Page3.outputText3}" id="outputText3" value="#{currentRow.c2}"/>
                                <f:facet name="header">
                                    <h:outputText binding="#{Page3.outputText4}" id="outputText4" value="column2"/>
                                </f:facet>
                            </h:column>
                            <h:column binding="#{Page3.column3}" id="column3">
                                <f:facet name="header">
                                    <h:outputText binding="#{Page3.outputText6}" id="outputText6" value="column3"/>
                                </f:facet>
                                <h:selectOneMenu binding="#{Page3.dropdown1}" converter="#{Page3.integerConverter1}" id="dropdown1" value="#{currentRow.c3}">
                                    <f:selectItems binding="#{Page3.dropdown1SelectItems}" id="dropdown1SelectItems" value="#{Page3.dropdown1DefaultItems}" />
                                </h:selectOneMenu>
                            </h:column>
                        </h:dataTable>
                        <h:outputText binding="#{Page3.outputMesg}" id="outputMesg" style="height: 32px; left: 240px; top: 50px; position: absolute; width: 180px"/>
                        <h:outputText binding="#{Page3.outputText8}" id="outputText8" style="height: 30px; left: 60px; top: 50px; position: absolute; width: 162px" value="Message:"/>
                        <h:commandButton action="#{Page3.button1_action}" binding="#{Page3.button1}" id="button1"
                            style="height: 25px; left: 300px; top: 260px; position: absolute; width: 109px" value="Say Hello"/>
                        <h:message binding="#{Page3.inlineMessage1}" errorClass="errorMessage" fatalClass="fatalMessage" for="dropdown1" id="inlineMessage1"
                            infoClass="infoMessage" showDetail="false" showSummary="true"
                            style="height: 102px; left: 60px; top: 300px; position: absolute; width: 360px" warnClass="warnMessage"/>
                        <h:outputText binding="#{Page3.outputText5}" id="outputText5" style="height: 30px; left: 60px; top: 260px; position: absolute; width: 120px" value="Error Message:"/>
                    </h:form>
                </body>
            </html>
        </f:view>
    </jsp:root>//////////////////////////////////////////////////// Page3.java //////////////////////////////////////////////////////////////////
    * Page3.java
    * Created on August 10, 2004, 10:35 AM
    * Copyright hovh
    package webapplication1;
    import javax.faces.*;
    import com.sun.jsfcl.app.*;
    import javax.faces.component.html.*;
    import com.sun.jsfcl.data.*;
    import java.util.*;
    import javax.faces.component.*;
    import javax.faces.convert.*;
    public class Page3 extends AbstractPageBean {
        // <editor-fold defaultstate="collapsed" desc="Creator-managed Component Definition">
        private int __placeholder;
        private HtmlForm form1 = new HtmlForm();
        public HtmlForm getForm1() {
            return form1;
        public void setForm1(HtmlForm hf) {
            this.form1 = hf;
        private HtmlDataTable dataTable1 = new HtmlDataTable();
        public HtmlDataTable getDataTable1() {
            return dataTable1;
        public void setDataTable1(HtmlDataTable hdt) {
            this.dataTable1 = hdt;
        private DefaultTableDataModel dataTable1Model = new DefaultTableDataModel();
        public DefaultTableDataModel getDataTable1Model() {
            return dataTable1Model;
        public void setDataTable1Model(DefaultTableDataModel dtdm) {
            this.dataTable1Model = dtdm;
        private UIColumn column1 = new UIColumn();
        public UIColumn getColumn1() {
            return column1;
        public void setColumn1(UIColumn uic) {
            this.column1 = uic;
        private HtmlOutputText outputText1 = new HtmlOutputText();
        public HtmlOutputText getOutputText1() {
            return outputText1;
        public void setOutputText1(HtmlOutputText hot) {
            this.outputText1 = hot;
        private HtmlOutputText outputText2 = new HtmlOutputText();
        public HtmlOutputText getOutputText2() {
            return outputText2;
        public void setOutputText2(HtmlOutputText hot) {
            this.outputText2 = hot;
        private UIColumn column2 = new UIColumn();
        public UIColumn getColumn2() {
            return column2;
        public void setColumn2(UIColumn uic) {
            this.column2 = uic;
        private HtmlOutputText outputText3 = new HtmlOutputText();
        public HtmlOutputText getOutputText3() {
            return outputText3;
        public void setOutputText3(HtmlOutputText hot) {
            this.outputText3 = hot;
        private HtmlOutputText outputText4 = new HtmlOutputText();
        public HtmlOutputText getOutputText4() {
            return outputText4;
        public void setOutputText4(HtmlOutputText hot) {
            this.outputText4 = hot;
        private UIColumn column3 = new UIColumn();
        public UIColumn getColumn3() {
            return column3;
        public void setColumn3(UIColumn uic) {
            this.column3 = uic;
        private HtmlOutputText outputText6 = new HtmlOutputText();
        public HtmlOutputText getOutputText6() {
            return outputText6;
        public void setOutputText6(HtmlOutputText hot) {
            this.outputText6 = hot;
        private HtmlOutputText outputMesg = new HtmlOutputText();
        public HtmlOutputText getOutputMesg() {
            return outputMesg;
        public void setOutputMesg(HtmlOutputText hot) {
            this.outputMesg = hot;
        private HtmlOutputText outputText8 = new HtmlOutputText();
        public HtmlOutputText getOutputText8() {
            return outputText8;
        public void setOutputText8(HtmlOutputText hot) {
            this.outputText8 = hot;
        private HtmlCommandButton button1 = new HtmlCommandButton();
         * Holds value of property tableData.
        private ArrayList tableData;
        public HtmlCommandButton getButton1() {
            return button1;
        public void setButton1(HtmlCommandButton hcb) {
            this.button1 = hcb;
        private HtmlSelectOneMenu dropdown1 = new HtmlSelectOneMenu();
        public HtmlSelectOneMenu getDropdown1() {
            return dropdown1;
        public void setDropdown1(HtmlSelectOneMenu hsom) {
            this.dropdown1 = hsom;
        private DefaultSelectItemsArray dropdown1DefaultItems = new DefaultSelectItemsArray();
        public DefaultSelectItemsArray getDropdown1DefaultItems() {
            return dropdown1DefaultItems;
        public void setDropdown1DefaultItems(DefaultSelectItemsArray dsia) {
            this.dropdown1DefaultItems = dsia;
        private UISelectItems dropdown1SelectItems = new UISelectItems();
        public UISelectItems getDropdown1SelectItems() {
            return dropdown1SelectItems;
        public void setDropdown1SelectItems(UISelectItems uisi) {
            this.dropdown1SelectItems = uisi;
        private IntegerConverter integerConverter1 = new IntegerConverter();
        public IntegerConverter getIntegerConverter1() {
            return integerConverter1;
        public void setIntegerConverter1(IntegerConverter ic) {
            this.integerConverter1 = ic;
        private HtmlMessage inlineMessage1 = new HtmlMessage();
        public HtmlMessage getInlineMessage1() {
            return inlineMessage1;
        public void setInlineMessage1(HtmlMessage hm) {
            this.inlineMessage1 = hm;
        private HtmlOutputText outputText5 = new HtmlOutputText();
        public HtmlOutputText getOutputText5() {
            return outputText5;
        public void setOutputText5(HtmlOutputText hot) {
            this.outputText5 = hot;
        // </editor-fold>
        public Page3() {
            // <editor-fold defaultstate="collapsed" desc="Creator-managed Component Initialization">
            try {
                dropdown1DefaultItems.setItems(new String[] {"1", "2", "3"});
            } catch (Exception e) {
                log("Page3 Initialization Failure", e);
                throw e instanceof javax.faces.FacesException ? (FacesException) e : new FacesException(e);
            // </editor-fold>
            // Additional user provided initialization code
            tableData = new ArrayList();
            tableData.add(new webapplication1.TableEntry("c1_1", "c2_1", 1));
            tableData.add(new webapplication1.TableEntry("c1_2", "c2_2", 2));
            tableData.add(new webapplication1.TableEntry("c1_3", "c2_3", 3));
            this.dataTable1Model.setWrappedData(tableData);
        protected webapplication1.ApplicationBean1 getApplicationBean1() {
            return (webapplication1.ApplicationBean1)getBean("ApplicationBean1");
        protected webapplication1.SessionBean1 getSessionBean1() {
            return (webapplication1.SessionBean1)getBean("SessionBean1");
         * Bean cleanup.
        protected void afterRenderResponse() {
         * Getter for property tableData.
         * @return Value of property tableData.
        public ArrayList getTableData() {
            return this.tableData;
         * Setter for property tableData.
         * @param tableData New value of property tableData.
        public void setTableData(ArrayList tableData) {
            this.tableData = tableData;
        public String button1_action() {
            // User event code here...
            this.outputMesg.setValue("Hello world!");
            return null;
    }//////////////////////////////////////////////////// TableEntry.java //////////////////////////////////////////////////////////////////
    * TableEntry.java
    * Created on September 3, 2004, 2:38 PM
    package webapplication1;
    * @author  hovh
    public class TableEntry  {
        String c1;
        String c2;
        int c3;
        String c3Str;
        public TableEntry(String c1, String c2, int c3){
            this.c1 = c1;
            this.c2 = c2;
            this.c3 = c3;
        public String getC1() {
            return c1;
        public void setC1(String c1) {
            this.c1 = c1;
        public int getC3() {
            return c3;
        public void setC3(int c3) {
            this.c3 = c3;
        public String getC2() {
            return c2;
        public void setC2(String c2) {
            this.c2 = c2;
        public java.lang.String getC3Str() {
         return "" + c3;
        public void setC3Str(java.lang.String c3Str) {
         this.c3Str = c3Str;
         try{
             c3 = Integer.parseInt(c3Str);
         }catch(Exception e){

  • Drop-down menu in Dreamweaver CS5.5 not displaying

    Thanks for anyone's help.  I'm a first time user of the forum so please excuse any protocol errors.
    I can't get my drop-down menu to display on my web page (http://www.cglcontracting.com/) on a Windows platform using Dreamweaver CS5.5.
    Thanks very much for any advice/help.

    Hi again -
    My previous suggestion did not seem to make any difference, the CSS still did not validate.
    I seems to be choking on your Browser Hack section.
    http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.cglcontracting.com%2FSpr yAssets%2FSpryMenuBarHorizontal.css&profile=css3&usermedium=all&warning=1&vextwarning=&lan g=en
    I re-wrote the bottom Browser Hack section and it now validates.
    I'll paste the whole CSS file here, Save it as "SpryMenuBarHorizontal.css" and give it a try.
    @charset "UTF-8";
    /* SpryMenuBarHorizontal.css - version 0.6 - Spry Pre-Release 1.6.1 */
    /* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */
    LAYOUT INFORMATION: describes box model, positioning, z-order
    /* The outermost container of the Menu Bar, an auto width box with no margin or padding */
    ul.MenuBarHorizontal
        margin: 0;
        padding: 0;
        list-style-type: none;
        font-size: 90%;
        cursor: default;
        width: auto;
        color: rgb(153,153,153);
        text-transform: uppercase;
        font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
        text-align: center;
        background-color: rgb(255,255,255);
        vertical-align: middle;
    /* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */
    ul.MenuBarActive
        color: rgb(153,153,153);
        z-index: 1000;
    /* Menu item containers, position children relative to this container and are a fixed width */
    ul.MenuBarHorizontal li
        margin: 0;
        padding: 0;
        list-style-type: none;
        font-size: 100%;
        position: relative;
        text-align: left;
        cursor: pointer;
        width: 8em;
        float: left;
        color: rgb(0,255,0);
        overflow: hidden;
        visibility: inherit;
    /* Submenus should appear below their parent (top: 0) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
    ul.MenuBarHorizontal ul
        padding: 0;
        list-style-type: none;
        font-size: 100%;
        z-index: 1020;
        cursor: default;
        width: 8.2em;
        color: rgb(204,204,204);
        top: 0px;
        overflow: auto;
        visibility: inherit;
        margin-top: -5%;
        margin-left: 95%;
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
        color: rgb(204,204,204);
        font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
        font-variant: small-caps;
        text-transform: uppercase;
        background-color: rgb(255,0,0);
        left: auto;
        width: auto;
        z-index: auto;
        visibility: inherit;
    /* Menu item containers are same fixed width as parent */
    ul.MenuBarHorizontal ul li
        text-align: left;
    /* Submenus should appear slightly overlapping to the right (95%) and up (-5%) */
    ul.MenuBarHorizontal ul ul
        background-color: rgb(204,204,204);
        margin-top: -5%;
        margin-right: 0;
        margin-bottom: 0;
        margin-left: 95%;
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible ul.MenuBarSubmenuVisible
        left: 100px;
        background-color: rgb(204,204,204);
    DESIGN INFORMATION: describes color scheme, borders, fonts
    /* Submenu containers have borders on all sides */
    ul.MenuBarHorizontal ul
        border: 0px none #CCC;
        margin-top: 0%;
        margin-right: 0%;
        margin-bottom: 0%;
        margin-left: 0%;
    /* Menu items are a light gray block with padding and no text decoration */
    ul.MenuBarHorizontal a
        display: block;
        cursor: pointer;
        background-color: #F00;
        color: #003;
        text-decoration: none;
        text-align: center;
        font-family: Arial, Helvetica, sans-serif;
        padding-top: 1.2ex;
        font-weight: bold;
        vertical-align: middle;
        padding-bottom: 0.53em;
    /* Menu items that have mouse over or focus have a blue background and white text */
    ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus
        background-color: #000;
        color: rgb(255,255,255);
        text-align: center;
    /* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
    ul.MenuBarHorizontal a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible
        background-color: #900;
        color: #066;
        text-align: center;
        vertical-align: middle;
    SUBMENU INDICATION: styles if there is a submenu under a given menu item
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal a.MenuBarItemSubmenu
        background-image: url(SpryMenuBarDown.gif);
        background-repeat: no-repeat;
        background-position: 98% 50%;
        background-color: rgb(255,0,0);
        color: rgb(0,0,51);
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenu
        background-image: url(SpryMenuBarRight.gif);
        background-repeat: no-repeat;
        background-position: 98% 50%;
        background-color: rgb(204,204,204);
        visibility: inherit;
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal a.MenuBarItemSubmenuHover
        background-image: url(SpryMenuBarDownHover.gif);
        background-repeat: no-repeat;
        background-position: 98% 50%;
        background-color: rgb(153,0,0);
        visibility: visible;
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenuHover
        background-image: url(SpryMenuBarRightHover.gif);
        background-repeat: no-repeat;
        background-position: 98% 50%;
        background-color: rgb(153,153,153);
    BROWSER HACKS: the hacks below should not be changed unless you are an expert
    /* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
    ul.MenuBarVertical iframe
        position: absolute;
        z-index: 1010;
    /* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
    @media screen, projection
        ul.MenuBarVertical li.MenuBarItemIE
            display: inline;
            f\loat: left;
            background: #FFF;

  • Error message: ni: A frame has been dropped and the acqusition has been canceled

    I use a NI PCIe 1433 framegrabber with a Basler spl4096-140km line camera.
    Using triggered acqusition with an external source, I can get a framerate of 68500Hz in NI-MAX.
    When I use the Matlab image acquisiton toolbox to acquire data, I however very often get the error message: 'ni: A frame has been dropped and the acqusition has been canceled". This happens even at much lower framerates (20kHz) and only seems to go away when acquiring data slowly.
    Computer is a Dell Precision 7600 and I assume there should be no issues with RAM or the PC being slow. The error does not go away when reducing the data size (i.e. reducing the ROI to one single point that is readout).
    Do you have any pointers why this error message appears and what can be done about it?
    Thank you!
    Reto

    Hello,
    I encountered the same problem and I think it is because the allowcation of storage in matlab cannot catch up with that of the camera so that it will drop frames when the buffer is full.
    I also want to know how to solve that.
    Yang

  • Contacts drop-down menu blocked by on screen keyboard in text messages

    Whenever I draft a new text message I put the cursor in the contact box and type the first letter of the name of the person I am trying to contact.  If I have more than 3 people in my phone whose names start with that letter, the drop down menu becomes partially obscured by the on screen keyboard.  If I attempt to scroll down on the menu, it selects whomever I happen to press.  My attempts to minimize the keyboard have been futile.  I understand I can work around this by going into contacts and selecting someone to text, but the problem is pretty aggravating.  Please help!

    Want to contract me? You can follow me on Twitter @RobGambino
    Be sure to click Like! for those who have helped you.
    Click Accept as Solution for posts that have solved your issue(s)!

  • Log Error Messages in the Text File using Flex

    Hi,
    I am using try/Catch block to catch exception and am trying to write these error messages in the text file.
    I do not know how to achive such funcionality.
    looking forward for your help in this regard. Please have a look on the code as pasted below:
    private function onItemRollOver(evt : ListEvent) : void
                    try
                             var s:String= evt.target.Participation;
                               var partRange:Number = evt.rowIndex;
                            if (partRange == 2)
                                    dgCohorts.setStyle( "rollOverColor", "red" );
                            if (partRange == 7)
                                dgCohorts.setStyle( "rollOverColor", "green" );
                            dgCohorts.validateNow();
                       catch(e:Error)
                                var callLaterErrorEvent:DynamicEvent = new DynamicEvent("callLaterError");                        
                                callLaterErrorEvent.error = e;
                                systemManager.dispatchEvent(callLaterErrorEvent);
    Thanks,
    Vivek Jain

    Hi,
    I am using try/Catch block to catch exception and am trying to write these error messages in the text file.
    I do not know how to achive such funcionality.
    looking forward for your help in this regard. Please have a look on the code as pasted below:
    private function onItemRollOver(evt : ListEvent) : void
                    try
                             var s:String= evt.target.Participation;
                               var partRange:Number = evt.rowIndex;
                            if (partRange == 2)
                                    dgCohorts.setStyle( "rollOverColor", "red" );
                            if (partRange == 7)
                                dgCohorts.setStyle( "rollOverColor", "green" );
                            dgCohorts.validateNow();
                       catch(e:Error)
                                var callLaterErrorEvent:DynamicEvent = new DynamicEvent("callLaterError");                        
                                callLaterErrorEvent.error = e;
                                systemManager.dispatchEvent(callLaterErrorEvent);
    Thanks,
    Vivek Jain

  • On Pages 09. Error Message "Missing Font" - text on all my files/Documents has disappeared. I know it is still there from the word count - but it is invisible. Any clues Gratefully received.

    On Pages 09. Error Message "Missing Font" - text on all my files/Documents has disappeared. I know it is still there from the word count - but it is invisible. Any clues Gratefully received.

    What version of Pages '09?
    Have you updated it to the latest iWork '09 v4.3?
    Peter

  • HT1918 Trying to make make account changes to my itunes account.  Receive error message regarding province "enter at most 3 letters" when the only option I have is to select from a drop down menu.  Cannot make changes to my account.  How do I get this fix

    As you can tell, this is my first post
    I am attempting to make changes to my itunes account, but when I hit done, an error message "enter at most 3 letters or numbers for province" appears.  I have not attempted to make any modificaitons to this field.  The only options I have for data in this field are picked from a drop down menu.  I have no idea why this msg is appearing.  Any ideas on why it is showing up?  Thanks.

    There seems to be at least one package that can't be located. See the message below from you log file
    Requesting locations synchronously for content SDC00003.2
    with priority Medium    ContentAccess    4/3/2015 1:30:51 PM    2644 (0x0A54)
    The number of discovered DPs(including Branch DP and Multicast) is 0    ContentAccess    4/3/2015 1:30:51 PM    2644 (0x0A54)
    My Blog: http://www.petervanderwoude.nl/
    Follow me on twitter: pvanderwoude

  • The Print function no longer seems to work in Firefox 6. When typing "Control P" or selecting Print from the file menu nothing happens. No error message, no drop down menu, nothing to select. Help!?

    I can't print, print preview, nothing. I have several printers associated with this computer, including an HP, and PDF creator - none of these appear in a drop down menu, there is no error message, yet these all function fine if I am not on the internet!

    No errors in error console. No effect using *. I tried using the dns name of my localhost both in the Firefox URL and in the javascript and I get exactly the same. I have spent a huge amount of time looking into this issue.
    One thing I noticed is that if I use the examples on the internet (http://arunranga.com/examples/access-control/preflightInvocation.html or http://saltybeagle.com/cors/) they work in the same browser. These examples however, are accessed through HTTP proxies.
    I am wondering if the issue has to do with using the same hostname just with different ports.

Maybe you are looking for

  • ME_PROCESS_PO_CUST Plant and Cost Center Validation Isuue

    Hi Friends,                   I have a requirement to validate ME21N PO creation with Account assignment 'K'. In our Business Process, we have 2 plants lets say 3000 and 5000. Plant 3000 is linked to Business Area say 4000 and Plant 5000 is linked to

  • Hard drive crash, errors 10031 & 10007. What do I do next I have no ideas?

    We had a hard drive crash yesterday that was unrecoverable.  I have installed a new hard drive and software (windows ME).  I also reinstalled the labview version 5.1.1 and ni daq 6.9.1.  I keep getting an error (10031) that the specified scxi chassis

  • SQL Package not getting created

    Hi, We are in process of migrating out application from wl5.1/solaris/jdk1.2.2 to wl6.1/solaris/jdk1.3. We are using SQL package due to performance reasons. The package definition was done in the weblogic.properties file for 5.1 and we tried to do th

  • When restoring iPod...error occurs

    I'm trying to reformat my iPod from Mac to PC, but something keeps popping up that says: iTunes could not contact the iPod software update server because you are not connected to the internet But I am connected...I'm typing on this forum aren't I?

  • ERROR Msg: MuseJSAsset: Error calling selector function:Error: A security problem occurred.

    ERROR Msg: MuseJSAsset: Error calling selector function:Error: A security problem occurred. Just launched site using 1 of my 5 CC web-hosting chips. Using Adobe's hosting: ns1, ns2 & ns3.worldsecuresystems.com Concerned that the "• Assign a domain na