Valid select Spry of State does not

Hi all

This is my first post.  I searched for an answer but can't find anything that matched my problem.  I have a few spry validation boxes on my page, and all but one will not work correctly.  The one in question is spryselect1 ("spryEquipLoc").  For some reason any (which I can't understand) this field will display the selectRequiredState even after a selection has been made.  Thanks in advance for any help.  Here is the code (sorry, that I couldn't see how to format the code in the post):

< ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""

" < html xmlns =" http://www.w3.org/1999/xhtml ">

< head >

< script src = "SpryAssets/SpryValidationTextField.js" type = "text/javascript" > < / script > "

< script src = "SpryAssets/SpryValidationSelect.js" type = "text/javascript" > < / script > "

< script src = "SpryAssets/SpryValidationTextarea.js" type = "text/javascript" > < / script > "

< script src = "javascripts/Calendar.js" type = "text/javascript" > < / script > "

<!-< script src = "javascripts/datetimepicker_css.js" > < / script >->

< script type = "text/javascript" >

categories of var = [];

categories [list of "departures"] = ["Hardware problem", 'Issue of the newspaper', 'Operator error', 'Question media', 'Question of Satellite', 'Problem program', 'Problem of Playlist', "Issue Promo"]

categories ["equipment issue"] = ["Digibeta deck", "recorder XDCAM', 'Monitor', 'Chyron', 'Switch', 'Media port',"Downstream manipulator", 'Asset base PC',"Device server", 'Fast X PC game', 'Receiver Satellite', 'Video server', 'wall of Miranda", "Crispen automation", 'Vertigo X-Play'];

categories ['Log question'] = [' incompatibility of Log/list of reading ', 'Journal strobe', 'Journal calendar heavy ',' wrong time', "bad start time ',' events deleted"];

categories ['operator error'] = ['operator name1', 'Name2 operator', "Operator Name3"];

categories ["media question"] = ['Damaged care', 'Missing media', 'Dublist not received', 'Bad media file', 'Snipe Question', 'Question Bug', ' Audio ',' out of synchronized ", Audio or deformed cutting ',' Audio too low ',' Embedded credits of missing '];

categories ['question Satellite'] = [' Black we air ', 'Failure of Signal', 'Sun down', 'Subtitle', 'problem Audio","Transmitter partner"];

categories ['program question'] = ['Program the light ',' heavy ',' Incorrect program', 'Incorrect material ID', 'Replaced Programme', "Incorrect segment lengths", "Embedded crédits"];

categories ["Playlist issue"] is ["light Playlist', 'Heavy Playlist', 'Playlist loaded Incorrect', 'bad reading source'];.

categories ['Promo question'] = ['Invalid hardware ID', 'Wrong time', 'Snipe Incorrect', 'period of Incorrect snipe', "Promo replaced"];

var nLists = 2; the number of overall selection lists

function fillSelect (currCat, currList) {}

var step = Number(currList.name.replace(/\D/g,"")); "

for (i = step; i < nLists + 1; i ++) {}

document. Forms ['frmOnAirActivity'] ['List' + i]. Length = 1;

document. Forms ['frmOnAirActivity'] ['List' + i]. SelectedIndex = 0;

}

nCat var = categories [currCat];

for (each in developpement) {}

var nOption = document.createElement ('option');

nData var = document.createTextNode (nCat [each]);

nOption.setAttribute ('value', nCat [each]);

nOption.appendChild (nData);

currList.appendChild (nOption);

}

}

function init() {}

fillSelect ('startList', ['frmOnAirActivity'] ['List1'] return)

}

navigator.appName is 'Microsoft Internet Explorer'? attachEvent ("onload", init, false): addEventListener ("load", init, false);

< /script >

< meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 "/ >"

< title > on Air activity form < /title >

< style type = "text/css" >

body, td, th {}

do-family: "Lucida Sans Unicode", "Lucida Grande", without serif.

do-size: 14px;

color: #052F47;

}

{body

background-color: #8E8E8E;

background-image: url();

background-repeat: no-repeat;

}

{#form}

behavior: url (PIE.htc);

do-family: Verdana, Geneva, without serif.

background-repeat: repeat;

do-size: 14px;

padding: 10px;

Width: 660px;

border-radius: 0px 20px 0px 20px;

box-shadow: #666 10px 10px 10px;

border-top-style: none;

border-right-style: outset;

border-bottom-style: outset;

border-left-style: none;

background-color: #589DC6;

float: right;

}

{#wrapper}

margin: auto;

Width: 860px;

}

< / style >

< link href = "SpryAssets/SpryValidationTextField.css" rel = "stylesheet" type = "text/css" / > "

< link href = "SpryAssets/SpryValidationSelect.css" rel = "stylesheet" type = "text/css" / > "

< link href = "SpryAssets/SpryValidationTextarea.css" rel = "stylesheet" type = "text/css" / > "

< link href = "css/Calendar.css" rel = "stylesheet" type = "text/css" / > "

< / head >

< body >

< script type = "text/javascript" >

show and hide sections of a form

function preparePage() {}

document.getElementById("List1").onclick = function() {}

If (document.getElementById("List1").value == 'Question equipment') {}

use the CSS style to show

document.getElementById("Equipment").style.display = 'block ';

document.getElementById("Satellites").style.display = 'none ';

} Else if (document.getElementById("List1").value == 'Satellite question') {}

use the CSS style to show

document.getElementById("Satellites").style.display = 'block ';

document.getElementById("Equipment").style.display = 'none ';

} else {}

hide the div

document.getElementById("Equipment").style.display = 'none ';

document.getElementById("Satellites").style.display = 'none ';

}

};

now he hide on the initial page load.

document.getElementById("Equipment").style.display = 'none ';

document.getElementById("Satellites").style.display = 'none ';

}

Window.OnLoad = function() {}

preparePage();

};

< /script >

< div id = "wrapper" > < img src = "Graphics/banner.png" alt = "Banner" width = "860" height = "84" / > "

< div id = "form" >

< form id = "frmOnAirActivity" name = "frmOnAirActivity" method = "post" action = "" >

< span id = "spryAirdate" >

< label for 'Broadcast' = > release < / label > < br / >

< input type = "Text" id = "Dissemination" tabindex = "1" / >

"< img src =" graphics/cal.gif"onclick =" javascript:showCalendar('Airdate') "style =" cursor: point "/ >

< span class = "textfieldRequiredMsg" > a value is required. </span > < span class = "textfieldInvalidFormatMsg" > Invalid format. </span > < / span > < / p >

< p >

< span id = "spryDiscrepType" >

< label for = "List1" > event category < / label > < br / >

< select name = "List1" id = "List1" tabindex = "2" onchange = "fillSelect (this.value, this.form ['List2'])" >

< option > < / option >

< / select >

< span class = "selectRequiredMsg" > please select an item. </span > < / span >

< /p >

< span id = "spryDiscrepSubType" >

< label for = "List2" > detail < / label > < br / >

< select name = "List2" id = "List2" tabindex = "3" onchange = "fillSelect (this.value, this.form ['List3'])" >

< option > < / option >

< / select >

< span class = "selectRequiredMsg" > please select an item. </span > < / span >

< p >

< div id = "Equipment" >

< span id = "spryEquipLoc" >

< label for = "EquipLoc" > rental equipment < / label > < br / >

< select name = "EquipLoc" id = "EquipLoc" tabindex = "4" >

< option > < / option >

Master Control < option > < / option >

Media Services < option > < / option >

< option > central strip < / option >

< / select >

< span class = "selectRequiredMsg" > please select an item. </span > < / span >

< p >

< span id = "spryEquipID" >

Hardware ID < label for = "EquipID" > < / label > < br / >

< input type = "text" name = "EquipID" id = "EquipID" tabindex = "5" / >

< span class = "textfieldRequiredMsg" > a value is required. </span > < / span >

< / div >

< p >

< div id = "Satellites" >

Satellites of affected < fieldset > < legend >: < / legend >

< table width '424' = >

< b >

< td width = "152" > < label >

< input type = "checkbox" name = "Satellites_" value = "checkbox" id = "Satellites_12" / >

NET Sat1 < / label > < table >

< td width = "119" > < label >

< input type = "checkbox" name = "Satellites_" value = "checkbox" id = "Satellites_16" / >

NET Sat2 < / label > < table >

< td width = "137" > < label >

< input type = "checkbox" name = "Satellites_" value = "checkbox" id = "Satellites_20" / >

NET Sat3 < / label > < table >

< /tr >

< b >

< td > < label >

< input type = "checkbox" name = "Satellites_" value = "checkbox" id = "Satellites_13" / >

NET Sat4 < / label > < table >

< td > < label >

< input type = "checkbox" name = "Satellites_" value = "checkbox" id = "Satellites_17" / >

NET Sat5 < / label > < table >

< td > < label >

< input type = "checkbox" name = "Satellites_" value = "checkbox" id = "Satellites_21" / >

NET Sat6 < / label > < table >

< /tr >

< b >

< td > < label >

< input type = "checkbox" name = "Satellites_" value = "checkbox" id = "Satellites_14" / >

NET Sat7 < / label > < table >

< td > < label >

< input type = "checkbox" name = "Satellites_" value = "checkbox" id = "Satellites_18" / >

NET Sat8 < / label > < table >

< td > < label >

< input type = "checkbox" name = "Satellites_" value = "checkbox" id = "Satellites_22" / >

NET Sat9 < / label > < table >

< /tr >

< b >

< td > < label >

< input type = "checkbox" name = "Satellites_" value = "checkbox" id = "Satellites_15" / >

NET Sat10 < / label > < table >

< td > < label >

< input type = "checkbox" name = "Satellites_" value = "checkbox" id = "Satellites_19" / >

NET Sat11 < / label > < table >

< td > < label >

< input type = "checkbox" name = "Satellites_" value = "checkbox" id = "Satellites_23" / >

NET Sat12 < / label > < table >

< /tr >

< /table >

< / fieldset >

< / div >

< fieldset >

the legend <>network: < / legend >

< table width '424' = >

< b >

< td width = "152" >

< label >

< input type = "checkbox" name = "Network_1" value = "checkbox" id = "Network_1" / >

Networl_1 < / label >

< table >

< td width = "119" >

< label >

< input type = "checkbox" name = "Network_2" value = "checkbox" id = "Network_2" / >

Network_2 < / label >

< table >

< td width = "137" >

< label >

< input type = "checkbox" name = "Network_3" value = "checkbox" id = "Network_3" / >

Network_3 < / label >

< table >

< /tr >

< /table >

< / fieldset >

< p >

< label for = "OnAirVariance" > on Air Variance < / label >

< input name = "OnAirVariance" type = "checkbox" value = "" / > "

< p >

< span id = "spryDescription" >

< label for = "Description" > Description < / label > < br / >

< name textarea = 'Description' id = cols "Description" = "45" lines = "5" tabindex = "6" > < / textarea >

< span class = "textareaRequiredMsg" > a value is required. </span > < / span >

< p >

< span id = "spryResolution" >

< label for 'Résolution' = > actions < / label > < br / >

< name textarea = 'Resolution' id = cols 'Resolution' = "45" lines = "5" tabindex = "7" > < / textarea >

< span class = "textareaRequiredMsg" > a value is required. </span > < / span > < / p >

< / make >

< / div >

< / div >

< script type = "text/javascript" >

var sprytextfield1 = new Spry.Widget.ValidationTextField ("spryAirdate", "date", {validateOn: ["blur"], useCharacterMasking:true, format: "mm/dd/yyyy"});

var sprytextfield2 = new Spry.Widget.ValidationTextField ("spryEquipID", "none", {validateOn:["blur"]});})

var spryselect1 = new Spry.Widget.ValidationSelect ("spryEquipLoc", {validateOn:["blur"]});})

var spryselect2 = new Spry.Widget.ValidationSelect ("spryDiscrepType", {validateOn:["blur"]});})

var spryselect3 = new Spry.Widget.ValidationSelect ("spryDiscrepSubType", {validateOn:["blur"]});})

var sprytextarea1 = new Spry.Widget.ValidationTextarea ("spryDescription", {validateOn:["blur"]});})

var sprytextarea2 = new Spry.Widget.ValidationTextarea ("spryResolution", {validateOn:["blur"]});})

< /script >

< / body >

< / html >

Corrected it by specifying the number of points for each option in my select as follows:


Please select an item.

Found the info here:

http://labs.Adobe.com/technologies/Spry/articles/select_overview/index.html

Tags: Dreamweaver

Similar Questions

  • validation to check him point does not contain any special characters except ' - '.

    Hi all

    I have a question and the need to create a validation so that the item does not contain special characters (or numbers or spaces) other than salvation fen. That is to say, the element must contain only alphabets or ' - '. Tried to use the Is_Alpha function, but do not know how to handle this exception to the use of '-' in validation. So please, can someone suggest me a solution.

    Thank you
    Vignesh

    Vignesh,

    You can create Validation based on return Boolean and returns a False when the element has charecters other than 'A - Z' (charecters upper and lower) and - (hifen).

    if trim(translate(upper(:P1_ENAME), 'ABCDEFGHIJKLMNOPQRSTUVWXYZ-'
                                                      '                                                  ') is null then
       return false;    -- replacing all the alphabets and hifen with spaces... trim will leave an empty string(which is null)
    else
       return false;
    end if;
    

    Based on the following sql instructions...

    sql> select nvl(trim(translate(upper('ASDFG---'), 'ABCDEFGHIJKLMNOPQRSTUVWXYZ-',
      2                               '                           ')),'Null Value')
      3     from dual;
    
    NVL(TRIM(T
    ----------
    Null Value
    
    sql> ed
    Wrote file afiedt.buf
    
      1  select nvl(trim(translate(upper('9999Asf---'), 'ABCDEFGHIJKLMNOPQRSTUVWXYZ-',
      2                               '                           ')),'Null Value')
      3*    from dual
    sql> /
    
    NVL(
    ----
    9999
    
  • Delete statement does not work properly

    Hello

    The following delete statement does not work correctly.
    If I press DELETE will delete everything in the table of categories
    I don't know whats wrong with it.
    -Delete category line if there is not the infrastructure to support-
    IF: P12_DFCY_SEQNO4 IS NOT NULL AND: P12_DFCY_CATG_C = "7" THEN
    REMOVE FROM DFCY_CATG
    IF NOT EXISTS (SELECT I.DFCY_SEQNO
    OF DFCY_CATG C, DFCY_CATG_INFRSTRCTR I
    WHERE C.DFCY_SEQNO = I.DFCY_SEQNO
    AND: P12_DFCY_SEQNO4 = I.DFCY_SEQNO);
    end if;

    Thank you
    Mary

    You probably the where more clause:

    DELETE FROM DFCY_CATG
    WHERE C.DFCY_SEQNO = :P12_DFCY_SEQNO4
    AND NOT EXISTS(SELECT I.DFCY_SEQNO
    FROM DFCY_CATG C, DFCY_CATG_INFRSTRCTR I
    WHERE C.DFCY_SEQNO = I.DFCY_SEQNO
    AND :P12_DFCY_SEQNO4 = I.DFCY_SEQNO);
    

    Not sure if this is the exact name of your column in the table, but that limit the scope of deleting just a record that you control.

    Hope it will be useful,

    Aaron

  • Selection of default application does not not on z3c

    Hi my selection of default app does not work I upgraded my phone to 4.4 and still does not. I always use the bottom and it does not work. He always ask me the question pop out of what program I want to use.

    Have you tried settings-applications-all, reset app preferences? And after that, try again to select.

  • I installed creative cloud and select filters and versions, does not come out earlier versions. I have to configure?

    I installed creative cloud and select filters and versions, does not come out earlier versions. I have to configure?

    just after the point 1/2 towards the bottom of the page is a portal showing how to install previous versions, https://helpx.adobe.com/creative-cloud/help/download-install-app.html

  • Active state does not properly in Chrome

    Hello

    I recently exported the site I created in HTML and everything seems to work well. The only problem I encounter is that active State does not work in Chrome. When I scroll to the bottom of the page, the color of the active state is not reflected. This does not work in IE, Safari and Firefox. Really need this to be resolved soon. Help, please!

    Thank you!

    Ryan

    Hi whyax84 and Zak.

    Download Yes it indeed solved the problem for chrome. Thank you very much!

    Kelvin

  • ORA-13780: SQL statement does not exist

    Hello
    on the 11g R2, I get the following message:
    SQL> variable stmt_task VARCHAR2(64);
    SQL> EXEC :stmt_task := DBMS_SQLTUNE.CREATE_TUNING_TASK(sql_id => 'gh9p77g1fr0kd');
    BEGIN :stmt_task := DBMS_SQLTUNE.CREATE_TUNING_TASK(sql_id => 'gh9p77g1fr0kd'); END;
    
    *
    ERROR at line 1:
    ORA-13780: SQL statement does not exist.
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 79
    ORA-06512: at "SYS.PRVT_SQLADV_INFRA", line 125
    ORA-06512: at "SYS.DBMS_SQLTUNE", line 655
    ORA-06512: at line 1
    Any idea?

    Thank you.

    Sql and the sql_id execution plan has been emptied out of the shared pool, so oracle could not find it.

    -Thank you

  • Rollover State does not not on active state

    Hi, I have a problem with the menu States. The rollover State does not work when a menu item is in its active state. This is supposed to happen or is there a solution to this?

    Thank you.

    Hello

    This works as expected. Active state removes change it to any other State on the interaction of the mouse and other States work only on the links that are currently in Normal condition.

    See also: https://forums.adobe.com/thread/1136562

    See you soon,.

    Vikas

  • Menu rollover State does not have the button active parent

    My menu rollover State does not work the button parent in my menu while I'm on a page of the child. I didn't have any currently active States in the menu. How can I get the parent menu to respect the rollover State even while I'm on one of the child pages?

    Please check this thread:

    https://forums.Adobe.com/message/6148234#6148234

    Thank you

    Sanjit

  • My CS3 spry horizontal menu does not work in Everybody, my swap image behavior does not dry. If anyone can help. Thank you.

    My CS3 spry horizontal menu does not work in Everybody, my swap image behavior does not dry. Can anyone help? Thank you.

    To the place where I put before (and burst out of the container foot...), put it below:



    Beth

  • With multi-page session state does not save

    Hello

    I built an online form using apex that has 4 pages. The first 3 pages save in a session state on the last page running a process that inserts the data of 4 pages in the table. The first 3 pages are set to present an update of SQL.

    The issue I'm having is that when I want to go back to a page within the session using the previous buttons, I created, the values of the previous page is no longer present in the fields (all fields are now empty). I got to the origin of the previous button to submit and then redirect to the previous page when clicking on the value. Then I tried just to set the button to redirect to the previous page without presenting and then it does not still work. Anyone know what could be causing this? Your help is very appreciated.

    Thank you
    MICAH

    Hi Mika,

    Have you checked the source of the page elements in your form to make sure that they are not using "Always replace any value stored in session state". If this field is selected in the menu drop-down, then they will be wiped off.

    Thank you

    Paul

  • Spry Accordion Panel does not...

    Can someone please look at this site and see what I'm doing wrong?

    My accordion does not work on the page of 'heaven', but does not work on the page 'a way'. ???

    This link is the problem page.

    This linkwith the accordion even (on the same site) works great!

    I don't know if it's a problem of location of file or what.

    My SpryAssets folder is located in the root folder.

    BTW, it works fine on my local machine, but not when I download it.

    At a loss.
    Thank you!

    MG

    Also posted on the spry forum (with no responses).

    Ok.  I'll have a go.

    Have you thought to compare the top part of the code in the two pages.  that is, the

    Take a look at this piece in particular.




    You have your site management implemented?

    In addition, check your page in the validator shows a few stray closing tags.

    good page and one in the wrong page.  I don't know, but a matching failure
    tag could cause difficulties.

    Martin

  • INSERT INTO statement does not

    I'm trying to insert values from one table into another table using forms. I create the destination table during execution that works very well. But the insert statement doesnot work. It does not error, but no rows are inserted in the destination table, although there are data in the source table. Calling a stored procedure to this effect.

    I wrote the following code in the event When button pressed

    DECLARE
    T_DATE VARCHAR2 (20);
    v_table VARCHAR2 (20);

    BEGIN

    T_DATE: = TO_CHAR (SYSDATE, 'DD') | TO_CHAR (SYSDATE, 'LUN') | TO_CHAR (SYSDATE, 'YYYY');
    v_table: = 't' | T_DATE;         -It's a destination table name, the table is separately created with the same name

    BACKUP_PRODUCTS (v_table);        -Stored procedure

    END;


    According to the code of procedure stored

    PROCEDURE backup_products (p_table VARCHAR2) IS

    BEGIN
    RUN IMMEDIATELY "INSERT" | p_table | "(SELECT product_id, name, price FROM products);
    END;


    I already checked that the stored procedure is executed using some arbitrary return values using VARIABLE. Its just that the insert will not work.

    If I run this procedure from the SQL prompt, the procedure works very well.


    Prior to that, I also tried to use the exec_sql procedures, but the insert statement was not insert data.

    Can someone pls help me identify the problem?

    Engage?

    Concerning
    Peter

  • Select all (CTRL + A) does not select messages

    Thunderbird 31.3.0
    Windows 7 Pro 64 - bit, English
    Swedish locale

    By pressing the shortcut CTRL + A or by using the menu option "Edition > select > all ' only selects all messages.

    A custom button 'select all' created to https://codefisher.org/toolbar_button/toolbar_button_maker end works as a workaround.

    Anyone encountered this problem and knows a solution?

    Best regards
    Johan

    After working with someone who had found that the search function was located to ctrl + T instead of ctrl + F, I would suggest that you install also the keyconfig extension so you can see what strikes it's supposed to be to aid. Maybe some overzealous location it has mapped to another key?

    http://KB.mozillazine.org/Keyconfig_extension

    However, I do not think that this would explain the menu editing > select > all the does not.

    It works better or differently in Safe Mode?

    https://support.Mozilla.org/en-us/KB/safe-mode

  • Validity (WBF) sensors (PID = 0018) does not not on windows 8

    Hello

    I have a problem with the validity sensor (WBF) (PID = 0018)

    After I between windows 7 to windows validity sensor 8 does not work on dv6 3300 ev

    I get the message

    This device cannot start. (Code 10)

    The process hosting the driver for this device was completed.

    any ideas?

    Thank you

    Hello:

    See if the W8 driver and the software works...

    Driver:

    http://h10025.www1.HP.com/ewfrf/wc/softwareDownloadIndex?softwareitem=ob-109892-1&cc=us&DLC=en&LC=en&OS=4132&product=5273735&sw_lang=

    Software for register of fingerprints:

    http://h10025.www1.HP.com/ewfrf/wc/softwareDownloadIndex?softwareitem=ob-117897-1&cc=us&DLC=en&LC=en&OS=4132&product=5273735&sw_lang=

Maybe you are looking for

  • Remove synced photos ipad

    I resynced my ipad removing the old photo files.  I chose a new folder and agreed to delete, but they are still there.  What have I done wrong?

  • Skype does not open on windows 10

    My Skype will not open the windows of 10, since I've updated. It comes up with a message saying: "this action is only valid for products that are currently installed." What is c? now, whenever I restart my computer I need to re - download Skype and i

  • Satellite L750D - cannot register the warranty due to country code

    Not sure if this is an appropriate question, BUT...I am trying to record my mobile L750D for warranty and it doesn't accept my country code. I live in Australia and the country code is 61. I live in South Australia - code 8 and my phone number is 83x

  • Envy 15 freeze on the transfer of data USB 3.0 drive when copying many files

    Thanks in advance. My brand new envy 15 (model LW897AV) (15 t-3000 CTO) crashes every time that I try to transfer a lot of files from a Flash DRIVE via the USB ports on the laptop. It gets about 5 minutes, then simply hangs. He had done this 7 times

  • Intermittent problems with HP Pavilion m9070.uk Boot

    I'm trying to fix the computer of my OH but not anywhere get quickly. Its a HP Pavilion m9070.uk purchased in January 2008 32 bit on Vista Home Premium hard drive 500 GB Until a few days ago, this PC worked fine without any problems, but now, it's an