NVDA is reading the letters in a text input box twice, once when the key is pressed and again a half second later. When typing faster then only the last character is repeated. It is also reading the validation errors associated with the text box twice.
The entire form was wrapped in aria-live="polite", an issue we have encountered at least three times now in our own projects, and simple as it is I thought it would benefit the community by being recording here.
Related
I have written a code to generate texts based on certain conditions in Spotfire using R. The code refreshes automatically whenever a selection is made. Since there are a lot of if-else condition used in R, the code takes a noticeable time to refresh the content. The dashboards change but the text changes after a lag.
Is there anyway to reset the text output while the R code runs so that the user doesn't get confused?
I've go some Python triggered data function that can take between 5 minutes to an hour to execute. The hardest part is getting the HTML of a text area to update. What I've currently implemented is a loading bar coded by Halpenfield. Something I've been meaning to try but haven't gotten to yet is a more descriptive popup.
These won't reset the displayed text before executing code but they will make it clear to the user something is happening. There might be a way to do directly what you are asking with two HTML's and a forced refresh like Halpenfield uses.
I'm writing a Notes Client application. Web compatibility is a secondary concern. The language is LotusScript.
The specification: a form to enter lines from receipts. The lines are all saved as part of the same document so that they can be signed as an atomic unit.
When a line is added, it is to be formatted into a table for presentation. Ultimately, this architecture is like an input/datastore/presentation split.
I've managed to get the data stored and signed, and I think I've managed to get it deserializing properly (the LotusScript debugger makes it difficult to see, but it looks right). The problem now is the UI.
Looking at the Programmable Table, it is always a tabbed table with only one row shown per tab. I need a programmable table which can dynamically have rows added to it for display, without forcing new tabs to be created.
This suggests that I would need to use a Rich Text field to contain a table, but thus far my attempts to get anything to display when I try to update a Rich Text field in edit mode have failed. I am forced to conclude that it is impossible.
I cannot figure out how I'm supposed to do a dynamically-displayed list of tabular data like this. Any advice?
Most people just create a table with one row and N columns, with a multi-valued field in each column, and use code to append values to each of the fields in parallel. You don't get borders between rows this way or the ability to do variable formatting of cells, and you have to be careful to avoid letting data length exceed column widths in order to keep everything aligned properly.
If you truly want a dynamic table for presentation with all the bells and whistles that you can get in terms of cell formatting, then the Midas Rich Text API from Genii Software is a commercial solution that can do the job.
I blogged about this a couple of years ago: http://blog.texasswede.com/dynamic-tables-in-classic-notes/
This is a non-XPages solution, but of course you can also use XPages to achieve the same/similar result. It does not use tabs, as each row is a separate table.
Alternatively, you can build your Rich Text Table in another NotesDocument, which you then save. Then use NotesUIDocument.ImportItem (which is undocumented, but present in the R8.5 mail template) to update your NotesUIDocument.
Don't forget to delete the other NotesDocument when you're done.
Another option is to build the table in HTML in computed text, and re-open the document every time you modify it. I have inherited a system that does that, and I hate it...so be warned :)
I'm not sure if anyone has faced this issue.
Basically I have a text document with about 100,000 lines and I am trying to import it into an SQLite table with a single column.
After doing so, when I did a generic query SELECT * FROM table WHERE field LIKE "%something%", I realised that irrelevant results were turning up. Digging further, the reason was that some of the lines in the original text file got concatenated into giant row entries. This gives the impression of a wrong result (which was simply due to the giant rows having a match). Instead of 100,000 records, I had only 50,000 odd and 2 records with LENGTH(field) > 1,000,000 characters.
The first thing that came to my mind was the possibility of special characters messing things up, so I did a strings FILE in BASH. The problem persisted.
So, long story short, does anyone know the reason for this (and how to solve the issue)? Considering that the table has a single field, I don't think delimiters have anything to do with this right?
I've traced the issue to unbalanced double-quotes reserved for quoting strings in csv. so if i have an open quote on one line, it will only count as a record when the next quote is found - which can be many lines down.
I've created a couple views showing e.g. the latest news and events. However, when the username contains "special characters" (but still common in Finland), for example 'ä' or 'ö', the view shows the empty text instead of the real data.
For example my events view has two fields (node title and time of the event) and three filters (published = yes, node type = event and event time >= now). Nothing closely related filtering with the username added by myself.
Is there a workaround to get the view working?
Sounds like a problem with character encoding. I would recommend UTF8, works with almost every language.
The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets
Whatever you do, make sure you use always the same encoding and use it everywhere.
Program chooses the number to be guessed by selecting an int at random in the range 1–100. The program then displays the following text in a label:
I have a number between 1 and 100 -- can you guess my number? Please enter your first guess.
A TextBox should be used to input the guess. As each guess is input, the background color should change to red or blue. Red indicates that the user is getting "warmer", blue that the user is getting "colder". A label should display either "Too High" or "Too Low", to help the user zero in on the correct answer. When the user guesses the correct answer, display "Correct!" in a message box, change the Form's background color to green and disable the TextBox. A TextBox (like other controls) can be disabled by setting the control's Enabled property to False. Provide a Button that allows the user to play the game again. When the button is clicked, generate a new random number, change the background to the default color and enable the TextBox.
You might want to start off by thinking of the structure, breaking everyting down into smaller pieces.
Step one - Identify the requirements
Now you said that you want to create some sort of software, that allowes you to guess on random numbers. So If we break this down into smaller pieces we get the following:
Random number Generator
Amount of guesses
Possibility to post a new guess
These are the minumum requirements, so if we break each step up into even smaller pieces we will get to the final solution pretty quickly ( i will however only provide you with a sufficient amount of information to get your started on your homework ).
Step two - Understanding random
You might want to head over here to read a little about Random numbers in C#, however as you have probably already guessed you need a ranom number generator, i've provided you with two links to ranom generators and information about it which should help you on the way, but to give you a little example here
example
Random generator = new Random();
generator.Next();
Now you have a couple of extra parameters that might come in handy, check the MSDN Guidelines on Ranom, there are methods / constructors that might be of interest which will help you select a ranom number between a and b.
Step three - creating the interface
Now this is where i say godbye to you, you should have sufficient information on how to start the solution and get some data out there. Otherwise I would suggest this resource
Break it up into smaller problems you can get started on.
Can you create a textbox and echo the input?
Can you generate a random number?
Can you test if a given number is greater or less than your chosen number?
Break the problem into smaller pieces.
You need the program to:
1. Ask user question.
2. Take input from user.
3. Process input from user.
Do the smallest thing that does something, no matter how uselss, like print("Guess my number"); then build it from there. Try doing it without using GUI components, they can distract you from the solution.
Once you have a working program that can guess a random number, then introduce GUI elements to it.