<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>~electronic caffeine~ &#187; scripting</title>
	<atom:link href="http://glassmantissa.wordpress.com/category/scripting/feed/" rel="self" type="application/rss+xml" />
	<link>http://glassmantissa.wordpress.com</link>
	<description></description>
	<lastBuildDate>Fri, 10 Aug 2007 19:01:20 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='glassmantissa.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/7df7db5038f6bfd40b1ea044fa627859?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>~electronic caffeine~ &#187; scripting</title>
		<link>http://glassmantissa.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://glassmantissa.wordpress.com/osd.xml" title="~electronic caffeine~" />
		<item>
		<title>objects and web scripting</title>
		<link>http://glassmantissa.wordpress.com/2007/08/10/objects-and-web-scripting/</link>
		<comments>http://glassmantissa.wordpress.com/2007/08/10/objects-and-web-scripting/#comments</comments>
		<pubDate>Fri, 10 Aug 2007 19:01:20 +0000</pubDate>
		<dc:creator>dots</dc:creator>
				<category><![CDATA[encapsulation]]></category>
		<category><![CDATA[methods]]></category>
		<category><![CDATA[naming]]></category>
		<category><![CDATA[object-oriented programming]]></category>
		<category><![CDATA[programming languages]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[syntax]]></category>
		<category><![CDATA[theory]]></category>
		<category><![CDATA[web programming]]></category>

		<guid isPermaLink="false">http://glassmantissa.wordpress.com/2007/08/10/objects-and-web-scripting/</guid>
		<description><![CDATA[scripting typically involves creating objects in order to execute certain tasks to achieve a desired outcome. and so &#8230; how do i create an object? it sounds silly, really. but, honest &#8230; its abstract &#8230; a tough concept around which to wrap one&#8217;s head. its the core of modern-day programming, though. so i had better [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=glassmantissa.wordpress.com&blog=1256866&post=22&subd=glassmantissa&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>scripting typically involves creating objects in order to execute certain tasks to achieve a desired outcome. and so &#8230; how do i create an object? it sounds silly, really. but, honest &#8230; its abstract &#8230; a tough concept around which to wrap one&#8217;s head. its the core of modern-day programming, though. so i had better start getting it.</p>
<p>object creation involves 2 steps.</p>
<p>(1). <strong>create an object definition</strong> ~ the code containing methods and properties of the object. methods ~ directions for making the object. properties  ~ characteristics that typify the object.</p>
<blockquote><p><em>create a constructor function</em> ~ a named group of 1 or more programming statements that can create new objects. note &#8211; by convention, capitalize the first letter of a constructor function.</p></blockquote>
<blockquote>
<blockquote><p><u>add properties</u> ~ identified by object name &#8220;dot&#8221; property name. refer to the newly created, not yet instantiated objects as &#8220;this&#8221;</p>
<h6><font color="#ffff00">objectName.propertyName = value</font></h6>
</blockquote>
<blockquote><p><u>add methods</u> ~ (methods =  functions called from within the method.) name the method, assign a function. use action words when naming methods.  identified using the syntax below. (argument = input to subroutine &#8230; used to assign a value to a property of the new object)</p>
<h6><font><font color="#ffff00">objectName.methodName(arguement)</font></font></h6>
</blockquote>
</blockquote>
<p>(2) <strong>instantiation</strong> ~ create an  instance of the newly defined object. specify a unique name for the new object. assign the object to the recently created object definition using the &#8220;new&#8221; keyword.</p>
<p><em>steps in object instantion</em> ~ variable assigned a value ~ variable value passed as a parameter (parameters act as local copies of the argument) to the new object ~ parameter used to assign variable value to an object property ~ object property used by the object&#8217;s show method ~ show calls the object&#8217;s display method, which writs to the browser.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/glassmantissa.wordpress.com/22/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/glassmantissa.wordpress.com/22/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/glassmantissa.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/glassmantissa.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/glassmantissa.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/glassmantissa.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/glassmantissa.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/glassmantissa.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/glassmantissa.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/glassmantissa.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/glassmantissa.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/glassmantissa.wordpress.com/22/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=glassmantissa.wordpress.com&blog=1256866&post=22&subd=glassmantissa&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://glassmantissa.wordpress.com/2007/08/10/objects-and-web-scripting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fb30679b6123f1ca3f2f1f05f9aed136?s=96&#38;d=identicon" medium="image">
			<media:title type="html">dots</media:title>
		</media:content>
	</item>
		<item>
		<title>a primer on scripting objects</title>
		<link>http://glassmantissa.wordpress.com/2007/08/09/a-primer-on-scripting-objects/</link>
		<comments>http://glassmantissa.wordpress.com/2007/08/09/a-primer-on-scripting-objects/#comments</comments>
		<pubDate>Thu, 09 Aug 2007 21:11:46 +0000</pubDate>
		<dc:creator>dots</dc:creator>
				<category><![CDATA[scripting]]></category>
		<category><![CDATA[web programming]]></category>

		<guid isPermaLink="false">http://glassmantissa.wordpress.com/2007/08/09/a-primer-on-scripting-objects/</guid>
		<description><![CDATA[client-side scripting ~ runs in a browser: interpreted when browser loads page. to create ~ must specify type/language attribute in opening script tag. the document object methods document.write ( ) and document.writeln ( ) return output to the web page. document.writeln inserts a carriage return at the end of each line. to call external client-side [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=glassmantissa.wordpress.com&blog=1256866&post=21&subd=glassmantissa&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>client-side scripting</strong> ~ runs in a browser: interpreted when browser loads page. to create ~ must specify type/language attribute in opening script tag. the document object methods document.write ( ) and document.writeln ( ) return output to the web page. document.writeln inserts a carriage return at the end of each line. to call external client-side script files ~ use *.js format/file extension to denote the file with the script tag&#8217;s source (src) attribute. when creating an external script file, just begin writing your script ~ no special tags required.</p>
<h6><font color="#ffff00">&lt;script&gt; src=&#8217;filenamehere.js&#8217; type = &#8216;text/JavaScript&#8217;&#8230; &lt;/script&gt;</font></h6>
<p><strong>server-side scripting</strong> (windows/MS) ~ runs on a web server: interepreted by the web server&#8217;s script engine. to create ~ can use (i) script tag pair with script&#8217;s runat attribute set to server, or (ii) inline tags.</p>
<h6>(i) <font color="#ffff00">&lt;script&gt; type = &#8216;text/JavaScript&#8217; runat=&#8217;server&#8217;&#8230; &lt;/script&gt; </font></h6>
<h6>(ii) <font color="#ffff00">&lt;% &#8230; %&gt; </font></h6>
<p><strong>the asp (active server page) model</strong> comprises 6 objects: response, request,  application, session, server, objectContext. to return output to the web page, use the response object&#8217;s write method: response.write( ). to reference an external server-script, call the *.inc file. all server-side code gets stripped from the html code before browser/client receives it ~ cannot be viewed via <em>view source code</em>.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/glassmantissa.wordpress.com/21/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/glassmantissa.wordpress.com/21/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/glassmantissa.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/glassmantissa.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/glassmantissa.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/glassmantissa.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/glassmantissa.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/glassmantissa.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/glassmantissa.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/glassmantissa.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/glassmantissa.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/glassmantissa.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=glassmantissa.wordpress.com&blog=1256866&post=21&subd=glassmantissa&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://glassmantissa.wordpress.com/2007/08/09/a-primer-on-scripting-objects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fb30679b6123f1ca3f2f1f05f9aed136?s=96&#38;d=identicon" medium="image">
			<media:title type="html">dots</media:title>
		</media:content>
	</item>
	</channel>
</rss>