[software and hardware technology originating from or otherwise pertinent to planet earth]
http://www.w3schools.com/htmldom/dom_reference.asp
The World Wide Web Consortium (W3C) defines the HTML Document Object Module (DOM) as a standard. The DOM is used as a standardized way to programmatically access the content of HTML [and XML – we're only concerned with the HTML, here] documents.
Languages commonly used to access and modify the content of a DOM document instance [an instance of a DOM-conformant document] are Java and Javascript.
In this case, we are interested in accessing and modifying the content (data and meta-data) of an HTML document using Javascript to manipulate HTML elements using DOM-defined methods.
http://www.alistapart.com/stories/emen/
The blog "A List Apart" has a cool article on using dashes and hyphens in HTML — those nasty –, —, and ­ characters, y’kno?
From the article:
‘for an opening single quote (Ctrl + ` ` in Word—that’s two grave accents—that character on the tilde key).’for a closing single quote (or an apostrophe) (Ctrl + '' in Word).“for an opening double quote (Ctrl + ` " in Word).”for a closing double quote (Ctrl + ' " in Word).
… and …
I’ll bet you didn’t know this about HTML—the<q>and<blockquote>elements are designed to have quote marks automatically inserted in the appropriate locations. No current browser does this by default, however, and even those that do when faced with the appropriate style sheet markup (as detailed in CSS) get it wrong, especially with curly quotes.
See the article for the full story.
Labels: html, typography, web
http://code.google.com/apis/gdata/client-js.html#Obtain_Key
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>My Google Data API Application</title>
<script src="http://www.google.com/jsapi?key=ABQIAAAAEF0hbwoIdolnKjr5eMdCPRR65_V0rae5Sii3SwQWquZGohjOQRRV-du2YimkeA46q7aGVN6U-luT3w" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
google.load("gdata", "1");
function OnLoad() {
// Fill out
}
//]]>
</script>
</head>
<body onload="OnLoad()">
<div id="panel"/>
</body>
</html>
Labels: code, gdata, gooogle, javascript, web
Checking out the JavaScript drawing program example called Doodle at the webreference.com section on JavaScript Programming, I found this bit of CSS that does syntax highlighting: SyntaxHighlighter.css [http://www.webreference.com/css/SyntaxHighlighter.css]
See also the Doodle Javascript programming example provided by WebReference for use of these style classes. Nice bit of work.
Here is a trivial example of the HTML to use of some of SyntaxHighlighter.css classes [from the example article, page 3]:
<div style="width: 700px;">
<textarea name="code" class="javascript" cols="60" rows="10">
<P class=code><script src="core.js"
type=text/javascript></script><BR><script src="graphics.js"
type=text/javascript></script><BR><script src="canvas.js"
type=text/javascript></script><BR><script
type=text/javascript><BR>var canvas = null;<BR>function initCanvas()
{<BR> canvas = new
Canvas($('theCanvas'));<BR>}<BR>window.setTimeout(initCanvas,
10);<BR></script><BR> <div id="theFrame"
class="CanvasFrame"></div><BR> <div id="theCanvas"
class="Canvas"></div><BR></div></P>
</textarea>
</div>
Other examples occur in the article.
This CSS seems to make a nice complement to the PHP syntax highlighter blogged about elsewhere.
Labels: blog, blogger, code, css, html, javascript, php, source, syntax highlighter, web
2006/12 2007/01 2007/05 2007/06 2007/07 2007/08 2007/10 2008/01 2008/02 2008/03 2008/05 2008/11 2008/12 2009/01 2009/02 2009/03 2009/04 2009/05 2009/07 2009/09 2009/10 2009/11 2009/12 2010/01
Subscribe to Posts [Atom]