eg-259:lecture5
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
eg-259:lecture5 [2013/02/11 12:48] – eechris | eg-259:lecture5 [2013/02/12 08:27] (current) – [Screen Output: jQuery magic] eechris | ||
---|---|---|---|
Line 173: | Line 173: | ||
* Because of the problems of broken scripts, many Web surfers disable JavaScript support in their browser. | * Because of the problems of broken scripts, many Web surfers disable JavaScript support in their browser. | ||
* Scripts can run slowly and complex scripts take a long time to start up((Again modern browser developers have put a lot of effort into making script engines more efficient. Conversely, web applications rely more and more on scripts, so this speed advantage may not last long)). | * Scripts can run slowly and complex scripts take a long time to start up((Again modern browser developers have put a lot of effort into making script engines more efficient. Conversely, web applications rely more and more on scripts, so this speed advantage may not last long)). | ||
- | * To overcome browser issues, modern developers make use of libraries that provide better abstractions of the DOM and allow separation of concerns between the application data and the display of that data in HTML((Two popular libraries | + | * To overcome browser issues, modern developers make use of libraries that provide better abstractions of the DOM and allow separation of concerns between the application data and the display of that data in HTML((Two popular libraries |
Line 462: | Line 462: | ||
===== More on Variables and Operators ===== | ===== More on Variables and Operators ===== | ||
- | Visit the OpenJS tutorial for an interactive presentation. | + | Visit [[http:// |
- | + | ||
- | * [[http:// | + | |
- | * [[http:// | + | |
- | + | ||
- | For even more details see [[http:// | + | |
Line 569: | Line 564: | ||
---- | ---- | ||
- | In Firebug | + | In Firefox and Chrome developer tools there is a JavaScript console. You can write to it using: |
<code javascript> | <code javascript> | ||
console.log(" | console.log(" | ||
</ | </ | ||
- | does almost the same thing as '' | + | It's better than '' |
+ | ===== Screen Output: jQuery magic ===== | ||
+ | * HTML placeholder | ||
+ | <code html> | ||
+ | <div id=" | ||
+ | </ | ||
+ | </ | ||
+ | * Output function | ||
+ | <code javascript> | ||
+ | $('# | ||
+ | </ | ||
+ | * Result | ||
+ | <code html> | ||
+ | <div id=" | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
===== Screen Output: alert ===== | ===== Screen Output: alert ===== | ||
eg-259/lecture5.1360586881.txt.gz · Last modified: 2013/02/11 12:48 by eechris