Character count display problem in IE

Hi all,
I have implemented a character counter in ADF using Javascript (referencing this http://www.oracle.com/technetwork/developer-tools/adf/learnmore/10-char-input-counter-169133.pdf).
The problem that I am facing is: when my character counter becomes 0 (can no longer enter any text, the maxlimit of the input field is reached) then on IE browsers, it does not show the character '0'. It displays a blank. On Firefox and Chrome, however, the UI gets displayed as expected i.e. 0 characters left.
Let me know how to fix this on IE. Have tested with IE versions 8,9. JDev version is 11.1.1.7.0.
Thanks,
Anu.

Hi,
debugging the JavaScript to see what the value of the variable really is is a good start. If it turns out that it is becoming null, then you could use a if() case in that whenever the value is null you set it to 0. If the value however is correct but just doesn't render then you can try and transform it to a character instead of a number to see if the numeric output is the problem. This is how I would address the problem
Frank

Similar Messages

  • Dynamic character count

    Is it possible to have a display of how many characters are showing in a text box (without highlighting text) and when the size of the box is changed the character count is updated.
    For example if I have a text box and I have more text in that box then can fit so it is "busting out of the box"... can I get a character count display telling me how many characters are in the text box disregarding the overflow text... and as I pick up the text box handles and start resizing the text box the character count display updates on the fly... only counting the characters visible in the text box and not the ones that have busted out of the box.
    Regards, Tim

    There appears to be something wrong with your InDesign. This is what it looks like for me:
    Try resettting your preferences.

  • Character counter does not display data on IE when counter is 0

    Hi,
    I am implementing a character counter in ADF using Javascript (referencing this http://www.oracle.com/technetwork/developer-tools/adf/learnmore/10-char-input-counter-169133.pdf).
    I display the string --> 'x' characters left
    The problem that I am facing is: when my character counter becomes 0 (can no longer enter any text, the maxlimit of the input field is reached) then on IE browsers, it does not show the character '0'. It displays a blank. On Firefox and Chrome, however, the UI gets displayed as expected i.e. 0 characters left.
    Can I get any pointers how to fix this on IE. Have tested with IE versions 7,8,9. JDev version is 11.1.1.5.0
    Here is the code snippet that I am using:
    Javascript:
    function showCharacterCount(event) {
    var keyCodePressed = event.getKeyCode();
    if (keyCodePressed == AdfKeyStroke.TAB_KEY
    || keyCodePressed == AdfKeyStroke.ARROWLEFT_KEY
    || keyCodePressed == AdfKeyStroke.ARROWUP_KEY
    || keyCodePressed == AdfKeyStroke.ARROWRIGHT_KEY
    || keyCodePressed == AdfKeyStroke.ARROWDOWN_KEY) {
    event.cancel();
    else {
    textfield = event.getCurrentTarget();
    textfieldValue = event.getSource().getSubmittedValue();
    textfieldLength = textfieldValue.length;
    textfieldMaxLength = textfield.getMaximumLength();
    o = AdfPage.PAGE.findComponent('characterCounter');
    characterCounterValue = o.getValue();
    characterCounterValue = textfieldMaxLength - textfieldLength;
    o.setValue(characterCounterValue);
    UI:
    <af:panelGroupLayout id="pgl3" layout="horizontal">
    <af:outputText id="characterCounter" clientComponent="true" value="325"
    inlineStyle="text-align:right; display:block; width:100.0px;"
    binding="#{viewScope.myBean.characterCounterBndg}"/>
    <af:outputText value="characters left" id="ot7"
    inlineStyle="padding-left:5.0px;"/>
    </af:panelGroupLayout>
    <af:inputText id="it2" rows="4" columns="53"
    value="#{viewScope.myBean.text}" maximumLength="325" clientComponent="true"
    simple="true">
    <af:clientListener method="showCharacterCount"
    type="keyUp"/>
    </af:inputText>
    Thanks in advance.

    Try converting from dynamic data, that seems to take care of the problem. Also, you could use the regular field point VIs instead of the FP express VI. Check out the attached VI.
    -Alan A.
    Attachments:
    FP_Read.vi ‏30 KB

  • Textarea w/character counter problem

    Hi!
    We use a textarea with character counter and limited its max width to 500 chars. If max 500 chars have been inserted, then input stops after 500 chars. That works fine in MS Internet Explorer. Even if you insert CR/LF inputs (ENTER button), the max number of typed in chars will not exceed 500. Using Mozilla Firefox, it is possible to insert many CR/LF, which increases the typed in number by 2. Thus you get e.g. "548 of 500" displayed beyond the textarea. After updating the page in IExplorer even here you get the same counter status displayed. As long as you do not type in the textarea field, the char counter remains as it is and the data can be submitted and finally stored in database.
    Qu: Has anybody experienced teh same problem with max chars and CR/LF. Any idea of a workaround prevent "548 of 500" in textareas when typing in CR/LF ?
    Br,
    Thomas

    The CharCount() function that is used by APEX should be updated to contain javascript code similar to the code described here:
    http://pikasoftware.com/docs/index.php/Validating_TextArea

  • Slovakian Language (SK) character display problem

    Hi,
    Enviroment:R3 enterprise 110 /unicode/Oracle
    I'm having problem with one of the character for Slovakian. It seems that the character are display correctly when displaying thru Customer master data display (FD03 ) but show garble character (# etc) when display thru FD10N or FB03.
    Can anyone please guide me on where to look at or is this something I should refer to SAP?
    Thanks for any feedback

    I found out what was the problem. It is the configuration of the character set in I18N. I've to set this character set to "Central European" and it works fine.
    The only problem that I had now is a programmer having problem displaying some of the SK language? Please help!!!.

  • OO4 character Display Problem

    Hi All,
    I am using Oracle OLE objects to connect to Oracle 9.2 DB
    The NLS Language for the Database is AMERICAN_AMERICA.AR8ISO8859P6
    the client is using also the same NLS.
    When I retrive the information using OO4 some varchar2(Arabic Language) are return incorrectly from the DB, however when I use ADO on the same clinet it's correctly retrive all Data.
    I've only on home at my PC, and its NLS language is correct, even when I use SQL*Pluse the characters are displayed correctly.
    I also retrieved the NLS_LANG from the application using "SELECT USERENV ('LANGUAGE') FROM DUAL"
    and it was correct using ADO and OO4.
    Of course I've checked the registry value NLS_LANG and it's also AMERICAN_AMERICA.AR8ISO8859P6
    Any Help????

    I think after all it is a problem with the either:
    a. OS installer, which should really try to delete fonts which are duplicated by new system fonts
    b. OS which should give precedence to new system fonts over old system fonts where there are two the same, especially when the system fonts are in /System/Library/Fonts and the old ones are in /Library/Fonts
    The major annoyance is that this problem appeared with Leopard and took me hours of searching to figure out its origin - when you don't know if it is a character entry problem (which I thought) or a character display problem (which it turned out to be). In the end the fix was simple - delete the superceded fonts.

  • Character display problem latin characters

    For some reason old fonts show latin characters when i type "o/" and "l/". The problem seems confined to old fonts (at least Geneva; Monaco; New York), so I guess it is a bug?

    I think after all it is a problem with the either:
    a. OS installer, which should really try to delete fonts which are duplicated by new system fonts
    b. OS which should give precedence to new system fonts over old system fonts where there are two the same, especially when the system fonts are in /System/Library/Fonts and the old ones are in /Library/Fonts
    The major annoyance is that this problem appeared with Leopard and took me hours of searching to figure out its origin - when you don't know if it is a character entry problem (which I thought) or a character display problem (which it turned out to be). In the end the fix was simple - delete the superceded fonts.

  • Character display problem

    Hi All,
    When ever capital 'w' (i.e W, plain,Dialog and size 11) is first character in a text field left upper portion is not visible.But if I change any of these properties( i.e plain,Dialog, size 12) there is no problem.
    Can any body suggest me how can I display 'W' correctly with these propeties(i.e W, plain,Dialog and size 11).
    Thanks in advance

    I think after all it is a problem with the either:
    a. OS installer, which should really try to delete fonts which are duplicated by new system fonts
    b. OS which should give precedence to new system fonts over old system fonts where there are two the same, especially when the system fonts are in /System/Library/Fonts and the old ones are in /Library/Fonts
    The major annoyance is that this problem appeared with Leopard and took me hours of searching to figure out its origin - when you don't know if it is a character entry problem (which I thought) or a character display problem (which it turned out to be). In the end the fix was simple - delete the superceded fonts.

  • Problem seeing character count on iPhone 5c

    Even before up-date today, I cannot see the character count on any messages I send whether to another Apple phone or Android. The button is switched on in settings and I've tried restarting phone after turning it on and then off again. Any suggestions please?  Thanks.

    You won't get the character count if sending as an iMessage, only a regular SMS.

  • Character counting (count down) in Acrobat

    I have a PDF file with text fields that is going to be used by some of our writers and integrated into presentation decks across multiple programs. We have a lot of it working well and I've been able to piece some bits of code together here and there but I'm no programmer. Where I've hit a roadblock is with adding a visual character counter to the file.
    The file is set up to reflect an actual printed piece where there are limitations on line counts and characters per line. The line counts we aren't as concerned with but having a counter display how many characters you've typed to a line is important. I hope this makes sense. So basically we have one area where you can have a total of 10 lines and 30 characters (including spaces) on each line for a total of 300 characters. What would be great for us is if the text field could have a counter pop up showing something stating that the writer has entered "10 out of 30" characters for the particular line they're on.
    Is this a simple fix or something where I could be pointed somewhere to put a script togeteher? I've tried for a few days now and frankly this is like launching a missle into space for me. I'd greatly appreciate any help/insight you could offer and would be glad to share my expertise on any design or experience issues you may be having.

    Those are all great ideas Max and certainly stuff we can consider for building on this.
    The reason we need to block the characters after a certain count is due to a system this will be entered into. Our client will be copying and pasting the blocks of text into a technology platform that will then print the info. We were given a specific set of instructions for how many characters and lines the printed piece could hold.
    The fun part is that before this goes into production it has to first be presented several times in different presentation decks (some integrated into Powerpoint, others just PDFs). We've tried similar exercises in the past with Word and other programs with not a lot of satisfaction from our client. So, no pun intended, but Acrobat offered the most portable file format to accomplish our needs.
    Though the original code posted above doesn't exactly solve our problem it's a great start for us and gives us somethign to build off of.
    This is a simple one I think. What's the command to add text to a field? So if I wanted to add the character "\n" once the text was full. I guess that would be something like (just a note, not real code)…
    var hardreturn = \n;
    if (max == 25) {
    addText.value = hardreturn;
    (sorry a million times for my horrible programming skills)
    Thanks for everyone's input thus far. This is a great and informative discussion.
    Message was edited by: b.whitham

  • Character Counter for ADF 11g RichTextEditor

    I am rewriting an application in 11g RichFaces. The original app had a text area that had a maximum allowable length and used a Javascript function to display to the user how many characters they had left as they were typing. In the new app, I have replaced this functionality with the WYSIWYG RichTextEditor, but would like to give them the same functionality that they had before. I would like to display, as they type, a character count. The count needs to be of the actual displayed characters, not the count of HTML characters that are generated behind the scenes by the RichTextEditor.
    Is this possible?

    huh? waking up a 1-year-old thread to ask an unrelated question (and a demand for us to write your code for you to wit)?

  • Character count

    Hi,
    As most of the InDesign User know info window show text box character count, words even the paragraphs their in selected text box.
    I want to know is their a way to see these all text layer stats in Photoshop?
    Thanks
    Jamal

    You could probably use a Script to evaluate a selected Type Layer. (It may be difficult, though, to get the word count depending on your definition of word.)
    To have that feedback on display permanently you probably would have to create an html5 Panel.

  • Oracle to Mysql character set conversion problem!!! PLZ IGNORE

    Hi Experts,
    I have created a database link from Oracle 10g to Mysql 5.
    I have installed Oracle Gateway 11g for this purpose.
    When i retreive the data from sql plus the text is displayed as question marks.
    Oracle 10g Database character set is WE8MSWIN1252
    Mysql character set --->latin1
    Character set of ODBC connector for mysql is  latin7
    Character set in the parameter file of HS folder is WE8MSWIN1252When i retrieve data from sql developer the text is fine(as i think it directly takes the character set of target) but
    when i login from sqlplus i get question marks!
    I have another post in Heterogeneous Connectivity forum
    Re: Oracle to Mysql character set conversion problem!!! PLZ HELP
    Kindly update your comments there,
    @@@@@@@@@@@@@@2
    Appreciate your help,
    regards
    Edited by: user10243788 on Apr 21, 2010 3:25 AM

    It is OK to post a globalization-related question in this forum in addition to the forum pertaining to the main technology. Not all experts follow all possible forums on OTN. Of course, you should cross-link the posts to let people merge the answers.
    Regarding the problem itself, make sure that SQL*Plus has the right NLS_LANG setting in the environment. On Windows, in the Command Prompt:
    C:\> set NLS_LANG=.WE8PC850
    C:\> sqlplus ...On Unix:
    $ setenv NLS_LANG .WE8ISO8859P1   (or NLS_LANG=.WE8ISO8859P1; export NLS_LANG)
    $ sqlplus ...-- Sergiusz

  • Character counter in ABAp Webdynpro

    Hi everyone,
    I have a table with an editable field.
    I'd like to have a "Character counter" over the table, which displays the remaining characters of the field.
    Example:
    The field length is 100, but there is a limit for the maximum length e.g 70. When the field is empty the counter is 70, if the user starts to type, after every character the counter is decreased, until the counter reaches 0.
    My question is:
    Is this possible? If yes then how?  I can't find "onType" event in the Table properties
    Thanks & Bye
    N.

    Hi,
    The requirement looks very interesting...But I really wonder there is such event to handle the things as the user types the characters..There is no such event  to handle this.. You need to have a button and everytime user has to click to increase/decrease the counter...check if TIMER UI element can be used in this case because to record the user inputs we can set the timer and then try to have the character count...But this is really not a solution. just try it out...
    Let Thomas provide some inputs on this.
    Regards,
    Lekha.

  • Character count in texting message

    in my apple 4s , iOS 8.0.2, character count not working  when texting messages, while in message setting its already on.
    i try to restart it and  change setting on /off again on and restart but still character not showing when texting message.,
    this is only problem does when upgrade iOS 8.02, before in my old software it was working well .
    kindly help me to solve this problem.
    thanks

    Thank you Malcolm, that was a good idea ... it seems to have improved the text in the messages I;ve received and a slight improvement in the white-on-green of the snet messages. 
    Sadly did not affect the character count.
    I fear it begins to look as if the character count has been overlooked by the designers at Apple and is left "outside" the range of things affected by the accessibility options. What do you think?

Maybe you are looking for

  • HP Photosmart 5510 e-All-in-O​ne

    When I'm away from my network my laptop keeps looking for the printer. I keep getting the search hour glass. How can I fix this?

  • Does anyone know when the thunderbolt to firewire cable/adaptor will be available?

    Does anyone know when the thunderbolt to firewire cable/adaptor will be available?

  • Getting started question

    I'm sure I'll have fewer questions as times moves on, but here is another newbie question. I've gone through the initial getting started chapter on the 'Calculator' stateless session bean J2EE project. At the step: <i>Deploying and Running the Calcul

  • Po process - EXIT_SAPLEBND_002

    hi experts in the transaction me21n when does the fields KZWI1 through KZWI6 are filled in the structure bekpo that transferd to function EXIT_SAPLEBND_002. i want to know why when i tranfer this structure this fields are initial thanks Amit

  • Reordering Playlists

    I can't figure out how to change the order of songs in my playlists in the latest version of iTunes. Clicking over the number column no longer works. Anyone know how to do it?