Can a script manually insert a delete (or backspace) into a text area?

I'm new to action script, so this may have a simple answer, sorry if that's the case.
I have a little movie created with a simple purpose of trying to mimic a system like cell phones have for character input.
There are two text areas, one hidden off the screen that accepts the input from the user; a second text area in on screen and displays what the user had entered after some basic processing on the input.
The hidden text area is pretty basic with listener that is responsible for grabbing the input keys and then mangling them to be inserted into the displayed text area based on the cell phone text entry multi-tap rules. Example user press 2-2-2  and the hidden input accepts 222 and then appends 'C' to the display text area. That's working great, but I have a problem if the user wants to delete from the display text area. I can't find a way to insert a delete or backspace key into the display text area. I've tried using StringFromCharCode (8) // Key.BACKSPACE, but that doesn't work. That just displays one of those undefined glyphs. I figure that things like clear, and delete are handled somewhere higher in the input chain and that's where I'm having a problem.
I've looked, but I can't find a way to delete a single character from the text area. I was thinking if I could find the cursor location that I could just use some delete character method to get the job done, but I couldn't find how to do that.
Any ideas on how to pull off manual delete function in a text area?

Ned, I do really want to manually (by method of code) trigger a delete in a text area. The delete (or backspace) that I want added to the text area isn't directly entered by the user, it's the result of several key presses by the user. That's why I called it "manual" because it's done by the code, not by the user's direct input.
Think about how text entry works on most phones... if you want to enter a letter you have to cycle through all the letters on a single key until you get to the character desired. As I stated before, if you want a 'c' you need to press 2 button 3 times. This is basically what I'm trying to do, but I want to add the ability to delete a character too if the correct sequence in entered, for example a sequence of ### would equal a backspace.
Rothrock, I think you were thinking the same thing that a single key is used to do a backspace.
I was thinking that I could possibly insert key event into the event queue for the text area to process, but I wasn't sure about that.
Sorry, if this is confusing, I know it's not a straight forward design. I need onscreen and offscreen text areas with the onscreen one acting as a slave of the offscreen one.
The way the code currently works is hidden text area had a listner that responds to changes, and that handler processes the key entered and deletes that character from the hidden text area. After the full sequence of characters (say 2 button has been pressed 3 times) the handler then sends the resulting character into the display text area. This part of the code works great. I can add any character including some specials like tab and newline. However if I want the text area to delete a character I don't have a way to do that. That's why I tried to insert the backspace key (0x08 or ^H, for other oldschoolers), but using that as a char code or string from char code doesn't work.
I had also tried to create to set the focus to the display text area then create and dispatch a backspace keydown and keyup events to the visible text area and then return the focus back to the hidden textarea, but... no luck.

Similar Messages

  • Are there any events to script a component when dragged and dropped into the parsys area?

    are there any events to script a component when dragged and dropped into the parsys area?

    The cq:listeners node of a component's cq:EditConfig has a number of events that fire with relation to the edit mode drag'n'drop stuff. You would probably want to hook one or more of the insert ones (beforeinsert, beforechildinsert, afterinsert, afterchildinsert).

  • How i can fetch the template greater than 32000 k size into reach text editor

    how i can fetch the template greater than 32000 k size into reach text editor

    Would this help you?
    - Dynamic Action Plugin - Enkitec CLOB Load

  • Where can I get a complete English thesaurus for loading into Oracle Text

    Oracle provides only a sample thesaurus. Does anyone know of a website where I can download a complete English thesaurus.

    If you search the internet you may find a few such as the Moby Thesaurus:
    http://icon.shef.ac.uk/Moby/mthes.html
    You may have to modify the formats of some such thesauri to use them.

  • Cant delete all from a bound text area--why??

    Hi All,
    Here's my problem. I'm using jdev10.1.2, jsp's and adf bc's.
    i have several text areas on my jsp that correspond to clob attributes on a VO. If the user edits this page by removing the entire contents of one of these text areas and submits the form, when the browse page is reloaded (which is a copy of this page except it has the commit button on it and its not editable), the text that was just removed is defaulted back in. i have noticed that if i leave a space when i remove the contents, it works perfectly fine.
    i have tried defaulting spaces in on the entity and this does not work. Any ideas would be most welcome.
    Thanks in advance,
    Newbe

    Hi,
    hard to tell from what you describe. This could be a bug or an implementation error. I suggest to file a service request with support
    Frank

  • CS4 / Win: How can I observe a table (insert and delete)

    Hi
    How can i observe the insertion oder deletion of a table in my Indesign document?
    I have implemented a doc change observer. But I don't know if it is possible to observe the tables in this observer or how I can do that.
    Any help? Thanks.
    Hans

    after i have done some changes now it inserts into the table but returning the data twice, not sure why.
    <!--  <cfdump var="#reports#">   -->
    <cfloop query=reports>
    <cfquery name="second" datasource="Intranet">
    insert into intranet.dbo.CSE_Monthly_Reports (starburst_winner)
    values ('#emp_namefirst#')
    </cfquery>
    </cfloop>
    this is a test im doing to make sure it works

  • Bash script to insert item in a alphabetical list

    I would like to use a bash script to insert a new "source" file into a list of sources which occurs within another file.
    The file in question is quite long and contains many other things. However the list of sources abides by the format below.
    [snip]
    SOURCES = \
    _add_datasource_.m \
    _add_line_series_.m \
    ylabel.m \
    ylim.m \
    zlabel.m \
    zlim.m
    [snip]
    How might I insert a new source file in alphabetical order. I'm assuming there is a fairly simple script to do such.
    TiA

    #!/usr/bin/env bash
    if [[ $# != 1 ]]; then
    echo 1>&2 "Usage: ${0##*/} fileto_insert_inSOURCE"
    exit 1
    fi
    MAKEFILE=Makefile.in
    TMP=/tmp/tmp.$$
    awk -v new="$1" '
    /^SOURCES =/ { in_src = 1 }
    in_src && ! done && $1 > new {
    # New file goes here
    printf(" %s \
    ", new)
    in_src = 0
    done = 1
    in_src && ! done && ! /\$/ {
    # New file must go after the last entry.
    # Put  on old last entry.
    printf("%s \
    ", $0)
    # replace current $0 with the new file.
    $0 = sprintf(" %s
    ", new)
    done = 1
    ! /\$/ { in_src = 0 } # NOT in SOURCE
    { print } # print current line
    ' $MAKEFILE >$TMP
    mv $TMP $MAKEFILE

  • HT201302 How do I delet pictures off my phone that are not in my camera roll

    I can't figure out how to delete photos from my phone  that are not part of my camera roll. Someone please help!! I also lost all my contacts:( has this happened to anyone else?

    SYNCING with iTunes
    See here  >  http://support.apple.com/kb/HT1386
    From Here  >  http://www.apple.com/support/iphone/syncing/
    Connect to iTunes on the computer you usually Sync with and Re-Sync your Contacts...
    See here for  To delete photos from your device
    In iTunes, select the device icon in the Devices list on the left. Click the Photos tab in the resulting window.
    Choose "Sync photos from."
    On a Mac, choose iPhoto or Aperture from the pop-up menu.
    On a Windows PC, choose Photoshop Album or Photoshop Elements from the pop-up menu.
    Choose "Selected albums" and deselect the albums or collections you want to delete.
    Click Apply.

  • How can I compare data to a series of values in a text box?

    I want to paste a series of asset numbers into a text area and use it to query the asset numbers column in a report to return only those assets whose asset number is in the text area any on know how to do that?

    If your text box contains the values concatenated by a string (: or ; or , or some other) you can use it in a query by replacing ':' with your concatenation string, similar to this example:
    SELECT empno, ename, job, mgr, sal
      FROM emp
    WHERE INSTR (':' || :p138_empno_textbox || ':', ':' || empno || ':') > 0Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • How can set direction right to left for horizontal text area

    I want set direction right to left for horizontal text area
    to view right to left String Type

    I don't know that there is such a thing as right to left
    String Type (I can't find one at least). I am assuming this
    involves some language where printed materials are read from right
    to left.
    Before I try to offer a solution though, it will be helpful
    to know more about that text area. Is the intention to type into
    the text area or to load a string into it?
    And if you are loading a string into it, is the string
    already right to left?

  • Can anyoine help me traslate this back into readable text?

    ûŸrI Ê@‘óîuÄVf~û͵V8=ÛÎ|õm…å;FãÜ3rrÎþÖ3÷Žç2~ H¿¸ù¡ñØ ¦wüù¯Æ¨+/ýù2¥îl¡Ÿqºñwq~Ö§aèkû?L,•MLXšeÆO…§^üWîd±lž#"›–ÜÚšË/:Oܲnã=õ«q‚ź¥vÝpöO·Š

    You will need to be a little more specific about where you found that and what it is supposed to convert to.
    Since you posted in the Training and Certification forum, I presume that it is something that you found in one of the official training manuals. I have run before into cryptic text in one of the OneNote manuals that are supplied to Certified Trainers. In
    that case, the problem was that the font in the Notebook had somehow been changed to Wingdings. Selecting the text and applying a normal font made it readable again.
    However, this doesn't seem to be the problem in the text that you posted; it doesn't look like Wingdings. Perhaps the encoding got lost when you posted it in this forum, or maybe the problem is something entirely different. That's why you need to be more
    explicit and provide more details about your question.

  • As i am fresher Please share the doc of ECMA script using java script in SharePoint 2013 also how we can insert,update,delete records in list using ECMA script.

    As i am fresher Please share the doc of ECMA script using java script in SharePoint 2013 step by step also how we can insert,update,delete records in list using ECMA script.
    Thanks and Regards, Rangnath Mali

    Hi,
    According to your post, my understanding is that you want to use JavaScript to work with SharePoint list.
    To create list items, we can create a ListItemCreationInformation object, set its properties, and pass it as parameter to the addItem(parameters) function
    of the List object.
    To set list item properties, we can use a column indexer to make an assignment, and call the update() function so that changes will take effect when you callexecuteQueryAsync(succeededCallback,
    failedCallback). 
    And to delete a list item, call the deleteObject() function on the object. 
    There is an MSDN article about the details steps of this topic, you can have a look at it.
    How to: Create, Update, and Delete List Items Using JavaScript
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Why do we use WLST Scripting when things can be done manually??

    Hi experts ,
    It may be a stupid question ,
    why do we use WLST scripting for things like deleting Queue _ _ etc ,      which can be done manually (through console)Please help i am newbie in this technology

    In addition to the practical reasons which Barosa supplied, it is also a best practice for addtional reasons:
    <ul><li>removing human errors from typos, omissions, etc
    </li>
    <li>making certains tasks (domain creation, configuration, application deployments, etc) repeatable, especially ones with many steps
    </li>
    <li>tasks that are repeatable, once tested, have a high degree of confidence that they will be done exactly the same way next time with a script
    </li>
    </ul>
    There are many more, but hopefully this gives you an idea of the benefits.

  • How to insert and delete fragments by clicking a button and how to script it?

    I have a  question on livecycle. I am collecting the inventor information as a bunch of text fields, each asking for a certain details. Please see below
    Now I have grouped them all in to one fragment called inventordetails and saved as .xdp file, so I could reuse this entire block. I want to add a button underneath this block, “ADD MORE INVENTORS” and when clicked this will insert another block and so forth and so on. However I was not sure as to how to insert and delete a fragment. Do  you think you can help with this? I appreciate any help in this regard.
    Best
    Subashini

    1.       I have a subform1 which is flowed
    2.       I have subform2 inside subform1 which is positioned
    3.       Inside subform2 I have two buttons 1. ADD INVENTOR 2. DELETE INVENTOR
    4.       Also inside subform1 I insert a fragment called inventor
    Now I want to script the buttons so that when clicked the inventor fragment either gets inserted again or deleted.
    I greatly appreciate any help in this regard.
    Best
    Subashini

  • Can we have an example of using update, insert, and delete stored procedure

    I would like to see an example of using retrieve (return resultset), update, insert, and delete stored procedures in JSF. I need to see syntax how JSF can call those stored procedures. This option is absolutely important when building web-application. Currently, I haven't found resource to do for this purpose yet. The database can be any such Oracle, DB2, pointbase, etc that support stored procedures.
    Anyone knows?
    Thanks,
    Tue Vu

    Hi ttv,
    I asked around a bit and here's some more info:
    To bind a ResultSet to a read only Data Table component just set the "value" property of the Data Table component to point at it, and JSF will synthesize a DataModel around it.
    * Note that because we can't call the stored procedure at design time, Creator can't do the fancy table layout stuff it does for rowsets. You'll need to hand craft the columns just like the Google Client example.
    * As I mentioned previously, you will have to manually code the stored procedure access in your java code - see the code clip I mentioned in previous reply (and if this is via a stored procedure, then any textbook about JDBC will undoubtedly have examples). Simplest way might be a getter method on the page bean that contains the call to the stored procedure and returns the resulting ResultSet object.
    * Don't forget to close the result set - we typically do this at the end of the request (i.e. add a close in the afterRenderResponse() method.
    * Don't throw exceptions - or if you have to, make sure you close the result set in a finally clause (thrown exceptions bypass the afterRenderResponse method in the lifecycle).
    * You give up on the caching provided by our RowSetDataModel (which can't be connected to a ResultSet even manually), so I would recommend that you only use datatables to display the data and then go to a single row page to do edits/deletes (similar to the TwoPage example in AppModel and the Update, Insert Delete tutorial).
    And yes please do submit an example - we will gladly post it!!! :) The best way to submit this kind of thing would be through:
    http://developers.sun.com/prodtech/javatools/jscreator/reference/codesamples/sampleapps.html
    on the right side, Related Links, under Creator Heros, click Submit Content and there you can send it in!
    Hope this helps!
    Val

Maybe you are looking for

  • SharePoint Designer 2013: Server-side activities have been updated

    When developing custom activities for SharePoint 2013 Workflows, I ran into the problem that SharePoint Designer prompts "Server-side activities have been updated. Please restart SharePoint designer" every time when you try to create a new workflow.

  • Personal Edition for Linux

    The personal edition of Oracle database server is only available for the Windows platform. Given the Oracle's increased platform support and even having their own version of Linux, is there any plan making personal edition available for the Linux OS

  • Java and Tomcat: Why do I need the port number when accessing Tomcat?

    My ultimate goal is to setup a website that displays data from a database. I will use Java, Apache, Oracle, and whatever else I need to create a website the uses servlets, JavaServer Pages, and JDBC. I�ve got four Pentium III computers: 1. Windows 20

  • ORACLE 8에서의 ORA-1578 조치 방법(UPDATE)

    제품 : ORACLE SERVER 작성날짜 : 2003-06-12 Oracle 8에서의 ORA-1578(Data Block Corruption) 조치 방법 <사전에 알아두어야 할 사항> # Oracle 8의 ROWID 1. FORMAT : OOOOOOFFFBBBBBBSSS * OOOOOO - data object number 로서 물리적인 segment의 id를 의미 * FFF - row가 위치한 datafile의 relative datafil

  • To copy transfer rules

    Hi guys, how do we copy transfer rules, i need to build one more cube with the same transfer rules with slight modifications.. Your help will be rightly appreciated Thanks,