Verdurian Dictionary bug
Posted: Thu Jan 02, 2025 6:44 pm
The interface for the Verdurian dictionary is subtiy broken: you're using HTML form elements, but rather than using a form you've tied everything to an onclick handler on the button. As a result, if you type a word into the input box and press Enter you get something else happening—the first time I tried it I got an internal server error, but other attempts just refreshed the page.
I am no expert but it seems like this should be relatively simple to fix: add a wrapper <form> element, make the List button a <input type="submit"> rather than merely a <input type="button">, and call the existing Javascript in the onsubmit event of the form rather than the onclick event of the button.
I am no expert but it seems like this should be relatively simple to fix: add a wrapper <form> element, make the List button a <input type="submit"> rather than merely a <input type="button">, and call the existing Javascript in the onsubmit event of the form rather than the onclick event of the button.