<?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>Code Program</title>
	<atom:link href="http://www.codeprogram.net/feed" rel="self" type="application/rss+xml" />
	<link>http://www.codeprogram.net</link>
	<description>we code web layouts</description>
	<lastBuildDate>Fri, 15 Apr 2011 12:01:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>Regular Expression Search in Dreamweaver</title>
		<link>http://www.codeprogram.net/regular-expression-search-in-dreamweaver.html</link>
		<comments>http://www.codeprogram.net/regular-expression-search-in-dreamweaver.html#comments</comments>
		<pubDate>Thu, 27 Aug 2009 13:23:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Designing]]></category>
		<category><![CDATA[dreamweaver]]></category>
		<category><![CDATA[wild characters]]></category>

		<guid isPermaLink="false">http://www.codeprogram.net/?p=32</guid>
		<description><![CDATA[During working on any static site or existing site a lot of times we face a problem that there should be search using wild characters or regular expressions. For example I have a site at my local where a lot of links: &#60;a href=&#8221;../category/article-title-keyword1.html&#8221;&#62; We need to search all links which are in this category [...]]]></description>
			<content:encoded><![CDATA[<p>During working on any static site or existing site a lot of times we face a problem that there should be search using wild characters or regular expressions.</p>
<p>For example I have a site at my local where a lot of links:</p>
<p>&lt;a href=&#8221;../category/article-title-keyword1.html&#8221;&gt;</p>
<p>We need to search all links which are in this category and need to change them in category2.</p>
<p>We usually does that manually i.e. we search /category/ and replace it with /category2/.</p>
<p>There is also another good method using regular expression.</p>
<p>In search box put in find box:</p>
<p>href=&#8221;../category/([^&lt;]*)&#8221;&gt;</p>
<p>and in replace box put:</p>
<p>href=&#8221;../category2/$1&#8243;&gt;</p>
<p>Check box of &#8220;Use Regular Expressions&#8221; should be checked.</p>
<p>If you want to change in whole site than select that option. We prefer to check first in current page so that you can undo if there is something going wrong.</p>
<p><a href="http://www.codeprogram.net/wp-content/uploads/2009/08/dreamweaver-regular-express.png"><img class="size-full wp-image-33 alignnone" title="dreamweaver-regular-express" src="http://www.codeprogram.net/wp-content/uploads/2009/08/dreamweaver-regular-express.png" alt="dreamweaver-regular-express" width="448" height="191" /></a></p>
<p>Explanation: ([^&lt;]*) is like a variable. You can use more variables but you should separate them properly in search query. We can put variable value in replace box with $1, $2 etc.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codeprogram.net/regular-expression-search-in-dreamweaver.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Working CSS Hack for Safari and Chrome</title>
		<link>http://www.codeprogram.net/working-css-hack-for-safari-and-chrome.html</link>
		<comments>http://www.codeprogram.net/working-css-hack-for-safari-and-chrome.html#comments</comments>
		<pubDate>Wed, 08 Jul 2009 12:26:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web Designing]]></category>

		<guid isPermaLink="false">http://www.codeprogram.net/?p=29</guid>
		<description><![CDATA[CSS Hack for safari and chrome.]]></description>
			<content:encoded><![CDATA[<p>I need code to set the right padding of the element in all browsers and then reset it in Safari 3.0 and Chrome. I tried hack for safari and chrome.</p>
<p><strong>Example:</strong> Put pound sign ( # ) after a semi-colon ( ; )</p>
<p><code>#mainNav li { margin:0 26px 0 0; }<br />
#mainNav li { margin:0 26px 0 0; #} /* -- for all non Safari browsers  -- */</code></p>
<p>But It does not worked with me as because of higher version of browsers. It does not work after Safari 3.0 Version.<br />
Then I try new and working hack for this problem. It worked with me.</p>
<p><code>@media screen and (-webkit-min-device-pixel-ratio:0) {<br />
/* Safari 3.0 and Chrome rules here */<br />
}</code></p>
<p>The above code targets both Safari 3.0 and Google&#8217;s Chrome. Hopefully, it will be a future-proof hack, since the -webkit part of the selector will probably not be adopted by other browsers.</p>
<p><strong>Example:</strong></p>
<p><code>#mainNav li { margin:0 34px 0 0; }</p>
<p>@media screen and (-webkit-min-device-pixel-ratio:0) {	/* hacked for chrome and safari */<br />
#mainNav li { margin:0 26px 0 0; }<br />
}</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.codeprogram.net/working-css-hack-for-safari-and-chrome.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Form Submit issue with Image Button</title>
		<link>http://www.codeprogram.net/form-submit-issue-with-image-button.html</link>
		<comments>http://www.codeprogram.net/form-submit-issue-with-image-button.html#comments</comments>
		<pubDate>Sun, 05 Apr 2009 07:04:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Designing]]></category>

		<guid isPermaLink="false">http://www.codeprogram.net/?p=16</guid>
		<description><![CDATA[I have an html form in which submit and reset buttons are images. Reset button is using JavaScript to reset all the input fields to the default value. But when I press enter in any field than form submits by default. But before that the reset button also fires the JavaScript function and reset all [...]]]></description>
			<content:encoded><![CDATA[<p>I have an html form in which submit and reset buttons are images. Reset button is using JavaScript to reset all the input fields to the default value. But when I press enter in any field than form submits by default. But before that the reset button also fires the JavaScript function and reset all the fields. How I can stop the reset button function before submitting the form. Here is the code i am using:</p>
<p><code>&lt;form action=""&gt;</p>
<p>&lt;label&gt;Name&lt;/label&gt;</p>
<p>&lt;p&gt;</p>
<p>&lt;input /&gt;</p>
<p>&lt;/p&gt;</p>
<p>&lt;label&gt;Address&lt;/label&gt;</p>
<p>&lt;p&gt;</p>
<p>&lt;textarea&gt;&lt;/textarea&gt;</p>
<p>&lt;/p&gt;</p>
<p>&lt;p&gt;</p>
<p>&lt;label&gt;Phone&lt;/label&gt;</p>
<p>&lt;input /&gt;</p>
<p>&lt;/p&gt;</p>
<p>&lt;p&gt;</p>
<p>&lt;input src="submit.gif" alt="Submit" /&gt;</p>
<p>&lt;input src="reset.gif" alt="Reset" /&gt;</p>
<p>&lt;/form&gt;</code></p>
<p>In the above page the gif buttons are only working visually. Form is submitting only due to its default behavior, when you enter in any input field. Form is submitting from both the buttons if you don&#8217;t put the JavaScript code to reset the form. But why reset code is also running while submitting the form?</p>
<p>I think you have to write code in JavaScript to submit like as to reset the form.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codeprogram.net/form-submit-issue-with-image-button.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash overlaps dropdown menu div layers</title>
		<link>http://www.codeprogram.net/flash-overlaps-dropdown-menu-div-layers.html</link>
		<comments>http://www.codeprogram.net/flash-overlaps-dropdown-menu-div-layers.html#comments</comments>
		<pubDate>Sun, 22 Mar 2009 19:15:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web Designing]]></category>

		<guid isPermaLink="false">http://www.codeprogram.net/?p=18</guid>
		<description><![CDATA[In all browsers my drop down menus goes below the heading flash file. I can&#8217;t make them in IFrame. I want to make drop down menu layers on top of flash file. I get to know that Flash file has higher priority than layers so it comes on top of the layers. You can publish [...]]]></description>
			<content:encoded><![CDATA[<p>In all browsers my drop down menus goes below the heading flash file. I can&#8217;t make them in IFrame. I want to make drop down menu layers on top of flash file.<br />
I get to know that Flash file has higher priority than layers so it comes on top of the layers. You can publish it for HTML with WMODE settings and select transparent for it.</p>
<p>As in Flash Menu: File&gt;Publish&gt;HTML Tab -select WMODE to transparent.</p>
<p>It works fine with me on all browsers.<br />
You can also change in html code to make it transparent.</p>
<p>1 add the following to the object tag:<br />
<code>&lt;param value="transparent"&gt;</code></p>
<p>2 add the following parameter to the EMBED tag:<br />
wmode=&#8221;transparent&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codeprogram.net/flash-overlaps-dropdown-menu-div-layers.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove extra Tags from Database Records</title>
		<link>http://www.codeprogram.net/remove-extra-tags-from-database-records.html</link>
		<comments>http://www.codeprogram.net/remove-extra-tags-from-database-records.html#comments</comments>
		<pubDate>Thu, 19 Mar 2009 06:11:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.codeprogram.net/?p=9</guid>
		<description><![CDATA[In my database I have many records in which there are html tags and html comments. When I pick description of that data I sometimes got broken html tags as I pick limited characters from that record. I tried strip_tags function and get rid of problem up to some extent. &#60;?php $text = '&#60;p&#62;Test content [...]]]></description>
			<content:encoded><![CDATA[<p>In my database I have many records in which there are html tags and html comments. When I pick description of that data I sometimes got broken html tags as I pick limited characters from that record.</p>
<p>I tried strip_tags function and get rid of problem up to some extent.</p>
<p><code>&lt;?php</p>
<p>$text = '&lt;p&gt;Test content will go here.&lt;/p&gt;&lt;!-- Comment --&gt; &lt;a href="#"&gt;Other text&lt;/a&gt;';</p>
<p>echo strip_tags($text);</p>
<p>//output will be "Test content will go here. Other text"</p>
<p>// and to Allow &lt;p&gt; and &lt;a&gt;</p>
<p>echo strip_tags($text, '&lt;p&gt;&lt;a&gt;');</p>
<p>//output will be "&lt;p&gt;Test content will go here.&lt;/p&gt; &lt;a href="#"&gt;Other text&lt;/a&gt;"</p>
<p>?&gt;</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.codeprogram.net/remove-extra-tags-from-database-records.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Padding and Margin issue in ie 6</title>
		<link>http://www.codeprogram.net/padding-and-margin-issue-in-ie-6.html</link>
		<comments>http://www.codeprogram.net/padding-and-margin-issue-in-ie-6.html#comments</comments>
		<pubDate>Fri, 06 Feb 2009 18:29:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Designing]]></category>

		<guid isPermaLink="false">http://www.codeprogram.net/?p=22</guid>
		<description><![CDATA[I was getting an error of double padding in ie6. As I have put padding in parent container. In ie6 it is taking padding of double pixels. For that I got some CSS hacks: For Internet Explorer 6: padding:2px; _padding:0px; But by using hacks html page doesn&#8217;t remain compatible with W3C standards. The solution for [...]]]></description>
			<content:encoded><![CDATA[<p>I was getting an error of double padding in ie6. As I have put padding in parent container. In ie6 it is taking padding of double pixels. For that I got some CSS hacks:</p>
<p>For Internet Explorer 6:<br />
padding:2px;<br />
_padding:0px;</p>
<p>But by using hacks html page doesn&#8217;t remain compatible with W3C standards.</p>
<p>The solution for that is using separate CSS for different browsers or structuring your HTML Code in different way. I rework on my code and get rid of the problem with W3C standards.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codeprogram.net/padding-and-margin-issue-in-ie-6.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Difference Between ISP Server and Web Mail Server</title>
		<link>http://www.codeprogram.net/difference-between-isp-server-and-web-mail-server.html</link>
		<comments>http://www.codeprogram.net/difference-between-isp-server-and-web-mail-server.html#comments</comments>
		<pubDate>Fri, 09 Jan 2009 10:46:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hardware Networking]]></category>

		<guid isPermaLink="false">http://www.codeprogram.net/?p=3</guid>
		<description><![CDATA[ISP stands for Internet Service Provider as you want mails for your website that will come through mail server that can be different from web server web server is used to run your website with www.yourname.com as you want to make a website and put some pages as like website than you have to take [...]]]></description>
			<content:encoded><![CDATA[<p>ISP stands for Internet Service Provider</p>
<p>as you want mails for your website that will come through mail server that can be different from web server<br />
web server is used to run your website with www.yourname.com</p>
<p>as you want to make a website and put some pages as like website than you have to take webserver,<br />
and if you also want to get mails from that website than you have to take mail server</p>
<p>Eg. as you want to run www.yourname.com than you have to take webserver<br />
and if you want to take email accounts too like you@yourname.com than you also have to take mail server.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codeprogram.net/difference-between-isp-server-and-web-mail-server.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

