<?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>Scneeble</title>
	<atom:link href="http://www.scneeble.com/index.php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scneeble.com</link>
	<description>code, coding, coded</description>
	<lastBuildDate>Tue, 30 Aug 2011 13:40:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>StripHTML with ASP RegEx</title>
		<link>http://www.scneeble.com/index.php/2011/08/StripHTML-with-ASP-RegEx/</link>
		<comments>http://www.scneeble.com/index.php/2011/08/StripHTML-with-ASP-RegEx/#comments</comments>
		<pubDate>Mon, 29 Aug 2011 01:51:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Classic asp]]></category>
		<category><![CDATA[ASP]]></category>
		<category><![CDATA[RegEx]]></category>
		<category><![CDATA[StripHTML]]></category>

		<guid isPermaLink="false">http://www.scneeble.com/?p=5</guid>
		<description><![CDATA[The following function will strip all html tags from a text. Can be usefull for a lot of things where [...]]]></description>
			<content:encoded><![CDATA[<p>The following function will strip all html tags from a text. Can be usefull for a lot of things where you don´t want any html code to screw up the design. Found it somewhere on the internet a few years back, very usefull!</p>
<blockquote><p><span style="color: #99cc00;">Function StripHTML(ByRef asHTML)</span><br />
<span style="color: #99cc00;"> Dim loRegExp &#8216; Regular Expression Object</span></p>
<p><span style="color: #99cc00;"> &#8216; Create built In Regular Expression object</span><br />
<span style="color: #99cc00;"> Set loRegExp = New RegExp</span><br />
<span style="color: #99cc00;"> loRegExp.Global = True</span><br />
<span style="color: #99cc00;"> &#8216; Set the pattern To look For HTML tags</span><br />
<span style="color: #99cc00;"> loRegExp.Pattern = &#8220;&lt;[^&gt;]*&gt;&#8221;</span></p>
<p><span style="color: #99cc00;"> &#8216; Return the original String stripped of HTML</span><br />
<span style="color: #99cc00;"> StripHTML = loRegExp.Replace(asHTML,&#8221; &#8220;)</span></p>
<p><span style="color: #99cc00;"> &#8216; Release object from memory</span><br />
<span style="color: #99cc00;"> Set loRegExp = Nothing</span></p>
<p><span style="color: #99cc00;">End function</span></p></blockquote>
<p>To use this function in your page, just do the following (also be shure you included the function in your page):</p>
<p>Dim MyString<br />
MyString = </span><span style="color: #000000;">StripHTML(&lt;yourstring&gt;)</p>
<p>Replace &lt;yourstring&gt; with your own input.</p>

				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.scneeble.com/index.php/2011/08/StripHTML-with-ASP-RegEx/" data-count="horizontal" data-via="scneeble.com" data-text="StripHTML with ASP RegEx">Tweet</a></span><span class="mr_social_sharing"><g:plusone size="medium" href="http://www.scneeble.com/index.php/2011/08/StripHTML-with-ASP-RegEx/"></g:plusone></span><span class="mr_social_sharing"><script type="IN/Share" data-url="http://www.scneeble.com/index.php/2011/08/StripHTML-with-ASP-RegEx/" data-counter="right"></script></span><span class="mr_social_sharing"><iframe src="http://www.hyves.nl/respect/button?url=http%3A%2F%2Fwww.scneeble.com%2Findex.php%2F2011%2F08%2FStripHTML-with-ASP-RegEx%2F&amp;title=StripHTML+with+ASP+RegEx" style="border: medium none; overflow:hidden; width:150px; height:21px;" scrolling="no" frameborder="0" allowTransparency="true" ></iframe></span></div>]]></content:encoded>
			<wfw:commentRss>http://www.scneeble.com/index.php/2011/08/StripHTML-with-ASP-RegEx/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Modal popup</title>
		<link>http://www.scneeble.com/index.php/2011/08/modal-popup/</link>
		<comments>http://www.scneeble.com/index.php/2011/08/modal-popup/#comments</comments>
		<pubDate>Mon, 29 Aug 2011 01:00:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.scneeble.com/?p=1</guid>
		<description><![CDATA[I just needed a very simple working modal popup. After a search I came up to this website: http://abeautifulsite.net/blog/2008/12/jquery-alert-dialogs/ But [...]]]></description>
			<content:encoded><![CDATA[<p>I just needed a very simple working modal popup. After a search I came up to this website:<br />
<a href="http://abeautifulsite.net/blog/2008/12/jquery-alert-dialogs/" title="abeautifulsite.net">http://abeautifulsite.net/blog/2008/12/jquery-alert-dialogs/</a><br />
But this one did not all things I wanted. What I wanted was to greyout the rest of the page so I modified the jQuery code and now it works fine for me.</p>
<p><strong>jQuery</strong><br />
Modified this:<br />
<code><br />
$("BODY").append(<br />
   '&lt;div id="popup_container"&gt;' +<br />
	'&lt;h1 id="popup_title"&gt;&lt;/h1&gt;' +<br />
	'&lt;div id="popup_content"&gt;' +<br />
	  '&lt;div id="popup_message"&gt;&lt;/div&gt;' +<br />
	'&lt;/div&gt;' +<br />
  '&lt;/div&gt;');<br />
</code></p>
<p>to:<br />
<code><br />
$$("BODY").append(<br />
   '&lt;div id="popup_container"&gt;' +<br />
	'&lt;h1 id="popup_title"&gt;&lt;/h1&gt;' +<br />
	'&lt;div id="popup_content"&gt;' +<br />
	  '&lt;div id="popup_message">&lt;/div&gt;' +<br />
	'&lt;/div&gt;' +<br />
  '&lt;/div&gt;' +<br />
  '&lt;div id="popup_container_outer"&gt;' +<br />
'&lt;/div&gt;');<br />
</code></p>
<p>And in the _hide: function() add this:<br />
<code><br />
$("#popup_container_outer").remove();<br />
</code></p>
<p><strong>CSS</strong><br />
<code><br />
/********* begin alertbox *********/<br />
#popup_container_outer {<br />
position:absolute;<br />
top:0;<br />
left:0;<br />
width:100%;<br />
height:100%;<br />
min-height:auto;<br />
background-color:#CCCCCC;<br />
filter: alpha(opacity=50); /* internet explorer */<br />
-khtml-opacity:0.5; /* khtml, old safari */<br />
-moz-opacity:0.5; /* mozilla, netscape */<br />
opacity:0.5; /* fx, safari, opera */<br />
z-index:5000;<br />
}<br />
#popup_container {<br />
font-family:Arial, sans-serif;<br />
font-size:12px;<br />
min-width:300px; /* Dialog will be no smaller than this */<br />
max-width:600px; /* Dialog will wrap after this width */<br />
background:#FFF;<br />
border:solid 2px #e36e05;<br />
color:#000;<br />
-moz-border-radius:5px;<br />
-webkit-border-radius:5px;<br />
border-radius:5px;<br />
}<br />
#popup_title {<br />
font-size:14px;<br />
font-weight:bold;<br />
text-align:center;<br />
line-height:1.75em;<br />
color:#bc3927;<br />
background:#CCC url(../img/title.gif) top repeat-x;<br />
border:solid 1px #FFF;<br />
border-bottom:solid 1px #999;<br />
cursor:default;<br />
padding:0em;<br />
margin:0em;<br />
}<br />
#popup_content {<br />
background:16px 16px no-repeat url(../img/info.gif);<br />
padding:1em 1.75em;<br />
margin:0em;<br />
}<br />
#popup_content.alert {<br />
background-image:url(../img/info.gif);<br />
}<br />
#popup_content.confirm {<br />
background-image:url(../img/important.gif);<br />
}<br />
#popup_content.prompt {<br />
background-image:url(../img/help.gif);<br />
}<br />
#popup_message {<br />
padding-left:48px;<br />
}<br />
#popup_panel {<br />
text-align:center;<br />
margin:1em 0em 0em 1em;<br />
}<br />
#popup_prompt {<br />
margin:.5em 0em;<br />
}<br />
/********* end alertbox *********/<br />
</code></p>

				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.scneeble.com/index.php/2011/08/modal-popup/" data-count="horizontal" data-via="scneeble.com" data-text="Modal popup">Tweet</a></span><span class="mr_social_sharing"><g:plusone size="medium" href="http://www.scneeble.com/index.php/2011/08/modal-popup/"></g:plusone></span><span class="mr_social_sharing"><script type="IN/Share" data-url="http://www.scneeble.com/index.php/2011/08/modal-popup/" data-counter="right"></script></span><span class="mr_social_sharing"><iframe src="http://www.hyves.nl/respect/button?url=http%3A%2F%2Fwww.scneeble.com%2Findex.php%2F2011%2F08%2Fmodal-popup%2F&amp;title=Modal+popup" style="border: medium none; overflow:hidden; width:150px; height:21px;" scrolling="no" frameborder="0" allowTransparency="true" ></iframe></span></div>]]></content:encoded>
			<wfw:commentRss>http://www.scneeble.com/index.php/2011/08/modal-popup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

