Problem with editable combo box and creating dynamic table values using js

Hai
I have used jquery.jec.js to make my dropdown list as editable... I need to create dynamic table values on the onChange event of dropdown using javascript.
Now am facing the problem in it...
I am getting duplicate rows in the table... think(assumption) this jquery.jec.js is calling the dropdown again creating duplicate values...
Please help me out.... Any help is appreciable... Thanks in advance

Thanks elOpalo, for your valuable response....
I have found the correct way of doing.
Before i had my code like this,
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>test</title>
<script type="text/javascript" src="js/jquery-latest.js"></script>
<script type="text/javascript" src="js/jquery.jec.js"></script>
<script type="text/javascript">
$(function(){
$('#list').jec();
function giveAlert(){
     alert('hello');
</script>
</head>
<body>
<form>
Combo Box:
<select id="list" name="list" onChange="giveAlert();">
<option value="1">one</option>
<option value="2">two</option>
</select>
</form>
</body>
</html>
Now i have changed as the following,
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>test</title>
<script type="text/javascript" src="js/jquery-latest.js"></script>
<script type="text/javascript" src="js/jquery.jec.js"></script>
<script type="text/javascript">
$(function(){
$('select.combo').jec();
$('select.combo')
.change(function() {
alert($(this).val());
}).change();
</script>
</head>
<body>
<form>
<table>
<tr>
<td>Combo Box:</td>
<td><select class="combo"><option value="b">banana</option><option value="a">apple</option></select></td>
</tr>
</table>
</form>
</body>
</html>
The problem is with the function i have called on the onChange Event.. Now i have defined it inside the jquery function of dropdown to make it as editable...

Similar Messages

  • Problems in editable Combo Box

    Hello,
    I have an editable Combo Box and an action listener associated with the Combo Box. I also have a "Store" button that stores the edited item in the Combo Box and an action listener associated with the button too. After I have selected an item in the Combo Box and edited it, I press the "Store Button". Instead of going to the Store_button_action performed method, it goes to the ComboBox_action performed method and after running it, it stops. Which means it does not run the Store_button_action performed method at all.
    Another thing I have noticed is that when ever I select any item from this Combo Box it gets highlighted in blue, is there some way around this? I want the cursor to be blinking at the beginning/end of the selected Item.
    Thanks and regards,
    Ibha

    Hi,
    you can use a Textfield as editor component for a ComboBox:
    create a class implementing javax.swing.ComboBoxEditor with an attribute type Textfield. This TextField uses your PlainDocument.
    In getEditorComponent() you return the TextField.
    Hope this helps,
    Phil

  • Event problem in editable combo box

    I have three editable combo box in my JDialog. I can select the value from the combo or I can enter any value. I have to perform some operation when one button is pressed after I have given the values in the three combo boxes. Here, If I select any value from the combo box, there is no problem. But if I enter the value in the combo boxes, when I press the button, in the first click nothing is happening. The First click just selects the value that entered in the last combo box and in the second click it works properly. I am not facing this problem in JDK 1.2.2 or JDK1.3. This occurs only in JDK1.4. Please let me if anyone knows the reason for this.
    Thanks.

    in the fla that contains your loadMovie() statement:
    1. drag a combobox to the stage.
    2. remove it.
    3. the combobox component will now be in your library.
    re-publish your swf and retest.

  • Problem with "Edit in Photoshop" and Lightroom 2.1 failing to import new file

    I am a new user to Lightroom, so I won't be surprised if the problem is at the dull end of the keyboard...
    I am working with Lightroom 2.1 (still in my 30-day free trial), Photoshop CS3 with ACR 4.6, on Windows XP (fully updated). My image files are mostly .cr2 files (canon raw).
    When I "edit with photoshop" in Lightroom, it fires up Photoshop and brings the file up for edit as expected. Photoshop shows the file name as something like _MG_2326.CR2, as (I presume) expected. When I'm done editing in Photoshop, and I save the file, Lightroom brings up a message "The file could not be imported because it could not be read." and "It may be an incompatible format." on a second line.
    If I synchronize the folder in Lightroom it picks up the save file without issue (though its not automatically stacked with the original).
    I have tried messing around with the different options in the preferences "external editing" tab -- file format, color space and bit depth (I can't imagine resolution would matter). No joy there.
    I have also tried setting photoshop up as the additional external editor and if I do that it works correctly. However, in this case, it makes a copy of the file before opening photoshop which slows things down a little.
    Is this a problem that anybody else has seen before? Any solutions or work-arounds?
    Thanks,
    Doug

    I'm back trying to sort this problem out (got distracted for a couple of days by trying to get my monitor calibrated).
    Rearranging the folder structure didn't help. But I now have a better organized catalog, so that's ok :)
    What I did find is that if I import files into lightroom using the "file/import photos from device", then I can edit them normally afterwards (that is, when I save the file in photoshop cs3, the new file gets picked up correctly by lightroom and gets correctly stacked with the original). This is true even if the new files get added into the same directory structure that I'm having troubles with.
    So it looks like the directory structure is a red herring. It looks like the problem is in the catalog, with the way that lightroom originally imported my files. I created my original catalog by allowing lightroom to read my elements 6 catalog.
    It seems that I have this edit problem with all catalog entries that were imported from elements 6, but I don't have any problem with catalog entries that lightroom brings in directly (either through "import photos from device" or by adding a new folder to the lightroom catalog).
    So right now it looks like there is a problem with the elements catalog conversion.
    Is this a problem that anybody else has seen? Any suggestions for getting around it?
    Doug

  • Problems with a combo box in dynpro

    Hi guys, im creating a combo box in a dynpro, but is not showing anything.
    the code is the following:
    AT the screen painter..
    MODULE USER_COMMAND_0100.
       PROCESS ON VALUE-REQUEST.
      FIELD TI_COMBO MODULE create_dropdown_box.
    *then the module in the main program.....
    module create_dropdown_box input.
    TYPES: BEGIN OF type_carrid,
             op1(20),
             ID TYPE N,
           END OF type_carrid.
    DATA ti_combo TYPE STANDARD TABLE OF type_carrid WITH HEADER LINE.
    ti_combo-op1 = 'Not processed'.
    TI_COMBO-ID = 1.
    append ti_combo.
    ti_combo-op1 = 'Duplicated.
    append ti_combo.
    ti_combo-op1 = 'For Payroll'.
    append ti_combo.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
           EXPORTING
            RETFIELD = 'ID'
            DYNPPROG = SY-REPID
            DYNPNR = '100'
            DYNPROFIELD = 'TI_COMBO'
            VALUE_ORG = 'S'
           TABLES
                value_tab       = ti_combo
           EXCEPTIONS
                parameter_error = 1
                no_values_found = 2
                OTHERS          = 3.
      IF sy-subrc <> 0.
      ENDIF.
    endmodule.
    Edited by: javier  santana on May 7, 2008 5:47 PM

    Hi,
    Check the below code.
    TYPE-POOLS: VRM.
    DATA:V_NUM TYPE I.
    DATA:NAME TYPE VRM_ID,
         LIST TYPE VRM_VALUES,
         VALUE LIKE LINE OF LIST.
    DATA:I_WORKPATTERN LIKE ZWORKPAT OCCURS 0 WITH HEADER LINE.
    DATA:ZPATTXT(60).
    MODULE WORKPATTERN_LISTBOX OUTPUT.
    NAME = 'P9434-ZWORKPATTERN'.
        IF V_NUM IS INITIAL.
        CLEAR I_WORKPATTERN.
        REFRESH I_WORKPATTERN.
        SELECT *
               FROM ZWORKPAT
               INTO TABLE I_WORKPATTERN.
        IF NOT I_WORKPATTERN[] IS INITIAL.
          LOOP AT I_WORKPATTERN.
            VALUE-KEY = I_WORKPATTERN-ZWORKPATTERN.
            VALUE-TEXT = I_WORKPATTERN-ZWORKPATTERN.
            APPEND VALUE TO LIST.
          ENDLOOP.
        ENDIF.
        CALL FUNCTION 'VRM_SET_VALUES'
          EXPORTING
            ID                    = NAME
            VALUES                = LIST
         EXCEPTIONS
           ID_ILLEGAL_NAME       = 1
           OTHERS                = 2.
        IF SY-SUBRC <> 0.
          CLEAR SY-SUBRC.
        ENDIF.
        V_NUM = V_NUM + 1.
        ENDIF.

  • Problems with vertical cell borders and the default table style

    When laying out tables in Word, I like to use thin horizontal lines (cell borders) and thick-ish white vertical lines. The vertical white cell borders create a subtle negative space that is less cluttered than the typical boxed-in-all-sides style.
    Issue 1.
    In Pages, horizontal cell borders seem to take precedence over vertical cell borders so my vertical white line trick doesn't work. Is there a way to force my vertical white cell borders to "show up" over my think black horizontal cell borders?
    Issue 2.
    So, for the time being, I'm not using vertical white cell borders in tables; instead, I set the vertical cell borders to "none." Unfortunately, when I try to set the default table style using a table with no vertical cell borders, Pages adds the vertical cell borders anyway. Does anyone know a way to get Pages to surrender?
    Message was edited by: Steve in Seattle

    I must apologizes.
    It seems that I didn't understand well the problem.
    Issue 1.
    In Pages, horizontal cell borders seem to take precedence over vertical cell borders so my vertical white line trick doesn't work. Is there a way to force my vertical white cell borders to "show up" over my think black horizontal cell borders?
    NO
    Issue 2.
    So, for the time being, I'm not using vertical white cell borders in tables; instead, I set the vertical cell borders to "none." Unfortunately, when I try to set the default table style using a table with no vertical cell borders, Pages adds the vertical cell borders anyway. Does anyone know a way to get Pages to surrender?
    I checked and here, aftere defining a new default format with vertical lines set to none, this format is used when I cvreate a new table.
    But the same with horizontal lines doesn't apply.
    _Go to "Provide Pages Feedback" in the "Pages" menu_, describe what you wish.
    Then, cross your fingers, and wait _at least_ for iWork'10
    Yvan KOENIG (from FRANCE mardi 28 avril 2009 22:31:45)

  • Editable combo box

    I have copied the code for editable combo box. This includes "samples" package. Could anyone guide me where i can get the package in java.sun.com. I am new to java and trying to design a form with editable combo box. Obviously im getting the error "package samples.accessory does not exist". I have searched for accessory class but failed.
    Thanks in advance.

    Or, if the OP doesn't have access to your C drive, from here:I'm glad somebody knows what I'm talking about. :-)

  • Problem with combo boxes and the reset button in certain situations

    Hi Everyone,
    i have a problem to make the reset-button function properly in an what-if analysis dashboard.
    The dashboard uses two combo boxes that are not visible at the same time. In my application the second combo box only appears when a dedicated menu (label based menu button) has been activated.
    So i have combo box 1 when menu A is active an dand combo box 2 when menu 2 is active.
    After starting the dashboard initial values are fine. If you then directly change to menu 2 (seeing combo box 2 with
    the correct default value) and press the reset button, the dashboard returns to the initial view, showing
    the menu 1 with the correct default value. If you now switch back  to menu 2, you will see, that the combo box 2
    is empty (i.e. nothing selected).
    I also tracked the destination cells for the combo box value results as well as the source cells for the "selected item" and the
    destination cells for the "Insert Selected Item". All this values seem to be correct. Therefore i assume that
    this is an issue of event handling. Maybe the combo box 2 does not refresh its selected value because it is already
    invisible when the values are restored.
    This case can easily be simulated by placing two combo boxes and a push button (that changes the visibility of
    the combo boxes) and the reset button on the canvas.
    Maybe someone can help. I am able to provide a test xlf, if neccessary.
    Thanks,
    Oliver
    P.S. I am using Xcelsius SP4 (Version 5.4.0.0)

    Hello Debjit_Singha_86,
    thank you for your support. At the moment i have the following setting:
    label based menu
    - General: Insertion Type "value" from a list of ID's for the menu-items to a dedicated cell (current menu ID, say tab1!$A$1)
    - Behavior: Selected item (position) fixted to item 1
    hidden combo box
    - General: Insertion Type "position" to a dedicated cell with the current choice (say tab1!$B$1)
    - Behavior: Selected item (position) to the same cell (tab1!$B$1)
    Can you give me a hint on how to connect the two components according to your solution, so that the label based menu sets the default for the hidden combox box only in case, that the reset button is pressed?
    Thanks,
    Oliver

  • Problem with Edit IN function between LR 2.3 and PS CS3

    I recently upgraded my system to a Windows Vista 64 bit Core 2 Quad with 8 GB.  Lightroom now works and loads images the way it should. I do have one major concern and need any help possible.
    I am using LR 2.3 in 64 bit and PS CS3 ver 10.0.1 (which is 32 bit - loads slowly but otherwise works fine).  The problem I am encountering is in LR Develop / Photo / Edit In...  - using any of the menu items:
    "Edit in Abode Photoshop CS3"
    "Open as Smart Object In Photoshop"
    "Merge to Panorama in Photoshop"
    "Merge to HDR in Photoshop"
    "Open as layers in Photoshop"
    Photoshop opens but no image(s) are exported and I receive the message in LR - "The file could not be edited because Adobe Photoshop CS3 could not be launched."
    Photoshop, however, was launched but no image exported and so I can't work on the image in PS.  The appropriate TIFF image is created in LR for the first two menu items - nothing for the last three menu items.
    I can create a partial work around by setting PS as an external editor, however, I can't use 4 of 5 of the menu items.
    All the menu items work fine in Windows XPpro.
    Any help is much appreciated.
    PS I also tried the most recent Window 7 RC with exactly the same results.
    Thanks
    Bob

    Don
    I wasn't shouting - I just cut and paste the exact text and font in its original size and type as was shown in the message.  Never had a thought that someone would be offended by cutting and pasting exactly what was in a message - it would appear that John Williams saw it for what it was.
    However, sorry if I offended you.
    Bob
    Date: Mon, 1 Jun 2009 19:15:15 -0600
    From: [email protected]
    To: [email protected]
    Subject: Problem with Edit IN function between LR 2.3 and PS CS3
    There is no reason to shout. There are only other users here trying to help.
    >

  • Strange problem with SQLPLUS when client and server on the same box

    Hi,
    I have the problem with SQLPLUS when clinet and server on the same machine.
    With client and server on the same machine i am running the command
    sqlplus -l username/password@connect_identifier as SYSDBA.
    With this command, even if you pass in wrong username or wrong password or both as wrong you can able to connect to database and execute queries.
    Once Connect_identifier is correct and trying to log in as SYSDBA ,sqlplus will log in to DB with any username and password.
    How to get rid of this behaviour. Is there any way to do this.
    I am running this command by creating a process in C#
    Edited by: user11000236 on Jun 16, 2009 10:31 AM

    user11000236 wrote:
    Thanks for the info.
    How does Oracle/SQLPLUS allows any username or password to log in to DB with SYSDBA Privillages? What is the concept behind this.?
    This is explainted in the above mentioned link:
    Operating system authentication takes precedence over password file authentication. If you meet the requirements for operating system authentication, then even if you use a password file, you will be authenticated by operating system authentication.

  • HOWTO Get the text of "combo box" and "labe" controls with JavaAccessBridge

    HOWTO Get the text of "combo box" and "labe" controls with JavaAccessBridge.
    Please help,
    I'm trying to use the Java Access Bridge (JAB) 2.1 to get the text in Java Applet controls. I've been able to use the sample code in AccessInfo.cpp sample that comes with JAB to get text from "text" controls in a Java Applet. To clarify, I am referring to the "role" in the AccessibleContextInfo struct being set to "text" or "combo box" or "label".
    The problem is, when I use the AccessInfo.cpp sample to get text from a "combo box", the accessibleText data member comes back as FALSE, and thus any of the JAB text functions like GetAccessibleTextInfo fail to get any text information from "combo box" or "label" controls.
    I've also tried GetCurrentAccessibleValueFromContext on the "combo box" and "label" controls, but the text returned is empty.
    Can anyone help?

    I have new information in regards to this issue. A contact from Sun did get to me in email and relayed that that "label" objects store their text in the "name" data member of the AccessibleContext structure. This was a big help.
    But I'm still stuck trying to get information from "combo box" and other controls, like "push button". The contact said, the Java Access Bridge does not provide all the information because it is already implemented by other interfaces like AccessibleComponent, AccessibleAction, or AccessibleSelection. The contact did not allude to whether these opther interfaces can be used along side the Java Access Bridge or not. So, I'm left a step closer to the goal, but still stuck without the full solution.
    Can one take the Java Access Bridge functions, like say those used in the Ferret sample, and close the gap to get text back from "combo box", "push button", and other controls by using some other API in conjunction?

  • I have an older version of Adobe Digital Editions (around 3 years old) and was very happy with it.  Then I had problems with my Kobo Reader and asked a friend who works in IT to assist. She could not fix the Kobo but she messed up my Addobe. She downloade

    I have an older version of Adobe Digital Editions (around 3 years old) and was very happy with it.
    Then I had problems with my Kobo Reader and asked a friend who works in IT to assist. She could not fix the Kobo but she messed up my Addobe. She downloaded version three and I have an account and a password - was not able to transfer my books from my reader to version three (and I don't like the lay-out - I would prefer to stay with the old version as I also loose all my download date info..)
    But all the books I have bought over the last three years are in the old Adobe Digital and I cannot access them any more. When I use it I get the message "that the document is licensed to a different account. I can't even open the books on my computer.
    When I go to my Kobo library, I cannot also not open my books and get the message "this doc is protected by adobe digital rights management and is not currently authorized for use with your adobe. please sign in with your authorized adobe id and try again"
    I believe the problem is that I do not seem to have a digital id for my old adobe or that the Kobo is not in sync with it anymore.
    can you please help me - going on vacation in three days and cannot go without books.

    Please authorize ADE 3 with same credentials that you used with older version of ADE

  • HT204088 Dear sirs,  Could you please help me on my problem with my apple ID  I create new account with security questions, and when I try to purchase paid application,it ask me for answers the questions but it's not working,  My account have 50$ and stil

    Dear sirs,
    Could you please help me on my problem with my apple ID
    I create new account with security questions, and when I try to purchase paid application,it ask me for answers the questions but it's not working,
    My account have 50$ and still didn't buy anything

    You need to ask Apple to reset your security questions; ways of contacting them include clicking here and picking a method for your country, phoning AppleCare and asking for the Account Security team, and filling out and submitting this form.
    (100546)

  • Embedded Fonts a Combo Box and complete madness

    I have a combo box that has an array of fonts loaded into
    them, not here is my problem. For some reason, when i select the
    fonts in the array, some of them change and some of them dont. I
    have created font symbols like instructed in the live docs, but i
    dont get why they arent showing up..
    i.e. I have 7 fonts loaded into this combo box and i can
    select Arial Bold and my text field will show the text in arial
    bold, but when i select hobo, i get some substitute!
    here's my code, maybe you guys will see something i
    haven't.. the fonts in particular i am having trouble with: Bookman
    Old Style, BrushScript and Hobo.

    there are many points/issues here. here are some:
    1. Your array called fonts contains eight strings such as
    'new Arial()', whereas i think what you were trying to achieve here
    is to create references to the fonts in the library. to do this
    remove the quotation marks.
    2. To be able to create references to the fonts in the
    library, ensure that the font symbols in the library contain class
    names, with base classes of flash.text.Font. do this by selecting
    'Linkage' on your library fonts.
    3. Ensure that your text field is set to embed fonts - either
    in authoring, or with actionscript
    eg.outputTB1.embedFonts=true;
    4. you set up fonts_array with eight font names and then in
    your for loop, you again add eight fonts to this array. this is
    redundant.
    5. in the for loop you have the line: fonts_array.push(new
    String(fonts[ i]));
    this appears to be an attempt at converting a reference to a
    font into a font name. this isn't going to work. if you had set up
    references to fonts to begin with (see point 1), and this line
    wasn't redundant (see point 4), you would extract the font name
    like so: fonts_array.push(fonts[ i].fontName)
    6. maintaining two arrays of fonts is unecessary. i would
    recommend just maintain your fonts array with references to fonts,
    and extract font names from these references. this would look
    something like the code attached below.
    7. One last thing - i notice that you have at least two of
    your fonts - arial and arial bold, probably have different
    formatting. if some are bold and some are not, you will need to
    specify the bold property also. eg. font.bold=true

  • A data-binding issue with a combo box.

    Hi,
    Iu2019m having a data-binding issue with a combo box.  The field it is bound to is an integer.  The valid values in the combo box are 1, 2, and 3.  If I add a record when it is set to 1 or 2, the value gets stored correctly.  If I add a record when it is set to 3, it is stored as 1.  However, I can bring up the record just added on the form, change it to 3, and click u201CUpdateu201D and it is saved correctly as 3.  If I change it so that the valid values are 4, 5, and 6, it saves a 1 regardless of what is selected in the combo box.  It looks like the combo box is correctly bound for updates but not for adds.  The table is a master type UDO.  Any ideas?  Iu2019m somewhat committed to the field being an integer.  I'm using 2007A PL47.
    Thanks,
    Mike
    Edited by: Mike Angelastro on Jul 1, 2009 2:43 PM

    I tried a few things on my own.  The result is that I decided that it was not a good idea to use a combo box bound to an integer (numeric) field.  I donu2019t think the SDK can handle it.  The reason it was an integer field in the first place is that before I changed it to a combo box it was a group of two option buttons.  Option buttons use an integer (numeric) field.  This worked just fine until I added a third option; the SDK didnu2019t handle the third option correctly when adding records.  I thought that using a combo box instead would fix that.  I was wrong; the problem remained.  So I decided to use a character (alphanumeric) field instead.  This works just fine.
    So here is my advice:  Never use option buttons if they need to be bound to the database; a combo box will actually work better when bound to the database.  But use a character (alphanumeric) field.
    Edited by: Mike Angelastro on Jul 5, 2009 9:15 PM

Maybe you are looking for

  • Sales orders locked

    Hi to all, I am facing an strange issue as we use Scenario-A for sales order creation which are created in CRM then replicated to ECC for subsequent processing & now we get some strange issue of sales orders not able to open in ECC as we get the erro

  • "Goods receipt for purch. order" is not allowed (WBS D-GNP-051001-02-1-1)

    PO is already released. I used posting period that was in the config 10/2006 9/2006. Then when I tried to Post in MB01 I get this error. How to change the status of object 'WBS D-GNP-051001-02-1-1' to allow the transaction 'Goods receipt for purch. o

  • Unable to access E-Recruiting Start Pages Externally

    Hello, I’m hoping for some assistance with an E-Recruiting issue (standalone system; Version 3.0).  We are currently only able to access the start pages while inside of our network, and receive a “page cannot be displayed” message while outside of ou

  • FI Document Archiving

    We are in the process of archvinig FI Documents, (FI_DOCUMNT archiving object), Which standard T-codes or reports other than FB03, FBL5n, FBL3n, and  FBL1n will be effected? the Archive AS system takes care of the above t-codes , any other reports or

  • Parsing Eroor when opening chat support

    Hello all, I am trying to figure out what is wrong with a chat support link on a website that I frequent, but I am not an XML guru, and need some advise please.... When you click on the link, a window used to ope that prompted a chat session, but now