Many new web frameworks rely on the dual.
– Rich Faces
There's no builtin construct to get the length of an associative array, since it's an object.
can also be read or written by calling
Thus, you can access each property by entering the name of the property as a string into this array. Such an array associates each key with a value (in this case the key Home is associated with the value normal). In the Perl programming language it is also called a hash.
based on http://en.wikipedia.org/wiki/Rich_Internet_application
Ajax has recently been used most prominently by Google for projects such as Gmail and Google Maps. However, creating a large application in this framework is very difficult (echoed by the “lunch interviewer” in Google), as many different technologies must interact to make it work, and browser compatibility requires a lot of effort. In order to make the process easier, several open source Ajax Frameworks have been developed, as well as commercial frameworks.
Ajax complicates software testing activities. These complications lengthen the software development process.
Some if not all answers are found in your book.
Q: describe an ajax application proxy. Created in what language? Why needed? Connects which 2 parties that can’t talk directly?
q: describe a simple xmlHttpRequest data flow starting from a onClick, going through an onreadyStateChange special-js function, with some page fragment updated. (more common than hidden frame, but not more complex)
You did this for years but some nitty-gritty iview questions may make u appear /amateur/ (adjective)
Many answers are in your book.
* how do u access all the
elements in a page@@
* how do u add a
before the 2nd last
* how do u let a user click a button to add a new
in a designated location on the page@@ Use innerHTML
* how do u change the style of an element@@
* why and how do u register multiple functions (event-handlers) for a button’s onClick@@
* how do u unregister an event handler@@
“background call to server” to retrieve data needed to update a page fragment
ajax paradigm can be very confusing. Don’t ask me exactly why. Let’s really master one piece at a time. Let’s try to memorize a component’s relationship with other components. Memorize and try to develop quick reflex that you had with struts, java, unix, perl,
You already know that a GET (ignore POST for now) always has a caller function, in our case a js function. Caller function always receives the Gdata (GET-data), dictated by http. Now sit up — Gdata is passed to a “special-js” function. Avoid cliches like “callback”.
* => special-js runs in the browser
* => special-js usually modifies the DOM content in the browser
* special-js checks if (readyState == 4)
innerHTML is frequently used. Anything in ajax paradigm can be confusing. Let’s really master one piece at a time. Let’s try to memorize a component’s relationship with other components. Memorize and try to develop quick reflex that you had with struts, java, unix, perl,
* innerHtml refers to browser content ie page fragments in the browser
* innerHtml has meaning after page loading, not during or before, the browser completes loading a page or a fragment from a ajax call.