author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Mon, 15 Aug 2011 00:37:30 +0300 | |
changeset 937 | be069cecf0f4 |
parent 899 | 7b4265c8d324 |
permissions | -rw-r--r-- |
899
7b4265c8d324
Set fill-column as directory local var.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
735
diff
changeset
|
1 |
-*- mode: outline; coding: utf-8; -*- |
79 | 2 |
|
517
acd9429b7505
Include JavaScript in HTML.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
79
diff
changeset
|
3 |
* HTML. |
acd9429b7505
Include JavaScript in HTML.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
79
diff
changeset
|
4 |
|
acd9429b7505
Include JavaScript in HTML.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
79
diff
changeset
|
5 |
<noscript> tag used to render HTML if JavaScript disabled in browser. |
acd9429b7505
Include JavaScript in HTML.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
79
diff
changeset
|
6 |
|
acd9429b7505
Include JavaScript in HTML.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
79
diff
changeset
|
7 |
** Include in HTML. |
acd9429b7505
Include JavaScript in HTML.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
79
diff
changeset
|
8 |
|
acd9429b7505
Include JavaScript in HTML.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
79
diff
changeset
|
9 |
<html> |
acd9429b7505
Include JavaScript in HTML.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
79
diff
changeset
|
10 |
<head> |
518
1e6ccb387d27
Fix 'script' tag closing according to standard.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
517
diff
changeset
|
11 |
<script type="text/javascript" src="abc.js"></script> |
517
acd9429b7505
Include JavaScript in HTML.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
79
diff
changeset
|
12 |
</head> |
acd9429b7505
Include JavaScript in HTML.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
79
diff
changeset
|
13 |
... |
acd9429b7505
Include JavaScript in HTML.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
79
diff
changeset
|
14 |
<html> |
acd9429b7505
Include JavaScript in HTML.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
79
diff
changeset
|
15 |
|
acd9429b7505
Include JavaScript in HTML.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
79
diff
changeset
|
16 |
** Inline in HTML. |
79 | 17 |
|
18 |
<html> |
|
19 |
<h1>Hello!<h1/> |
|
517
acd9429b7505
Include JavaScript in HTML.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
79
diff
changeset
|
20 |
<script language="javascript"> |
79 | 21 |
<!-- |
22 |
alert("Hello!") |
|
23 |
document.write("sin(10) = " + Math.sin(10)) |
|
24 |
//--> |
|
25 |
</script> |
|
26 |
</html> |
|
27 |
||
693
14208482f30d
Reduce js code size.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
586
diff
changeset
|
28 |
* Reduce js code size. |
14208482f30d
Reduce js code size.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
586
diff
changeset
|
29 |
|
14208482f30d
Reduce js code size.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
586
diff
changeset
|
30 |
http://crockford.com/javascript/jsmin |
14208482f30d
Reduce js code size.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
586
diff
changeset
|
31 |
The JavaScript Minifier |
14208482f30d
Reduce js code size.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
586
diff
changeset
|
32 |
http://developer.yahoo.com/yui/compressor/ |
14208482f30d
Reduce js code size.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
586
diff
changeset
|
33 |
YUI Compressor |
705 | 34 |
|
35 |
* XML processing from js. |
|
36 |
||
37 |
** XML for <SCRIPT>. |
|
38 |
||
39 |
Powerful, standards-compliant JavaScript XML parser that is designed to help web application |
|
40 |
designers implement cross platform applications that take advantage of client-side manipulation of |
|
41 |
XML data. XML for <SCRIPT> provides a full suite of tools, including: |
|
42 |
||
43 |
* A standards-compliant W3C DOM Level 2 processor |
|
44 |
* An XPath processor |
|
45 |
* A standards-compliant SAX processor |
|
46 |
* A simple (classic) DOM processor |
|
47 |
* Proxies for XML retrieval from any domain |
|
48 |
* Utilities for XML and application development |
|
49 |
||
50 |
http://xmljs.sourceforge.net/ |
|
51 |
home page |
|
52 |