Quiz

  1. This might be a silly question but why does jQuery UI rely heavily on a lot of files such as custom css or jquery-ui. css. Does dependence on more files like these create a better functionality or does it depend on the kind of user interface we want?

    Not a silly question at all! Much of it is modularity and customizeability.

    Remember when we had the "grading" part of the Quizzes assignment. Rather than directly modify the CSS from JS to mark it right/wrong, we added a CSS class. That allows someone to modify the formatting of right/wrong (shade of green, for example), without having to dig into our JS code.

    jQuery UI is similar: you can modify those classes and such to customize the appearance, without having to touch their JS code.

  2. What other ARIA attributes would jQuery UI make use of in order to make an element like div, which is not able to be clicked, to be accessible in an interactive way? I’m curious as to how it adds to accessibility mentioned in the notes or if it’s not possible. Thankyou!

    Great question! I'm honestly not an ARIA expert. There are lots of ARIA attributes, and I only know a handful.

    Here's an example of star-ratings using lots of ARIA. star ratings w/ ARIA

    Here's an example with less: star ratings w/o ARIA

  3. For sortable interaction, B and C seemed both true to me. Why is one not that correct?

    A sorting algorithm is a computer program that sorts a sequence without human intervention.

    That's not at all what the jQuery UI Sortable does.

    Rather, it allows the user to move things around. Which could be used for sorting or, frankly, for mixing/shuffling.

  4. For autocomplete, when a computer saves our information and automatically autocompletes any form we open, is it because it had already saved that dictionary somewhere? Also when you visit a website often and it remembers your information, is the same mechanism at work here as well?

    Interesting question! The autocomplete that JQuery UI enables is something is available uniformly for all users, and is specified in the web page.

    The autocomplete that you are describing is the browser remembering your prior inputs. In some cases, that could be a violation of your privacy! Suppose you filled in a secret (say, your SSN or credit card number) on one page and then on another page your browser prefills that, and you accidentally submit it (or the page uses Ajax to grab your input and send it somewhere).