<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-27073825</id><updated>2024-11-05T20:46:46.466-06:00</updated><category term="disabled"/><category term="html"/><category term="readonly"/><category term="select"/><title type='text'>Achuzan Tech</title><subtitle type='html'>Web technologies and other tech I find.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://achuzan.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27073825/posts/default?alt=atom'/><link rel='alternate' type='text/html' href='http://achuzan.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Achuzan</name><uri>http://www.blogger.com/profile/00972858757248580008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-27073825.post-6739143672764421818</id><published>2011-04-22T22:41:00.001-05:00</published><updated>2011-04-25T07:39:29.526-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="disabled"/><category scheme="http://www.blogger.com/atom/ns#" term="html"/><category scheme="http://www.blogger.com/atom/ns#" term="readonly"/><category scheme="http://www.blogger.com/atom/ns#" term="select"/><title type='text'>Once and for All How to Make a Dropdown Read Only and Still Get the Value From it</title><content type='html'>If you are a web programmer one of the most annoying things you have probably run&amp;nbsp;across is the inability to make a dropdown (HTML Select tag) box read only. And another thing you don&#39;t like is reading some long post that really doesn&#39;t help you solve the issue you are trying to solve. So without taking anymore of your time, here is the code.&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; function DisableField(fld){ &lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var origfld = document.getElementById(fld);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var hidfld = document.createElement(&quot;input&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;hidfld.setAttribute(&quot;type&quot;, &quot;hidden&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;hidfld.setAttribute(&quot;name&quot;, origfld.name);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;hidfld.setAttribute(&quot;id&quot;, origfld.id);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;hidfld.setAttribute(&quot;value&quot;, origfld.value);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;origfld.id = fld + &#39;_disabled&#39;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;origfld.name = fld + &#39;_disabled&#39;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;origfld.disabled = true;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;document.getElementById(&quot;PageForm&quot;).appendChild(hidfld);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;form id=&quot;PageForm&quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;select name=&quot;Shop&quot; id=&quot;Shop&quot; &amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;option &amp;gt;Select Shop&amp;lt;/option&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;option &amp;gt;Shop1&amp;lt;/option&amp;gt;&lt;br /&gt;
&amp;lt;/select&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- This has to go below the select field --&amp;gt;&lt;br /&gt;
&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;DisableField(&#39;Shop&#39;);&amp;lt;/script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/form&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So what it does in short is you send it a field name and it renames the field and then creates a hidden field with the name and ID of the original field. So what you get is a disabled dropdown and a hidden field that contains the original value.</content><link rel='replies' type='application/atom+xml' href='http://achuzan.blogspot.com/feeds/6739143672764421818/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/27073825/6739143672764421818' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27073825/posts/default/6739143672764421818'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27073825/posts/default/6739143672764421818'/><link rel='alternate' type='text/html' href='http://achuzan.blogspot.com/2011/04/once-and-for-all-how-to-make-dropdown.html' title='Once and for All How to Make a Dropdown Read Only and Still Get the Value From it'/><author><name>Achuzan</name><uri>http://www.blogger.com/profile/00972858757248580008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-27073825.post-8615046597652350935</id><published>2011-03-10T21:39:00.002-06:00</published><updated>2011-03-11T14:19:31.708-06:00</updated><title type='text'>The Underestimated Comment</title><content type='html'>As a programmer I am as guilty as the next guy about not commenting my code. But it really is an important&amp;nbsp;ingredient&amp;nbsp;in any piece of code. I have gone back into code I wrote a couple years ago ... eh who am I kidding even a couple months ago, and looked at the code and thought, &quot;what was I doing that for?&quot;. I have also on&amp;nbsp;numerous&amp;nbsp;occasions&amp;nbsp;had the&amp;nbsp;opportunity&amp;nbsp;to trouble shoot someone&amp;nbsp;else&#39;s&amp;nbsp;code, and let me tell you how much easier it is when it is well documented with comments in the code. So today I wanted to share with you just how to comment in several programming languages.&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;b&gt;How to Comment in C#&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #38761d;&quot;&gt;// This is a comment in C# code&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #38761d;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: black;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #38761d;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #38761d;&quot;&gt;/* This is also a comment in C#&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;color: black;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #38761d;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; It can be used for comment multiple lines */&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;b&gt;How to Comment in VB&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #38761d;&quot;&gt;&#39; This is a comment in VB&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;b&gt;How to Comment in CSS&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #38761d;&quot;&gt;/* This is a comment in CSS */&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;b&gt;How to Comment in Javascript&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #38761d;&quot;&gt;// This is a comment in Javascript&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;b&gt;How to Comment in HTML&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #38761d;&quot;&gt;&amp;lt;!-- This is a comment in HTML --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;b&gt;How to Comment in Perl&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #38761d;&quot;&gt;# This is a comment in Perl&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;b&gt;How to Comment in PHP&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #38761d;&quot;&gt;// This is a comment in PHP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #38761d;&quot;&gt;/* This is also a comment in PHP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; It can be used for comment multiple lines */&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;b&gt;How to Comment in XML&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #38761d;&quot;&gt;&amp;lt;!-- This is a comment in XML --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;b&gt;How to Comment in ASP (pre .Net)&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #38761d;&quot;&gt;&#39; This is a comment in ASP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://achuzan.blogspot.com/feeds/8615046597652350935/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/27073825/8615046597652350935' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27073825/posts/default/8615046597652350935'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27073825/posts/default/8615046597652350935'/><link rel='alternate' type='text/html' href='http://achuzan.blogspot.com/2011/03/underestimated-comment.html' title='The Underestimated Comment'/><author><name>Achuzan</name><uri>http://www.blogger.com/profile/00972858757248580008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-27073825.post-2045799774910760512</id><published>2011-02-23T13:24:00.001-06:00</published><updated>2011-02-23T13:27:35.563-06:00</updated><title type='text'>Stripping Tags From a Webpage</title><content type='html'>Ever need to take a beautifully formed webpage and strip out all the tags and junk to just see the text?&lt;br /&gt;
&lt;div&gt;It is really pretty easy with the PHP strip_tags() function. The only catch is that when all the tags are removed, it leaves a pile of attributes. Which if you just need to strip out the text from a simple XML doc or something pretty basic it works great.&amp;nbsp;&lt;/div&gt;&lt;div&gt;Here is the code. Just name the file justtext.php and have all the fun you can stand.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;i&gt;&amp;lt;?php&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;if (!isset($_POST[&quot;url&quot;]))&lt;/i&gt;&lt;i&gt;{&lt;/i&gt;&lt;i&gt;&amp;nbsp;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;echo &quot;Enter URL: &amp;lt;form method=&#39;post&#39; action=&#39;justtext.php&#39;&amp;gt;&amp;lt;input type=&#39;text&#39; name=&#39;url&#39;&amp;gt;&amp;lt;input type=&#39;submit&#39; value=&#39;submit&#39;&amp;gt;&amp;lt;/form&amp;gt; &quot;;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;/i&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;/i&gt;&lt;i&gt;else{&lt;/i&gt;&lt;i&gt;echo strip_tags(file_get_contents($_POST[&quot;url&quot;] ));&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;/i&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;/i&gt;&lt;i&gt;?&amp;gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://achuzan.blogspot.com/feeds/2045799774910760512/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/27073825/2045799774910760512' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27073825/posts/default/2045799774910760512'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27073825/posts/default/2045799774910760512'/><link rel='alternate' type='text/html' href='http://achuzan.blogspot.com/2011/02/stripping-tags-from-webpage.html' title='Stripping Tags From a Webpage'/><author><name>Achuzan</name><uri>http://www.blogger.com/profile/00972858757248580008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-27073825.post-8013189601061853437</id><published>2011-02-22T19:46:00.001-06:00</published><updated>2011-02-22T19:46:03.903-06:00</updated><title type='text'>iPhone Blogging</title><content type='html'>I am writing this from my iPhone using an app called Blogspace. It is a free app and seems to have nice features. Like the ability to monitor multiple blogger blogs. Which brings me to the possible downside. I believe it only works with Blogger/Blogspot. So far I am enjoying the ability to blog on the go, if I ever get the urge too. Anyway if you have a Blogger/Blogspot blog and want to blog from your iPhone, you should give Blogspace a try, you can find it in the app store. </content><link rel='replies' type='application/atom+xml' href='http://achuzan.blogspot.com/feeds/8013189601061853437/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/27073825/8013189601061853437' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27073825/posts/default/8013189601061853437'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27073825/posts/default/8013189601061853437'/><link rel='alternate' type='text/html' href='http://achuzan.blogspot.com/2011/02/iphone-blogging.html' title='iPhone Blogging'/><author><name>Achuzan</name><uri>http://www.blogger.com/profile/00972858757248580008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-27073825.post-2050598923044339721</id><published>2011-02-21T19:41:00.005-06:00</published><updated>2011-02-21T20:12:54.537-06:00</updated><title type='text'>Woopra - Real Time Analytics</title><content type='html'>So last week I said good bye to Joomla and hello to Wordpress for our church&#39;s website.(&lt;a href=&quot;http://www.boonvilleworshipcenter.org&quot;&gt;www.boonvilleworshipcenter.org&lt;/a&gt;). I really like Wordpress as a content management system. It is a lot simpler than Joomla and more light-weight. I did have to tweak a few things to meet my needs, like making my posts page the listen to sermons page and customizing the template. But overall I really like it. &lt;div&gt;But that&#39;s really not what I want to tell you about. After setting up the new site I decided I needed to run some analytics. I set up Google analytics and am happy with it, but wanted something a little more real time. So I visited my close friend Google and came across &lt;a href=&quot;http://www.woopra.com/&quot;&gt;http://www.woopra.com&lt;/a&gt;. Woopra is real time analytics that has some really cool features. You can log into their site and see live who is on your website. There are the basics like visitors, where they go and how they got to your site. But it is really cool to watch a visitor to your site go from page to page. Then there is the live chat feature. You can start a chat session with someone on your site and ask if they need help. They also have a Wordpress plugin, desktop app and an iPhone app. The best feature of Woopra is that it is free, at least for the first 30,000 hit per month. &lt;/div&gt;&lt;div&gt;If you are looking for a really nice real time analytics for your website you should check out Woopra. &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://achuzan.blogspot.com/feeds/2050598923044339721/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/27073825/2050598923044339721' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27073825/posts/default/2050598923044339721'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27073825/posts/default/2050598923044339721'/><link rel='alternate' type='text/html' href='http://achuzan.blogspot.com/2011/02/woopra-real-time-analytics.html' title='Woopra - Real Time Analytics'/><author><name>Achuzan</name><uri>http://www.blogger.com/profile/00972858757248580008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>