<?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/"
	>

<channel>
	<title>You found Karla Leibowitz on the interwebs</title>
	<atom:link href="http://www.karlakarla.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.karlakarla.com</link>
	<description>This is my website</description>
	<lastBuildDate>Wed, 15 Feb 2012 19:05:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Freedirectoryguide</title>
		<link>http://www.karlakarla.com/freedirectoryguide/</link>
		<comments>http://www.karlakarla.com/freedirectoryguide/#comments</comments>
		<pubDate>Tue, 06 Dec 2011 17:49:21 +0000</pubDate>
		<dc:creator>karla</dc:creator>
				<category><![CDATA[public]]></category>
		<category><![CDATA[web sites]]></category>

		<guid isPermaLink="false">http://www.karlakarla.com/?p=286</guid>
		<description><![CDATA[My project Freedirectoryguide is now live. The website can be viewed at <a href="http://www.freedirectoryguide.com">www.freedirectoryguide.com</a>.  

This website is an example of how Wordpress can be extended to integrate with other databases outside its own internal structure.  Most of the content that you see is provided by CityGrid Media and is accessed through api calls.  The categories, sidebars, theme, and page structure is provided by Wordpress and Genesis.  The architecture creates a shell that is easy to manage and extend.  The shell also provides hooks for SEO.

 <a class="more-link" href="http://www.karlakarla.com/freedirectoryguide/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>My project Freedirectoryguide is now live. The website can be viewed at <a href="http://www.freedirectoryguide.com">www.freedirectoryguide.com</a>.</p>
<p>This website is an example of how WordPress can be extended to integrate with other databases outside its own internal structure. Most of the content that you see is provided by CityGrid Media and is accessed through api calls. The categories, sidebars, theme, and page structure is provided by WordPress and Genesis. The architecture creates a shell that is easy to manage and extend. The shell also provides hooks for SEO.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.karlakarla.com/freedirectoryguide/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Goodbye to Steve Jobs</title>
		<link>http://www.karlakarla.com/goodbye-to-steve-jobs/</link>
		<comments>http://www.karlakarla.com/goodbye-to-steve-jobs/#comments</comments>
		<pubDate>Fri, 07 Oct 2011 17:13:23 +0000</pubDate>
		<dc:creator>karla</dc:creator>
				<category><![CDATA[public]]></category>

		<guid isPermaLink="false">http://www.karlakarla.com/?p=276</guid>
		<description><![CDATA[A man who lived to his full potential, without ever leaving his home town!]]></description>
			<content:encoded><![CDATA[<p>A man who lived to his full potential, without ever leaving his home town!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.karlakarla.com/goodbye-to-steve-jobs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open PDF with a set magnification</title>
		<link>http://www.karlakarla.com/open-pdf-with-a-set-magnification/</link>
		<comments>http://www.karlakarla.com/open-pdf-with-a-set-magnification/#comments</comments>
		<pubDate>Fri, 07 Oct 2011 17:11:17 +0000</pubDate>
		<dc:creator>karla</dc:creator>
				<category><![CDATA[public]]></category>

		<guid isPermaLink="false">http://www.karlakarla.com/?p=274</guid>
		<description><![CDATA[I&#8217;m sure I have more sophisticated topics to blog about but this is so cool and potentially helpful, I have to share it. When you link to a pdf document, you can control the size it opens at like this: &#8230; <a class="more-link" href="http://www.karlakarla.com/open-pdf-with-a-set-magnification/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m sure I have more sophisticated topics to blog about but this is so cool and potentially helpful, I have to share it.</p>
<p>When you link to a pdf document, you can control the size it opens at like this:</p>
<p>http://www.mysite.com/mypdfdoc.pdf#zoom=50</p>
<p>50 means open up the document at 50%.  100 would mean open up the document at 100%.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.karlakarla.com/open-pdf-with-a-set-magnification/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Example CONTACT FORM 7 form with calculated fields using events and javascript</title>
		<link>http://www.karlakarla.com/contacf-form-7-example-code/</link>
		<comments>http://www.karlakarla.com/contacf-form-7-example-code/#comments</comments>
		<pubDate>Fri, 09 Sep 2011 16:15:51 +0000</pubDate>
		<dc:creator>karla</dc:creator>
				<category><![CDATA[public]]></category>
		<category><![CDATA[web page techniques]]></category>

		<guid isPermaLink="false">http://www.karlakarla.com/?p=233</guid>
		<description><![CDATA[Here is the sample form and the accompanying javascript for calculating fields in a contact form 7 form. The code was created originally for the Cazadero Performing Arts Family Camp, but never put into use because they changed their website. &#8230; <a class="more-link" href="http://www.karlakarla.com/contacf-form-7-example-code/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here is the sample form and the accompanying javascript for calculating fields in a contact form 7 form.<br />
The code was created originally for the <a href="http://www.cazfamilycamp.org" title="Cazadero Performing Arts Family Camp">Cazadero Performing Arts Family Camp</a>, but never put into use because they changed their website.</p>
<p>There is some inline javascript which is very dense. I am sure the code could be improved by moving the inline code elsewhere, but, at the time, I was pretty happy to just have this working.  The inline code does not allow any formatting like tabs and line breaks, so it looks like a jungle of code!</p>
<pre>
<code>
<textarea rows="10" cols="70" readonly="readonly">
SAMPLE CONTACT FORM 7 FORM WITH CALCULATED FIELDS USING EVENTS AND JAVASCRIPT
<!-- by Karla Leibowitz, 2011, www.karlakarla.com -->
<div style="margin-top:5px;background:#667700; color:white; ">
<strong> CAMPER FEES (Camper fees are based on ages as of the first day of each session.)

[text adults 4/ "0"]<strong> Enter # of Adults (19+) $725/pp </strong>
[text kids 4/ "0"]<strong> Enter # of campers Ages 6-18 $640/pp </strong>
[text youngandold 4/ "0"]<strong> Enter # of campers Ages 3-5 &#038; SENIORS (over 65) $415/pp </strong>
[text babies 4/ "0"]<strong> Enter # of campers Ages 2 &#038; Under (no charge)</strong>

<strong> HOUSING OPTIONS : SELECT AN OPTION FROM BELOW (required)
<em style="color:red; background:white;">Tent cabins and dorm rooms available on a first come, first served basis. </em></strong>
<input type="radio" name="housing" value="You are a group of 4 or 5 and request a tent cabin if available" onclick="this.form.hadj.value=0; this.form.hmul.value=1" />You are a group of 4 or 5 and request a tent cabin if available (no extra fee)
<input type="radio" name="housing"  value="You are a group of 3 or less and request a tent cabin. " onclick="this.form.hadj.value=360; this.form.hmul.value=1;"/>You are a group of 3 or less and request a tent cabin. Additional $360.00
<input type="radio" name="housing"  value="You have 6 or more people in one tent cabin. " onclick="this.form.hadj.value=0; this.form.hmul.value=.90" />You have 6 or more people in one tent cabin. 10% off
<input type="radio" name="housing"  value="Your group will be sharing a tent cabin with another family.  " onclick="this.form.hadj.value=0; this.form.hmul.value=.90"/>Your group will be sharing a tent cabin with another family.  Each family must have 2 or more. 10% off
---- Enter other family name here [text sharefamily]
<input type="radio" name="housing"  value="Your group will bring and sleep in a tent, an RV, or a car." onclick="this.form.hadj.value=0; this.form.hmul.value=.90"/>Your group will bring and sleep in a tent, an RV, or a car. 10% off
<input type="radio" name="housing" value="You have 2-3 in your group and you would like a dorm room " onclick="this.form.hadj.value=0; this.form.hmul.value=1" />You have 2-3 in your group and you would like a dorm room (no extra fee)
---- If no dorm room is available then I will
---- [checkbox nodormroom "Share tent cabin with another small group" "Stay in tent cabin with only your group ($360 fee added if necessary)"]

<strong> DONATIONS  </strong>
$[text fcsf 7/7 "0"] Please consider a tax-deductible donation to the Family Camp Scholarship Fund
$[text lpdf 7/7 "0"] Please consider a tax-deductible donation to the Lanier Pruitt Diversity Fund
<div style="background:paleGreen; color:black; padding:5px;margin-top:4px;">
Calculate your payments <strong>
<input type="button" value="Click here" style="background:blue; color:white; border: 2px black solid" onclick="this.form.adultcost.value=this.form.adults.value*725; this.form.kidcost.value=this.form.kids.value*640; this.form.yocost.value=this.form.youngandold.value*415;this.form.total.value=addcampers(this.form.adultcost.value, this.form.kidcost.value,this.form.yocost.value);this.form.totalwreg.value=addcampers(this.form.total.value, 50, 0); this.form.totalh.value=addcampers(this.form.totalwreg.value*this.form.hmul.value, this.form.hadj.value, 0);this.form.totalpay.value=addcampers(this.form.totalh.value, this.form.fcsf.value, this.form.lpdf.value);  this.form.deposit.value=addcampers(this.form.adults.value*100, this.form.kids.value*100,this.form.youngandold.value*100);this.form.deposit.value=addcampers(this.form.deposit.value,50,0);this.form.balancedue.value=addcampers(this.form.totalpay.value,this.form.deposit.value*-1,0);this.form.housingtype.value=housingval(); "> to see totals.
If you change camper numbers, housing option, or donations, then you must click to recalculate.
</strong>
$[text* total 5/] TOTAL CAMPER COST -- Breakdown $[text* adultcost 5/] adults $[text* kidcost 5/] youth $[text* yocost 5/] Junior and Senior
$[text* totalwreg 5/] WITH REGISTRATION FEE

[text* housingtype 60/]
$[text* totalh 5/] WITH HOUSING ADJUSTMENTS  (
<input style="border:none;background:transparent; text-align:center" type="text" name="hadj" size="2" readonly="readonly"> surcharge
<input style="border:none;background:transparent;text-align:center;" type="text" name="hmul" size="2" readonly="readonly"> multiplier )

$[text* totalpay 7/7] TOTAL PAYMENT DUE INCLUDING DONATIONS

MINIMUM INITIAL DEPOSIT DUE WITH REGISTRATION FORM*
Amount: $[text* deposit 7/7]   (Includes registration fee and $100 per camper)

BALANCE DUE BY JUNE 1, 2011  $[text* balancedue 7/7]
</div>
<div style="background: #FFA500; margin-top:4px; padding:5px; color:black;">

[submit "Send"]
</div>

</textarea>
</code>
</pre>
<p>Here is the javascript code that you would need to install in a script section of your web page to complete this example.</p>
<pre>
<code>
<textarea cols="70" rows="10" readonly="readonly">
function  addcampers(one, two, three) {
sum=eval(one)+eval(two)+eval(three)
return sum
}
function housingval() {
for (i=0;i<document.forms[0].housing.length;i++) {
   if (document.forms[0].housing[i].checked) {
       user_input = document.forms[0].housing[i].value;
   }
}

return user_input
}
</textarea>
</code>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.karlakarla.com/contacf-form-7-example-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Class for WordPress Users</title>
		<link>http://www.karlakarla.com/css-class-big-success/</link>
		<comments>http://www.karlakarla.com/css-class-big-success/#comments</comments>
		<pubDate>Mon, 06 Jun 2011 15:31:14 +0000</pubDate>
		<dc:creator>karla</dc:creator>
				<category><![CDATA[public]]></category>

		<guid isPermaLink="false">http://www.karlakarla.com/?p=223</guid>
		<description><![CDATA[My Tech Liminal class, CSS for WordPress, taught in April and May, covered the basics of CSS in the context of modifying the look and feel of a WordPress website. We looked at how to go about restyling a website &#8230; <a class="more-link" href="http://www.karlakarla.com/css-class-big-success/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>My Tech Liminal class, <span style="text-decoration: underline;">CSS for WordPress</span>, taught in April and May, covered the basics of CSS in the context of modifying the look and feel of a WordPress website.</p>
<p>We looked at how to go about restyling a website created with the 2010 theme by editing the stylesheet.  To accomplish this training we covered:</p>
<ul>
<li>How to use Firebug with Firefox.</li>
<li>How to make a childtheme.</li>
<li>CSS rules and syntax.</li>
<li>How CSS integrates with HTML.</li>
<li>The internal structure of a WordPress site.</li>
<li>How WordPress renders a site.</li>
<li>As an added bonus, we covered how to style a theme from photoshop artwork.</li>
</ul>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.karlakarla.com/css-class-big-success/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Goodbye Sarah Jane</title>
		<link>http://www.karlakarla.com/goodbye-sarah-jane/</link>
		<comments>http://www.karlakarla.com/goodbye-sarah-jane/#comments</comments>
		<pubDate>Tue, 19 Apr 2011 20:37:26 +0000</pubDate>
		<dc:creator>karla</dc:creator>
				<category><![CDATA[public]]></category>

		<guid isPermaLink="false">http://www.karlakarla.com/?p=159</guid>
		<description><![CDATA[RIP. Thanks for all the adventures.]]></description>
			<content:encoded><![CDATA[<p>RIP.  Thanks for all the adventures.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.karlakarla.com/goodbye-sarah-jane/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add Javascript and HTML to a Contact Form 7 form</title>
		<link>http://www.karlakarla.com/add-javascript-to-a-contact-form-7-form/</link>
		<comments>http://www.karlakarla.com/add-javascript-to-a-contact-form-7-form/#comments</comments>
		<pubDate>Tue, 01 Feb 2011 01:04:12 +0000</pubDate>
		<dc:creator>karla</dc:creator>
				<category><![CDATA[public]]></category>
		<category><![CDATA[web page techniques]]></category>

		<guid isPermaLink="false">http://www.karlakarla.com/?p=80</guid>
		<description><![CDATA[The full text of the code I created for this example is here. I managed a WordPress website for a summer camp, and at one point they requested an online registration form. I chose Contact Form 7, a popular plug-in &#8230; <a class="more-link" href="http://www.karlakarla.com/add-javascript-to-a-contact-form-7-form/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The full text of the code I created for this example is <a href="http://www.karlakarla.com/contacf-form-7-example-code/" title="Example CONTACT FORM 7 form with calculated fields using events and javascript">here.</a></p>
<p>I managed a WordPress website for a summer camp, and at one point they requested an online registration form.  I chose <a href="http://contactform7.com/">Contact Form 7</a>,  a popular plug-in available through the WordPress plug-in library.  The  application uses shortcode like hooks and AJAX to build a form and then  mail the form inputs to the website owner (or whereever).  Multiple  email addressees can be designated so I could send a copy of the form to  both the registrar and the registrant.</p>
<p>The Contact Form 7 product is widely used, and a companion product, <a href="http://wordpress.org/extend/plugins/contact-form-7-to-database-extension/">Contact Form 7 to Database Extension</a> has been developed separately.  This plugin captures the form inputs  into a table that can then be exported in a variety of formats including  CSV for Excel and as HTML.  The user can delete records from the  database, so that subsequent exports are of fresh data only.  For the  camp office, this is a very useful administrative feature.</p>
<p>Once I started building my form, I found that I could manage the  styles via stylesheet and inline CSS and I could add html tags directly  into the form template.  With the integrated HTML, I could enclose  blocks of fields inside divs or spans and set borders, colored  backgrounds, special fonts, padding etc.  Explanatory text could be  highlighted, italicized or set to bold.</p>
<p>My camp colleagues were duly impressed and then asked for another  feature: could I calculate the cost, rather than having the camper do  it?  I searched and searched online for a solution.  But found none.</p>
<p>So here is how I was able to add javascript to my contact form 7 project, and to calculate fields in the contact form 7 form.</p>
<p>Contact Form 7 fields look like this:</p>
<pre><code><textarea cols="70" rows="1">
[text myfieldname]
</textarea>
</code></pre>
<p>Different types of form inputs (radio buttons, textareas, checkboxes)  are also supported. There are additional arguments you can add inside  the square brackets including an id, a class, a field length, and a  default value.</p>
<p>But you cannot add an event.</p>
<p>Here is a simple example of what an HTML tag with an event with some javascript would look like</p>
<pre><code><textarea cols="70" rows="1">
<input name="fieldname" type="text" onchange="alert('wow')" />
</textarea>
</code>
</pre>
<p>Since I can include HTML in my form template, I can drop this tag  into my form and voila! I have javascript in my form.  I can reference  javascript functions that are installed in the header of my theme, so  more ambitious functions are possible.</p>
<p>Easy peasy!  Yes, but, the database and the email will not see  “fieldname” because it exists outside the syntax the AJAX program is  expecting. Boo hoo.</p>
<p>You have to use a button to get information into the fields that contact form 7 sees.<br />
Here is an example:<br />
(note many of my examples include carriage return inside tags, but do  not do that on the contact form, or the pre-processor will break up your  HTML)</p>
<pre><code>
<textarea cols="70" rows="7">
<input type="button" value="Click Here"
onclick="this.form.field2.value=this.form.field1.value*100; this.form.field3.value=
add(this.form.field2.value, this.form.field1.value)" />

Enter a starting number: [text field1 “0”]
Adjustments: 1.  [text field2]  2. [text field3]
</textarea>
</code>
</pre>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
You can replace</p>
<pre><code>
<textarea cols="70">
[text field1 “0”]
</textarea></code></pre>
<p>with</p>
<pre><code>
<textarea cols="70">
<input name="field1" type="text" value="0" />
</textarea>
</code>
</pre>
<p>if you need to, and you would be able to reference field1 in your javascript, but it would not go into the database or into the email.</p>
<p>Any functions you need should be added to your header, either in header.php or through some mechanism in your theme.</p>
<p>The full text of the code I created is <a href="http://www.karlakarla.com/contacf-form-7-example-code/" title="Example CONTACT FORM 7 form with calculated fields using events and javascript">here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.karlakarla.com/add-javascript-to-a-contact-form-7-form/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unix Class Presentations Available</title>
		<link>http://www.karlakarla.com/unix-class-links-available/</link>
		<comments>http://www.karlakarla.com/unix-class-links-available/#comments</comments>
		<pubDate>Sun, 23 Jan 2011 07:46:20 +0000</pubDate>
		<dc:creator>karla</dc:creator>
				<category><![CDATA[public]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.karlakarla.com/?p=8</guid>
		<description><![CDATA[Links to the presentations from the Unix Fundamentals class can be found here.  This class runs through February 23, 2011 and focuses on concepts, vocabulary, and scripting.  A systems administration and security class will follow. To see the presentations click &#8230; <a class="more-link" href="http://www.karlakarla.com/unix-class-links-available/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Links to the presentations from the Unix Fundamentals class can be found here.  This class runs through February 23, 2011 and focuses on concepts, vocabulary, and scripting.  A systems administration and security class will follow.</p>
<p>To see the presentations <a href="http://www.karlakarla.com/unix-presentations/">click here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.karlakarla.com/unix-class-links-available/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

