<?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>alexyz &#187; HTML</title>
	<atom:link href="http://alexyz.com/category/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://alexyz.com</link>
	<description>developer notes</description>
	<lastBuildDate>Thu, 15 Mar 2012 22:48:08 +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>jQuery .hover change div background-position example</title>
		<link>http://alexyz.com/jquery-hover-change-div-background-position-example/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=jquery-hover-change-div-background-position-example</link>
		<comments>http://alexyz.com/jquery-hover-change-div-background-position-example/#comments</comments>
		<pubDate>Wed, 16 Nov 2011 23:48:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://alexyz.com/?p=1416</guid>
		<description><![CDATA[example for reference: $(&#8220;#formButtonSubmit&#8220;).hover(function(){ $(this).css({ backgroundPosition: &#8217;0px 0px&#8217; }); }, function(){ $(this).css({ backgroundPosition: &#8217;0px 30px&#8217; }); });]]></description>
			<content:encoded><![CDATA[<p>example for reference:</p>
<p><span style="color: #0000ff;">$</span>(&#8220;#<span style="color: #ff0000;">formButtonSubmit</span>&#8220;).<span style="color: #0000ff;">hover</span>(<span style="color: #008000;">function()</span>{<br />
<span style="color: #0000ff;">$</span>(<strong>this</strong>).<span style="color: #0000ff;">css</span>({<br />
backgroundPosition: &#8217;0px 0px&#8217;<br />
});<br />
}, function(){<br />
<span style="color: #0000ff;">$</span>(<strong>this</strong>).<span style="color: #0000ff;">css</span>({<br />
backgroundPosition: &#8217;0px 30px&#8217;<br />
});<br />
});</p>
]]></content:encoded>
			<wfw:commentRss>http://alexyz.com/jquery-hover-change-div-background-position-example/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Secure HTML form example using PHP htmlentities, passing a token PHP, AJAX submission via jQuery</title>
		<link>http://alexyz.com/secure-html-form-example-using-php-htmlentities-passing-a-token-php-ajax-submission-via-jquery/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=secure-html-form-example-using-php-htmlentities-passing-a-token-php-ajax-submission-via-jquery</link>
		<comments>http://alexyz.com/secure-html-form-example-using-php-htmlentities-passing-a-token-php-ajax-submission-via-jquery/#comments</comments>
		<pubDate>Wed, 21 Sep 2011 16:55:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://alexyz.com/?p=1398</guid>
		<description><![CDATA[&#60;? php // form page (index.php): initialize a session so that we can set a unique, random, encrypted value to a user session session_start(); $token = md5(uniqid(rand(), true)); $_SESSION['token'] = $token; ? &#62; &#60;!DOCTYPE html PUBLIC &#8220;-//W3C//DTD XHTML 1.0 Transitional//EN&#8221; &#8220;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#8221;&#62; &#60;html xmlns=&#8221;http://www.w3.org/1999/xhtml&#8221;&#62; &#60;head&#62; &#60;script src=&#8221;js/jquery.js&#8221; type=&#8221;text/javascript&#8221;&#62;&#60;/script&#62; &#60;script src=&#8221;js/jquery.validation.js&#8221; type=&#8221;text/javascript&#8221;&#62;&#60;/script&#62; &#60;script src=&#8221;js/registerSubmit.js&#8221; type=&#8221;text/javascript&#8221;&#62;&#60;/script&#62; &#60;/head&#62; &#60;body&#62; [...]]]></description>
			<content:encoded><![CDATA[<p><span style="color: #ff0000;">&lt;? php</span><br />
<span style="color: #ff0000;">// form page (index.php): initialize a session so that we can set a unique, random, encrypted value to a user session</span><br />
session_start();<br />
$token = md5(uniqid(rand(), true));<br />
$_SESSION['token'] = $token;<br />
<span style="color: #ff0000;">? &gt;</span><br />
&lt;!DOCTYPE html PUBLIC &#8220;-//W3C//DTD XHTML 1.0 Transitional//EN&#8221; &#8220;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#8221;&gt;<br />
&lt;html xmlns=&#8221;http://www.w3.org/1999/xhtml&#8221;&gt;<br />
&lt;head&gt;<br />
&lt;script src=&#8221;js/jquery.js&#8221; type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt;<br />
&lt;script src=&#8221;js/jquery.validation.js&#8221; type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt;<br />
&lt;script src=&#8221;js/registerSubmit.js&#8221; type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
<span style="color: #ff0000;">&lt;!&#8211; The Form &#8211;&gt;</span><br />
&lt;form id=&#8221;topForm&#8221; name=&#8221;topForm&#8221; method=&#8221;post&#8221;&gt;<br />
&lt;input type=&#8221;hidden&#8221; name=&#8221;token&#8221; id=&#8221;token&#8221; value=&#8221;<span style="color: #ff0000;">&lt;? php</span> echo $token; <span style="color: #ff0000;">? &gt;</span>&#8221; /&gt;<br />
&lt;input name=&#8221;emailAddress&#8221; id=&#8221;emailAddress&#8221; value=&#8221;Email address&#8221; onclick=&#8221;if( this.value == &#8216;Email address&#8217; ){ $(this).val(&#8221;); }&#8221; onblur=&#8221;if( this.value == &#8221;){ $(this).val(&#8216;Email address&#8217;); }&#8221; /&gt;<br />
&lt;/form&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p>
<p><span style="color: #ff0000;">// The jquery.validation.js class uses a regular expression to stop the process if the email entered isn&#8217;t acceptable</span></p>
<p>;(function($) {<br />
$.validation = {};<br />
$.extend( $.validation, {<br />
email:function(email) {<br />
var filter = /^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$/;<br />
if ( filter.test(email) ) {<br />
return true;<br />
}<br />
return false;<br />
}<br />
});<br />
})(jQuery);</p>
<p><span style="color: #ff0000;">// The registerSubmit.js submits the entered email via AJAX, returning a success or failure message, to our contactSubmit.php script, which handles the submission of the new email to a database</span></p>
<p>$(document).ready(function() {</p>
<p>$(&#8220;#reg-button&#8221;).click(function(){<br />
$(&#8220;#topForm&#8221;).submit();<br />
});</p>
<p>$(&#8220;#topForm&#8221;).submit(function(event) {<br />
event.preventDefault();<br />
var $form = $( this ),<br />
emailAddress = $form.find( &#8216;input[name="emailAddress"]&#8216; ).val(),<br />
token = $form.find( &#8216;input[name="token"]&#8216; ).val(),<br />
formaction = $form.attr( &#8216;action&#8217; );</p>
<p>if($.validation.email(emailAddress)){<br />
$( &#8220;#reg-description&#8221; ).html (&#8220;submitting&#8230;&#8221;);<br />
$.ajax({<br />
type: &#8220;POST&#8221;,<br />
url: &#8220;contactSubmit.php&#8221;,<br />
data: &#8220;firstName=&#8221; + firstName + &#8220;&amp;lastName=&#8221; + lastName + &#8220;&amp;emailAddress=&#8221; + emailAddress + &#8220;&amp;token=&#8221; + token,<br />
success: function(){<br />
$( &#8220;#reg-description&#8221; ).html( &#8220;Thank you. You have been registered.&#8221; );<br />
},<br />
});<br />
}<br />
else{<br />
$( &#8220;#emailAddress&#8221; ).val (&#8220;Please enter a valid email address&#8221;);<br />
}<br />
});<br />
});</p>
<p><span style="color: #ff0000;">// contactSubmit.php:  receive the email, check the token, clean the data, pass to a database layer API</span></p>
<p><span style="color: #ff0000;">&lt;? php</span><br />
session_start();</p>
<p>set_include_path(&#8216;DBlayerClass&#8217;);<br />
require_once(&#8216;EmailContact.php&#8217;);</p>
<p>if (isset($_SESSION['token']) &amp;&amp; $_POST['token'] == $_SESSION['token']){<br />
if(isset($_POST['emailAddress'])){<br />
$emailAddress = htmlentities($_POST['emailAddress']);<br />
} else { $emailAddress = &#8221;; }</p>
<p>$contact = new EmailContact($emailAddress)</p>
<p>try {<br />
$contact-&gt;save();<br />
} catch (Exception $e) {<br />
; // do something<br />
}<br />
//$retrieve = new EmailContact($emailAddress);<br />
//$retrieve-&gt;load();<br />
//print_r($retrieve);<br />
//}<br />
<span style="color: #ff0000;">? &gt;</span></p>
]]></content:encoded>
			<wfw:commentRss>http://alexyz.com/secure-html-form-example-using-php-htmlentities-passing-a-token-php-ajax-submission-via-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bronto Direct Import API import .csv file (upload) via HTML form post or via PHP CURL with code examples</title>
		<link>http://alexyz.com/bronto-direct-import-api-dump-csv-via-form-post-or-php-curl-examples/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=bronto-direct-import-api-dump-csv-via-form-post-or-php-curl-examples</link>
		<comments>http://alexyz.com/bronto-direct-import-api-dump-csv-via-form-post-or-php-curl-examples/#comments</comments>
		<pubDate>Tue, 23 Aug 2011 22:46:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Bronto]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://alexyz.com/?p=1382</guid>
		<description><![CDATA[We are building a Cassandra based system (of record) to capture emails so that we can handle 100k users converging on an online event as quickly as possible.  Rather than relying on our third party email marketing vendor, Bronto, to handle the volume we could possibly experience, and risk possibly failing (as others doing the [...]]]></description>
			<content:encoded><![CDATA[<p>We are building a Cassandra based system (of record) to capture emails so that we can handle 100k users converging on an online event as quickly as possible.  Rather than relying on our third party email marketing vendor, Bronto, to handle the volume we could possibly experience, and risk possibly failing (as others doing the same thing recently have done&#8230;cough cough&#8230;.Oprah and Eckhart Tolle), we&#8217;ll build our own system that can be tested correctly, and thus handle the volume, and then we&#8217;ll dump said new emails in reasonably sized files out to Bronto, who will then send out confirmation emails for us&#8230;</p>
<p>This post covers the script that will take file exports from Cassandra (sorry, no Cassandra in this one&#8230;), and Post them to Bronto.  Below is an example that uses a standard HTML form Post, for understanding and comprehensiveness, and an example that uses CURL (which easily allows this process to happen as part of an ordinary CRON job).</p>
<p>First we have to set up, and get some connection values, from Bronto:</p>
<ul>
<li>Log into Bronto</li>
<li>From the top menu select <strong>Home-&gt;Settings</strong></li>
<li>select <strong>Data Exchange</strong></li>
<li>scroll to the bottom to <strong>Direct Import</strong> and grab the following connection values:<strong> </strong>
<ul>
<li><strong>URL:</strong> <span style="color: #0000ff;">http://app.bronto.com/mail/subscriber_upload/index/</span><strong> </strong></li>
<li><strong>site_id: </strong><span style="color: #0000ff;">YOUR_SITE_ID</span><strong></strong></li>
<li><strong>user_id:</strong> <span style="color: #0000ff;">YOUR_USER_ID</span><strong></strong></li>
<li><strong>key:</strong> <span style="color: #0000ff;">YOUR_KEY</span></li>
</ul>
</li>
</ul>
<div>Further reference, Bronto support docs are here:<br />
<a href="https://app.bronto.com/mail/help/help_view/?k=mail:home:api_tracking:tracking_direct_import" target="_blank">https://app.bronto.com/mail/help/help_view/?k=mail:home:api_tracking:tracking_direct_import<br />
</a>&nbsp;</p>
<p>Next let&#8217;s look at what this Post might look like as your common HTML form:</p>
<p><span style="color: #008000;">&lt;form method=&#8221;post&#8221; action=&#8221;</span><span style="color: #0000ff;">http://app.bronto.com/mail/subscriber_upload/index/</span><span style="color: #008000;">&#8221; enctype=&#8221;multipart/form-data&#8221;&gt;</span><br />
<span style="color: #008000;"> &lt;input type=&#8221;text&#8221; name=&#8221;source&#8221; value=&#8221;</span><span style="color: #0000ff;">Test Contacts</span><span style="color: #008000;">&#8221; /&gt;</span><br />
<span style="color: #008000;"> &lt;input type=&#8221;text&#8221; name=&#8221;format&#8221; value=&#8221;</span><span style="color: #0000ff;">csv</span><span style="color: #008000;">&#8221; /&gt;</span><br />
<span style="color: #008000;"> &lt;input type=&#8221;file&#8221; name=&#8221;filename&#8221; value=&#8221;</span><span style="color: #0000ff;">C:\xampp\htdocs\YOUSITEFOLDERPATH\batch.csv</span><span style="color: #008000;">&#8221; /&gt;</span><br />
<span style="color: #008000;"> &lt;input type=&#8221;text&#8221; name=&#8221;site_id&#8221; value=&#8221;</span><span style="color: #0000ff;">YOUR_SITE_ID</span><span style="color: #008000;">&#8221; /&gt;</span><br />
<span style="color: #008000;"> &lt;input type=&#8221;text&#8221; name=&#8221;user_id&#8221; value=&#8221;</span><span style="color: #0000ff;">YOUR_USER_ID</span><span style="color: #008000;">&#8221; /&gt;</span><br />
<span style="color: #008000;"> &lt;input type=&#8221;text&#8221; name=&#8221;key&#8221; value=&#8221;</span><span style="color: #0000ff;">YOUR_KEY</span><span style="color: #008000;">&#8221; /&gt;</span><br />
<span style="color: #008000;"> &lt;input type=&#8221;submit&#8221; name=&#8221;submit&#8221; value=&#8221;submit&#8221; /&gt;</span><br />
<span style="color: #008000;">&lt;/form&gt;<br />
</span></p>
<p><span style="color: #008000;"><span style="color: #000000;">Next let&#8217;s look at what this Post might look like in a PHP script using CURL:</span></span></p>
<p><span style="color: #ff0000;">&lt;? php</span><br />
$fields = <span style="color: #008000;">array</span>(<br />
&#8216;<span style="color: #0000ff;">source</span>&#8216;=&gt;&#8221;<span style="color: #0000ff;">Test contacts</span>&#8220;,<br />
&#8216;<span style="color: #0000ff;">format</span>&#8216;=&gt;<span style="color: #0000ff;">csv</span>,<br />
&#8216;<span style="color: #0000ff;">filename</span>&#8216;=&gt;&#8217;<span style="color: #0000ff;">@</span>&#8216;.&#8217;<span style="color: #0000ff;">C:\xampp\htdocs\YOURSITEFOLDERPATH\batch.csv</span>&#8216;,<br />
&#8216;<span style="color: #0000ff;">site_id</span>&#8216;=&gt;<span style="color: #0000ff;">YOUR_SITE_ID</span>,<br />
&#8216;<span style="color: #0000ff;">user_id</span>&#8216;=&gt;<span style="color: #0000ff;">YOUR_USER_ID</span>,<br />
&#8216;<span style="color: #0000ff;">key</span>&#8216;=&gt;&#8217;<span style="color: #0000ff;">YOUR_KEY</span>&#8216;,<br />
);</p>
<p><strong>/* The key here is the &#8216;@&#8217; above, which tells CURLOPT_POSTFIELDS to UPLOAD that file, parenthesis critical! */</strong></p>
<p>$ch = <span style="color: #008000;">curl_init</span>();<br />
<span style="color: #008000;">curl_setopt</span>($ch, <span style="color: #008000;">CURLOPT_URL</span>, &#8216;<span style="color: #0000ff;">http://app.bronto.com/mail/subscriber_upload/index/</span>&#8216;);<br />
<span style="color: #008000;">curl_setopt</span>($ch, <span style="color: #008000;">CURLOPT_POST</span>, <span style="color: #008000;">count</span>($fields));<br />
<span style="color: #008000;">curl_setopt</span>($ch, <span style="color: #008000;">CURLOPT_POSTFIELDS</span>, $fields);<br />
$result = <span style="color: #008000;">curl_exec</span>($ch);<br />
<span style="color: #008000;">curl_close</span>($ch);</p>
<p><span style="color: #008000;">var_dump</span>($result);<br />
<span style="color: #ff0000;">? &gt;</span></p>
<p><span style="color: #ff0000;"><span style="color: #000000;">Last but not least, make (or in our case receive from Cassandra export dump) the .csv file to be Posted.<br />
First column, Email, 2nd through n filled with email addresses, save it as .csv comma delineated.<br />
Yes, it&#8217;s actually that simple.<br />
I hope this helps somebody.<br />
</span></span></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://alexyz.com/bronto-direct-import-api-dump-csv-via-form-post-or-php-curl-examples/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create a php page with a form that searches (curls) two separate WordPress applications</title>
		<link>http://alexyz.com/creating-a-php-search-page-that-searches-curls-two-separate-wordpress-applications/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=creating-a-php-search-page-that-searches-curls-two-separate-wordpress-applications</link>
		<comments>http://alexyz.com/creating-a-php-search-page-that-searches-curls-two-separate-wordpress-applications/#comments</comments>
		<pubDate>Fri, 29 Jul 2011 23:28:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://alexyz.com/?p=1376</guid>
		<description><![CDATA[We have many installations where I work, some of them newer, some older, some severely whacked at by coders, some pretty much default installations. Anyhow, now they want a page from which a visitor could enter a search term, click submit, and get results from all of the separate applications! Here is my solution: The [...]]]></description>
			<content:encoded><![CDATA[<p>We have many installations where I work, some of them newer, some older, some severely whacked at by coders, some pretty much default installations.</p>
<p>Anyhow, now they want a page from which a visitor could enter a search term, click submit, and get results from all of the separate applications!</p>
<p>Here is my solution:</p>
<p>The new page has your basic self submitting form:</p>
<p><span style="color: #008000;">&lt;form action=&#8221;" method=&#8221;post&#8221;&gt;</span><br />
<span style="color: #008000;"> &lt;label for=&#8221;search&#8221;&gt;Search:&lt;/label&gt;</span><br />
<span style="color: #008000;"> &lt;input name=&#8221;s&#8221; type=&#8221;text&#8221; value=&#8221;"  /&gt;</span><br />
<span style="color: #008000;"> &lt;input type=&#8221;submit&#8221; /&gt;</span><br />
<span style="color: #008000;">&lt;/form&gt;</span></p>
<p>Then, of course, it grabs what has been submitted:</p>
<p><span style="color: #ff0000;">&lt;?php</span></p>
<p><span style="color: #ff6600;">/**</span><br />
<span style="color: #ff6600;"> * Get Search parameters</span><br />
<span style="color: #ff6600;"> */</span><br />
$search = <span style="color: #008000;">$_POST['s']</span>;<br />
$search = <span style="color: #008000;">str_replace</span>(&#8221; &#8220;,&#8221;%20&#8243;,$search);<br />
<span style="color: #008000;">echo</span> $search;</p>
<p><span style="color: #ff0000;">?&gt;</span></p>
<p><span style="color: #000000;">This checks to ensure that the user didn&#8217;t submit nothing (as WordPress would give us every post as currently coded&#8230;! ick)</span>.  This would also be a great place to guard against injection attacks (or in the last step of course), to filter what may be searched for, etc., but I&#8217;ll leave those concerns for another discussion:</p>
<p><span style="color: #ff0000;">&lt;?php</span><br />
<span style="color: #ff6600;">/**</span><br />
<span style="color: #ff6600;"> * If desired search is NOT empty, search, otherwise don&#8217;t</span><br />
<span style="color: #ff6600;"> */</span><br />
<span style="color: #008000;">if</span>(($search != &#8221;) <span style="color: #008000;">&amp;&amp;</span> ($search != null) <span style="color: #008000;">&amp;&amp;</span> (!empty($search)) )<br />
{<br />
<span style="color: #ff0000;">?&gt;</span></p>
<p><span style="color: #ff0000;"><span style="color: #000000;">Now we curl in the results from each installation:</span></span></p>
<p><span style="color: #ff0000;">&lt;?php</span><br />
<span style="color: #ff6600;">/**</span><br />
<span style="color: #ff6600;"> * Get Search results from WP app 1</span><br />
<span style="color: #ff6600;"> */</span><br />
$sub_req_url = &#8220;http://<strong>YOURAPP<span style="color: #ff0000;">1</span>URLHERE</strong>/searchpage.php?s=&#8221; . <span style="color: #0000ff;">$search</span>;<br />
$ch = <span style="color: #008000;">curl_init</span>($sub_req_url);<br />
<span style="color: #008000;">curl_setopt</span>($ch, <span style="color: #0000ff;">CURLOPT_HEADER</span>, 0);<br />
<span style="color: #008000;">curl_setopt</span>($ch, <span style="color: #0000ff;">CURLOPT_POST</span>, 1);<br />
<span style="color: #008000;">curl_setopt</span>($ch, <span style="color: #0000ff;">CURLOPT_RETURNTRANSFER</span>, 1);<br />
$podcast_return = <span style="color: #008000;">curl_exec</span>($ch);<br />
<span style="color: #008000;">curl_close</span>($ch);<br />
<span style="color: #008000;">echo</span> $podcast_return;</p>
<p><span style="color: #ff6600;">/**</span><br />
<span style="color: #ff6600;"> * End</span><br />
<span style="color: #ff6600;"> */</span><br />
<span style="color: #ff0000;">?&gt;</span></p>
<p><span style="color: #ff0000;">&lt;?php</span><br />
<span style="color: #ff6600;">/**</span><br />
<span style="color: #ff6600;"> * Get Search results from WP app 2</span><br />
<span style="color: #ff6600;"> */</span><br />
$sub_req_url = &#8220;http://<strong>YOURAPP<span style="color: #ff0000;">2</span>URLHERE</strong>/searchpage.php?s=&#8221; . <span style="color: #0000ff;">$search</span>;<br />
$ch = <span style="color: #008000;">curl_init</span>($sub_req_url);<br />
<span style="color: #008000;">curl_setopt</span>($ch, <span style="color: #0000ff;">CURLOPT_HEADER</span>, 0);<br />
<span style="color: #008000;">curl_setopt</span>($ch, <span style="color: #0000ff;">CURLOPT_POST</span>, 1);<br />
<span style="color: #008000;">curl_setopt</span>($ch, <span style="color: #0000ff;">CURLOPT_RETURNTRANSFER</span>, 1);<br />
$podcast_return = <span style="color: #008000;">curl_exec</span>($ch);<br />
<span style="color: #008000;">curl_close</span>($ch);<br />
<span style="color: #008000;">echo</span> $podcast_return;</p>
<p><span style="color: #ff6600;">/**</span><br />
<span style="color: #ff6600;"> * End</span><br />
<span style="color: #ff6600;"> */</span><br />
<span style="color: #ff0000;">?&gt;</span></p>
<p><span style="color: #ff0000;"><span style="color: #000000;">Now let&#8217;s close our IF block, and maybe provide ELSE if we want to&#8230;</span></span></p>
<p><span style="color: #ff0000;">&lt;?php</span><br />
<span style="color: #ff6600;">/**</span><br />
<span style="color: #ff6600;"> * close if empty block</span><br />
<span style="color: #ff6600;"> */</span><br />
}<br />
else<br />
{<br />
}<br />
<span style="color: #ff0000;">?&gt;</span></p>
<p><span style="color: #ff0000;"><span style="color: #000000;">Ok, that&#8217;s the end of our new page, again, I&#8217;ll leave formatting of the results and the rest of the page to another discussion.  Now let&#8217;s make the above mentioned search pages &#8220;searchpage.php&#8221; (<strong><span style="color: #ff0000;">make one for EACH APP, lives in the ROOT of EACH WP installation that we&#8217;re searching!</span></strong>):</span></span></p>
<p><span style="color: #ff0000;">&lt;?php</span><br />
<span style="color: #ff6600;">/**</span><br />
<span style="color: #ff6600;">* WordPress App 1 Post Results Pull-In </span><br />
<span style="color: #ff6600;">*/</span><br />
<span style="color: #008000;">define</span>(&#8216;<span style="color: #0000ff;">WP_USE_THEMES</span>&#8216;, true);<br />
<span style="color: #008000;">include</span>(&#8216;wp-load.php&#8217; );<br />
$query = <span style="color: #008000;">new</span> WP_Query(&#8216;s=&#8217; . <span style="color: #008000;">$_GET['s']</span>);<br />
<span style="color: #008000;">if </span>($query-&gt;have_posts()) : while ($query-&gt;have_posts()) <span style="color: #008000;">:</span> $query-&gt;the_post(); <span style="color: #ff0000;">?&gt;</span></p>
<p>/* Again, how you choose to skin the results could be implemented here, but I&#8217;ll leave that up to you&#8230; */</p>
<p><span style="color: #008000;">&lt;div id=&#8221;post-</span><span style="color: #ff0000;">&lt;?php</span> <span style="color: #008000;">the_ID()</span>; <span style="color: #ff0000;">?&gt;</span>&#8220;&gt;<br />
<span style="color: #008000;">&lt;h2&gt;</span><span style="color: #ff0000;">&lt;?php</span> <span style="color: #008000;">the_title()</span>; ?&gt;<span style="color: #008000;">&lt;/h2&gt;</span><br />
<span style="color: #008000;">&lt;div&gt;</span><br />
<span style="color: #ff0000;">&lt;?php</span> <span style="color: #008000;">the_content</span>(&#8216;<span style="color: #008000;">&lt;p&gt;Read the rest of this page &amp;raquo;&lt;/p&gt;</span>&#8216;); <span style="color: #ff0000;">?&gt;</span><br />
<span style="color: #ff0000;">&lt;?php</span><span style="color: #008000;"> wp_link_pages</span>(array(&#8216;before&#8217; =&gt; &#8216;<span style="color: #008000;">&lt;p&gt;&lt;strong&gt;Pages:&lt;/strong&gt;</span> &#8216;, &#8216;after&#8217; =&gt; &#8216;<span style="color: #008000;">&lt;/p&gt;</span>&#8216;, &#8216;next_or_number&#8217; =&gt; &#8216;number&#8217;)); <span style="color: #ff0000;">?&gt;</span><br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
<span style="color: #ff0000;">&lt;?php</span> <span style="color: #008000;">endwhile; endif;</span> <span style="color: #ff0000;">?&gt;</span></p>
<p><strong>Whoohoo! Great Work!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://alexyz.com/creating-a-php-search-page-that-searches-curls-two-separate-wordpress-applications/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Snippets: HTML object swf embed within a WordPress post snag it n&#8217; publish it code excerpt</title>
		<link>http://alexyz.com/snippets-html-object-swf-embed-within-a-wordpress-post-snag-it-n-publish-it-code-excerpt/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=snippets-html-object-swf-embed-within-a-wordpress-post-snag-it-n-publish-it-code-excerpt</link>
		<comments>http://alexyz.com/snippets-html-object-swf-embed-within-a-wordpress-post-snag-it-n-publish-it-code-excerpt/#comments</comments>
		<pubDate>Wed, 29 Dec 2010 23:58:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://alexyz.com/?p=947</guid>
		<description><![CDATA[&#60;object height=&#8221;24&#8243; width=&#8221;500&#8243; codebase=&#8221;http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0&#8243; classid=&#8221;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&#8243;&#62;&#60;param value=&#8221;file=http://www.site.net/track.mp3&#38;amp;image=http://www.site.net/trackImage.jpg&#8221; name=&#8221;flashvars&#8221;&#62;&#60;param value=&#8221;http://www.site.com/swf/player.swf&#8221; name=&#8221;movie&#8221;&#62;&#60;embed height=&#8221;24&#8243; width=&#8221;500&#8243; flashvars=&#8221;file=http://www.site.net/track.mp3&#8243; pluginspage=&#8221;http://www.macromedia.com/go/getflashplayer&#8221; type=&#8221;application/x-shockwave-flash&#8221; src=&#8221;http://www.site.com/swf/player.swf&#8221;&#62;&#60;/object&#62;]]></description>
			<content:encoded><![CDATA[<p>&lt;object height=&#8221;24&#8243; width=&#8221;500&#8243; codebase=&#8221;http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0&#8243; classid=&#8221;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&#8243;&gt;&lt;param value=&#8221;file=http://www.site.net/track.mp3&amp;amp;image=http://www.site.net/trackImage.jpg&#8221; name=&#8221;flashvars&#8221;&gt;&lt;param value=&#8221;http://www.site.com/swf/player.swf&#8221; name=&#8221;movie&#8221;&gt;&lt;embed height=&#8221;24&#8243; width=&#8221;500&#8243; flashvars=&#8221;file=http://www.site.net/track.mp3&#8243; pluginspage=&#8221;http://www.macromedia.com/go/getflashplayer&#8221; type=&#8221;application/x-shockwave-flash&#8221; src=&#8221;http://www.site.com/swf/player.swf&#8221;&gt;&lt;/object&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://alexyz.com/snippets-html-object-swf-embed-within-a-wordpress-post-snag-it-n-publish-it-code-excerpt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>anchor tag mailto subject body link example</title>
		<link>http://alexyz.com/anchor-tag-mailto-subject-body-link-example/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=anchor-tag-mailto-subject-body-link-example</link>
		<comments>http://alexyz.com/anchor-tag-mailto-subject-body-link-example/#comments</comments>
		<pubDate>Tue, 14 Dec 2010 23:11:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://alexyz.com/?p=903</guid>
		<description><![CDATA[content in full post]]></description>
			<content:encoded><![CDATA[<p>&lt;a <span style="color: #008000;">href</span>=&#8221;<span style="color: #ff0000;"><span style="color: #0000ff;">mailto:</span>?</span><span style="color: #ff0000;">subject=</span>Whatever you want the subject to be goes here<span style="color: #ff0000;">&amp;body</span>=Whatever you want the body text to be goes here<span style="color: #ff0000;">%0Aurl:</span> http://www.alexyz.com/&#8221;&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://alexyz.com/anchor-tag-mailto-subject-body-link-example/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress limit search form to a category</title>
		<link>http://alexyz.com/wordpress-limit-search-form-to-a-category-2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=wordpress-limit-search-form-to-a-category-2</link>
		<comments>http://alexyz.com/wordpress-limit-search-form-to-a-category-2/#comments</comments>
		<pubDate>Fri, 10 Dec 2010 00:34:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://alexyz.com/?p=847</guid>
		<description><![CDATA[example: &#160; &#60;script&#62; function submitter() { track_it(&#8216;/podcast/searchFormSubmit/&#8217;); document.searchform.submit(); } &#60;/script&#62; &#160; &#60;form method=&#8221;get&#8221; name=&#8221;searchform&#8221; id=&#8221;searchform&#8221; action=&#8221;&#60;?php bloginfo(&#8216;url&#8217;); ?&#62;/&#8221;&#62; &#160; &#60;input type=&#8221;text&#8221; value=&#8221;&#60;?php the_search_query(); ?&#62;&#8221; name=&#8221;s&#8221; id=&#8221;s&#8221; onclick=&#8221;this.value=&#8221;&#8221;/&#62; &#160; This is the important new line, 5 is an example category id &#160; &#60;input type=&#8221;hidden&#8221; name=&#8221;cat&#8221; value=&#8221;5&#8243; /&#62; &#160; &#60;a href=&#8221;javascript:submitter()&#8221; style=&#8221;text-decoration:none;font-size:11px;margin:0 0 0 5px;position:absolute;top:0px;&#8221;&#62;&#60;img src=&#8221;wp-content/themes/New/images/go.png&#8221; onmouseover=&#8221;this.src=&#8217;wp-content/themes/New/images/go-over.png&#8217;&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>example:</p>
<p>&nbsp;</p>
<p><span style="color: #0000ff;">&lt;script&gt;</span><br />
<span style="color: #0000ff;">function submitter()<br />
{<br />
track_it(&#8216;/podcast/searchFormSubmit/&#8217;);<br />
document.searchform.submit();<br />
}</span><br />
<span style="color: #0000ff;">&lt;/script&gt;</span></p>
<p>&nbsp;</p>
<p><span style="color: #800000;">&lt;form method=&#8221;get&#8221; name=&#8221;searchform&#8221; id=&#8221;searchform&#8221; action=&#8221;&lt;?php bloginfo(&#8216;url&#8217;); ?&gt;/&#8221;&gt;</span></p>
<p>&nbsp;</p>
<p><span style="color: #800000;">&lt;input type=&#8221;text&#8221; value=&#8221;&lt;?php the_search_query(); ?&gt;&#8221; name=&#8221;s&#8221; id=&#8221;s&#8221; onclick=&#8221;this.value=&#8221;&#8221;/&gt;</span></p>
<p>&nbsp;</p>
<p><strong><span style="color: #ff0000;">This is the important new line, 5 is an example category id</span></strong></p>
<p>&nbsp;</p>
<p><span style="color: #800000;">&lt;input type=&#8221;hidden&#8221; name=&#8221;cat&#8221; value=&#8221;5&#8243; /&gt;</span></p>
<p>&nbsp;</p>
<p><span style="color: #800000;">&lt;a href=&#8221;javascript:submitter()&#8221; style=&#8221;text-decoration:none;font-size:11px;margin:0 0 0 5px;position:absolute;top:0px;&#8221;&gt;&lt;img src=&#8221;wp-content/themes/New/images/go.png&#8221; onmouseover=&#8221;this.src=&#8217;wp-content/themes/New/images/go-over.png&#8217;&#8221; onmouseout=&#8221;this.src=&#8217;wp-content/themes/New/images/go.png&#8217;&#8221; border=&#8221;0&#8243; /&gt;</span></p>
<p>&nbsp;</p>
<p><span style="color: #800000;">&lt;/a&gt;<br />
&lt;/form&gt;</span></p>
<p>&nbsp;</p>
<p>source: <a href="http://wpgarage.com/code-snippets/how-to-hack-the-wordpress-search-function-search-categories-and-child-categories/">http://wpgarage.com/code-snippets/how-to-hack-the-wordpress-search-function-search-categories-and-child-categories/</a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://alexyz.com/wordpress-limit-search-form-to-a-category-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>I always like to have a nice simple AJAX example on hand, you never know&#8230;</title>
		<link>http://alexyz.com/i-always-like-to-have-a-nice-simple-ajax-example-on-hand-you-never-know/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=i-always-like-to-have-a-nice-simple-ajax-example-on-hand-you-never-know</link>
		<comments>http://alexyz.com/i-always-like-to-have-a-nice-simple-ajax-example-on-hand-you-never-know/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 04:52:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://alexyz.com/?p=409</guid>
		<description><![CDATA[reference: http://w3schools.com/php/php_ajax_php.asp HTML: &#60;html&#62; &#60;head&#62; &#60;script type=&#8221;text/javascript&#8221;&#62; function showHint(str) { if (str.length==0) { document.getElementById(&#8220;txtHint&#8221;).innerHTML=&#8221;"; return; } if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject(&#8220;Microsoft.XMLHTTP&#8221;); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 &#38;&#38; xmlhttp.status==200) { document.getElementById(&#8220;txtHint&#8221;).innerHTML=xmlhttp.responseText; } } xmlhttp.open(&#8220;GET&#8221;,&#8221;gethint.php?q=&#8221;+str,true); xmlhttp.send(); } &#60;/script&#62; &#60;/head &#60;body&#62; &#60;p&#62;&#60;b&#62;Start [...]]]></description>
			<content:encoded><![CDATA[<p><strong>reference:</strong></p>
<p><a href="http://w3schools.com/php/php_ajax_php.asp">http://w3schools.com/php/php_ajax_php.asp</a></p>
<p><strong>HTML:</strong></p>
<p>&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
function showHint(str)<br />
{<br />
if (str.length==0)<br />
{<br />
document.getElementById(&#8220;txtHint&#8221;).innerHTML=&#8221;";<br />
return;<br />
}<br />
if (window.XMLHttpRequest)<br />
{// code for IE7+, Firefox, Chrome, Opera, Safari<br />
xmlhttp=new XMLHttpRequest();<br />
}<br />
else<br />
{// code for IE6, IE5<br />
xmlhttp=new ActiveXObject(&#8220;Microsoft.XMLHTTP&#8221;);<br />
}<br />
xmlhttp.onreadystatechange=function()<br />
{<br />
if (xmlhttp.readyState==4 &amp;&amp; xmlhttp.status==200)<br />
{<br />
document.getElementById(&#8220;txtHint&#8221;).innerHTML=xmlhttp.responseText;<br />
}<br />
}<br />
xmlhttp.open(&#8220;GET&#8221;,&#8221;gethint.php?q=&#8221;+str,true);<br />
xmlhttp.send();<br />
}<br />
&lt;/script&gt;<br />
&lt;/head<br />
&lt;body&gt;</p>
<p>&lt;p&gt;&lt;b&gt;Start typing a name in the input field below:&lt;/b&gt;&lt;/p&gt;<br />
&lt;form&gt;<br />
First name: &lt;input type=&#8221;text&#8221; onkeyup=&#8221;showHint(this.value)&#8221; size=&#8221;20&#8243; /&gt;<br />
&lt;/form&gt;<br />
&lt;p&gt;Suggestions: &lt;span id=&#8221;txtHint&#8221;&gt;&lt;/span&gt;&lt;/p&gt;</p>
<p>&lt;/body&gt;<br />
&lt;/html&gt;</p>
<p><strong>Script:</strong></p>
<p><span style="color: #ff0000;">&lt;?php<br />
// Fill up array with names<br />
$a[]=&#8221;Anna&#8221;;<br />
$a[]=&#8221;Brittany&#8221;;<br />
$a[]=&#8221;Cinderella&#8221;;<br />
$a[]=&#8221;Diana&#8221;;<br />
$a[]=&#8221;Eva&#8221;;<br />
$a[]=&#8221;Fiona&#8221;;<br />
$a[]=&#8221;Gunda&#8221;;<br />
$a[]=&#8221;Hege&#8221;;<br />
$a[]=&#8221;Inga&#8221;;<br />
$a[]=&#8221;Johanna&#8221;;<br />
$a[]=&#8221;Kitty&#8221;;<br />
$a[]=&#8221;Linda&#8221;;<br />
$a[]=&#8221;Nina&#8221;;<br />
$a[]=&#8221;Ophelia&#8221;;<br />
$a[]=&#8221;Petunia&#8221;;<br />
$a[]=&#8221;Amanda&#8221;;<br />
$a[]=&#8221;Raquel&#8221;;<br />
$a[]=&#8221;Cindy&#8221;;<br />
$a[]=&#8221;Doris&#8221;;<br />
$a[]=&#8221;Eve&#8221;;<br />
$a[]=&#8221;Evita&#8221;;<br />
$a[]=&#8221;Sunniva&#8221;;<br />
$a[]=&#8221;Tove&#8221;;<br />
$a[]=&#8221;Unni&#8221;;<br />
$a[]=&#8221;Violet&#8221;;<br />
$a[]=&#8221;Liza&#8221;;<br />
$a[]=&#8221;Elizabeth&#8221;;<br />
$a[]=&#8221;Ellen&#8221;;<br />
$a[]=&#8221;Wenche&#8221;;<br />
$a[]=&#8221;Vicky&#8221;;</p>
<p>//get the q parameter from URL<br />
$q=$_GET["q"];</p>
<p>//lookup all hints from array if length of q&gt;0<br />
if (strlen($q) &gt; 0)<br />
{<br />
$hint=&#8221;";<br />
for($i=0; $i&lt;count($a); $i++)<br />
{<br />
if (strtolower($q)==strtolower(substr($a[$i],0,strlen($q))))<br />
{<br />
if ($hint==&#8221;")<br />
{<br />
$hint=$a[$i];<br />
}<br />
else<br />
{<br />
$hint=$hint.&#8221; , &#8220;.$a[$i];<br />
}<br />
}<br />
}<br />
}</p>
<p>// Set output to &#8220;no suggestion&#8221; if no hint were found<br />
// or to the correct values<br />
if ($hint == &#8220;&#8221;)<br />
{<br />
$response=&#8221;no suggestion&#8221;;<br />
}<br />
else<br />
{<br />
$response=$hint;<br />
}</p>
<p>//output the response<br />
echo $response;<br />
?&gt;</span></p>
]]></content:encoded>
			<wfw:commentRss>http://alexyz.com/i-always-like-to-have-a-nice-simple-ajax-example-on-hand-you-never-know/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery bind select change to anchor window.open variable</title>
		<link>http://alexyz.com/php-file-force-download-ie7-fix-whole-file-jquery-select-change-solution/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=php-file-force-download-ie7-fix-whole-file-jquery-select-change-solution</link>
		<comments>http://alexyz.com/php-file-force-download-ie7-fix-whole-file-jquery-select-change-solution/#comments</comments>
		<pubDate>Thu, 29 Apr 2010 23:50:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://alexyz.com/?p=335</guid>
		<description><![CDATA[add window.open() to an anchor tag&#8230; HTML: select dropdown changes the source: &#60;div class=&#8221;name&#8221;&#62; &#60;select name=&#8221;tpom&#8221; style=&#8221;float: left; width: 100px; margin-right:20px; border: 1px solid #5A3C18;&#8221; &#62; &#60;option value=&#8221;downloader.php?file=folder/file.mp3&#8243;&#62;Mp3&#60;/option&#62; &#60;option value=&#8221;downloader.php?file=folder/file.zip&#8221;&#62;Zip&#60;/option&#62; &#60;option value=&#8221;downloader.php?file=folder/file.m4b&#8221;&#62;Ipod&#60;/option&#62; &#60;/select&#62; link or button gets source from dropdown via jQuery onReady function: $(&#8220;div.name select&#8221;).bind(&#8220;change&#8221;,function(){ $(&#8216;#button_download&#8217;).attr(&#8216;href&#8217;,this.value); windowUrl = $(this).val(); //console.log(windowUrl); }); &#60;a onclick=&#8221;window.open(windowUrl,&#8217;download&#8217;);return false;&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>add window.open() to an anchor tag&#8230;</p>
<p>HTML:</p>
<p>select dropdown changes the source:</p>
<p>&lt;div class=&#8221;name&#8221;&gt;<br />
&lt;select name=&#8221;tpom&#8221; style=&#8221;float: left; width: 100px; margin-right:20px; border: 1px solid #5A3C18;&#8221; &gt;<br />
&lt;option value=&#8221;downloader.php?file=folder/file.mp3&#8243;&gt;Mp3&lt;/option&gt;<br />
&lt;option value=&#8221;downloader.php?file=folder/file.zip&#8221;&gt;Zip&lt;/option&gt;<br />
&lt;option value=&#8221;downloader.php?file=folder/file.m4b&#8221;&gt;Ipod&lt;/option&gt;<br />
&lt;/select&gt;</p>
<p>link or button gets source from dropdown via jQuery onReady function:</p>
<p>$(&#8220;div.name select&#8221;).bind(&#8220;change&#8221;,function(){<br />
$(&#8216;#button_download&#8217;).attr(&#8216;href&#8217;,this.value);<br />
windowUrl = $(this).val();<br />
//console.log(windowUrl);<br />
});</p>
<p>&lt;a onclick=&#8221;window.open(windowUrl,&#8217;download&#8217;);return false;&#8221; id=&#8221;button_download&#8221;&gt;Download&lt;/a&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://alexyz.com/php-file-force-download-ie7-fix-whole-file-jquery-select-change-solution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>meta no archive tag</title>
		<link>http://alexyz.com/meta-no-archive-tag/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=meta-no-archive-tag</link>
		<comments>http://alexyz.com/meta-no-archive-tag/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 17:00:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://alexyz.com/?p=324</guid>
		<description><![CDATA[&#60;META content=&#8221;noarchive&#8221; NAME=&#8221;robots&#8221;&#62;]]></description>
			<content:encoded><![CDATA[<p>&lt;META content=&#8221;noarchive&#8221; NAME=&#8221;robots&#8221;&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://alexyz.com/meta-no-archive-tag/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML form field readonly and disable</title>
		<link>http://alexyz.com/html-form-field-readonly-and-disable/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=html-form-field-readonly-and-disable</link>
		<comments>http://alexyz.com/html-form-field-readonly-and-disable/#comments</comments>
		<pubDate>Thu, 22 Apr 2010 23:26:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://alexyz.com/?p=308</guid>
		<description><![CDATA[&#60;input type=&#8221;text&#8221; readonly=&#8221;readonly&#8221; &#8230;. /&#62; and equally useful &#60;input type=&#8221;text&#8221; disabled=&#8217;disabled&#8217; &#8230;/&#62;]]></description>
			<content:encoded><![CDATA[<p>&lt;input type=&#8221;text&#8221; readonly=&#8221;readonly&#8221; &#8230;. /&gt;</p>
<p>and equally useful</p>
<p>&lt;input type=&#8221;text&#8221; disabled=&#8217;disabled&#8217; &#8230;/&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://alexyz.com/html-form-field-readonly-and-disable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Javascript HTML form field onFocus onBlur</title>
		<link>http://alexyz.com/javascript-html-form-field-onfocus-onblur/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=javascript-html-form-field-onfocus-onblur</link>
		<comments>http://alexyz.com/javascript-html-form-field-onfocus-onblur/#comments</comments>
		<pubDate>Tue, 13 Apr 2010 17:16:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://alexyz.com/?p=274</guid>
		<description><![CDATA[&#60;input name=&#8221;email&#8221; id=&#8221;email&#8221; type=&#8221;text&#8221; value=&#8221;Email&#8221; onFocus=&#8221;if(this.value == &#8216;Email&#8217;) this.value = &#8221;;&#8221; onBlur=&#8221;if(this.value == &#8221;) this.value = &#8216;Email&#8217;;&#8221;/&#62;]]></description>
			<content:encoded><![CDATA[<p>&lt;input name=&#8221;email&#8221; id=&#8221;email&#8221; type=&#8221;text&#8221; value=&#8221;Email&#8221; <span style="color: #ff00ff;">onFocus=&#8221;if(this.value == &#8216;Email&#8217;) this.value = &#8221;;&#8221; onBlur=&#8221;if(this.value == &#8221;) this.value = &#8216;Email&#8217;;&#8221;</span>/&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://alexyz.com/javascript-html-form-field-onfocus-onblur/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Semantic value: ul li, ol li vs. dl dt dd</title>
		<link>http://alexyz.com/semantic-value-ul-li-ol-li-vs-dl-dt-dd/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=semantic-value-ul-li-ol-li-vs-dl-dt-dd</link>
		<comments>http://alexyz.com/semantic-value-ul-li-ol-li-vs-dl-dt-dd/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 12:58:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://alexyz.com/?p=72</guid>
		<description><![CDATA[&#60;dl&#62; &#60;dt&#62;Name: &#60;/dt&#62; &#60;dd&#62;John Don&#60;/dd&#62; &#60;dt&#62;Age: &#60;/dt&#62; &#60;dd&#62;64&#60;/dd&#62; &#60;dt&#62;Gender: &#60;/dt&#62; &#60;dd&#62;Male&#60;/dd&#62; &#60;dt&#62;Day of Birth:&#60;/dt&#62; &#60;dd&#62;12th May 1946&#60;/dd&#62; &#60;/dl&#62; VS. Unordered lists Use a &#60;ul&#62; tag where the order of items is not significant. Ordered lists Use an &#60;ol&#62; tag where the order of items is significant, e.g. listing events in time order, or race results]]></description>
			<content:encoded><![CDATA[<dl>
<dt>
<pre>&lt;dl&gt;</pre>
</dt>
<dt>
<pre style="padding-left: 30px;">&lt;dt&gt;Name: &lt;/dt&gt;
&lt;dd&gt;John Don&lt;/dd&gt;

&lt;dt&gt;Age: &lt;/dt&gt;
&lt;dd&gt;64&lt;/dd&gt;

&lt;dt&gt;Gender: &lt;/dt&gt;
&lt;dd&gt;Male&lt;/dd&gt;

&lt;dt&gt;Day of Birth:&lt;/dt&gt;
&lt;dd&gt;12th May 1946&lt;/dd&gt;</pre>
</dt>
<dt>
<pre>&lt;/dl&gt;</pre>
</dt>
<dt>
<pre><strong>VS.</strong></pre>
</dt>
<dt>Unordered lists </dt>
<dd>Use a <a href="http://www.webdesignfromscratch.com/html-tag-reference/html-unordered-list-ul-tag.php">&lt;ul&gt;</a> tag where the order of items is not  significant.</dd>
<dt>Ordered lists </dt>
<dd>Use an <a href="http://www.webdesignfromscratch.com/html-tag-reference/html-ordered-list-ol-tag.php">&lt;ol&gt;</a> tag where the order of items is  significant, e.g. listing events in time order, or race results</dd>
</dl>
]]></content:encoded>
			<wfw:commentRss>http://alexyz.com/semantic-value-ul-li-ol-li-vs-dl-dt-dd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML Meta redirect 301 forward</title>
		<link>http://alexyz.com/html-meta-redirect-301-forward/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=html-meta-redirect-301-forward</link>
		<comments>http://alexyz.com/html-meta-redirect-301-forward/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 04:42:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://alexyz.com/?p=50</guid>
		<description><![CDATA[&#60;html&#62; &#60;head&#62; &#60;meta http-equiv=&#8221;refresh&#8221; content=&#8221;0;url=http://www.google.com&#8221;&#62; &#60;/head&#62; &#60;body&#62; &#60;a href=&#8221;http://www.google.com&#8221;&#62;This page has moved&#60;/a&#62; &#60;/body&#62; &#60;/html&#62;]]></description>
			<content:encoded><![CDATA[<p>&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;meta http-equiv=&#8221;refresh&#8221; content=&#8221;0;url=http://www.google.com&#8221;&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;a href=&#8221;http://www.google.com&#8221;&gt;This page has moved&lt;/a&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://alexyz.com/html-meta-redirect-301-forward/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

