<?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>AG Prime Blog &#187; Web development</title>
	<atom:link href="http://blog.ag-prime.com/tag/web-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.ag-prime.com</link>
	<description>Afla ce idei ne-au mai venit...</description>
	<lastBuildDate>Thu, 15 Dec 2011 10:55:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Usefull info</title>
		<link>http://blog.ag-prime.com/2010/07/usefull-info/</link>
		<comments>http://blog.ag-prime.com/2010/07/usefull-info/#comments</comments>
		<pubDate>Sat, 24 Jul 2010 19:16:40 +0000</pubDate>
		<dc:creator>gabriel.ungureanu</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[Web development]]></category>

		<guid isPermaLink="false">http://blog.ag-prime.com/?p=274</guid>
		<description><![CDATA[One very useful information you might need, and you might need it for your customers, are this two links: http://www.whatbrowser.org/en/ &#8211; what is your browser version? and http://www.whatismyscreenresolution.com/ &#8211; what is your screen resolution?]]></description>
			<content:encoded><![CDATA[<p>One very useful information you might need, and you might need it for your customers, are this two links:</p>
<p>http://www.whatbrowser.org/en/ &#8211; what is your browser version?</p>
<p>and</p>
<p>http://www.whatismyscreenresolution.com/ &#8211; what is your screen resolution?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ag-prime.com/2010/07/usefull-info/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple but efficient way to protect your customers from phishing attacks</title>
		<link>http://blog.ag-prime.com/2009/08/simple-but-efficient-way-to-protect-your-customers-from-phishing-attacks/</link>
		<comments>http://blog.ag-prime.com/2009/08/simple-but-efficient-way-to-protect-your-customers-from-phishing-attacks/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 08:12:12 +0000</pubDate>
		<dc:creator>gabriel.ungureanu</dc:creator>
				<category><![CDATA[Web development]]></category>
		<category><![CDATA[phishing]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://blog.ag-prime.com/?p=203</guid>
		<description><![CDATA[Phishing attacks are becoming more and more popular this days. Phishing (via wikipedia): &#8220;In the field of computer security, phishing is the criminally fraudulent process of attempting to acquire sensitive information such as usernames, passwords and credit card details by masquerading as a trustworthy entity in an electronic communication. &#8221; (read more) The messages received [...]]]></description>
			<content:encoded><![CDATA[<p>Phishing attacks are becoming more and more popular this days.</p>
<p style="padding-left: 30px;"><strong><em>Phishing (via wikipedia):</em></strong><br />
<em>&#8220;In the field of computer security, phishing is the criminally fraudulent process of attempting to acquire sensitive information such as usernames, passwords and credit card details by masquerading as a trustworthy entity in an electronic communication. &#8221; (<a title="Phishing definition" href="http://en.wikipedia.org/wiki/Phishing" target="_blank">read more</a>)</em></p>
<p>The messages received from an attacker is very similar to the companies messages and many customers end up in providing sensitive information to attackers.</p>
<p>I recently signed-up on a website, and upon registering it asked me a &#8220;<strong>Phishing protect key</strong>&#8220;, so every time I receive a communication from their business I will have a header similar to:</p>
<p style="padding-left: 30px;"><em>Anti-Phishing Key: &#8220;<strong>&lt;custom text I entered on registering form&gt;</strong>&#8221;<br />
This information was inserted by you on your registration form. This &#8220;key&#8221; lets you verify that &lt;Business&gt; is the sender of this email and fight against the risk of phishing. </em></p>
<p>I think it&#8217;s a very simple and great idea to protect your customer from phishing attacks.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ag-prime.com/2009/08/simple-but-efficient-way-to-protect-your-customers-from-phishing-attacks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Image over javascript</title>
		<link>http://blog.ag-prime.com/2009/01/image-over-javascript/</link>
		<comments>http://blog.ag-prime.com/2009/01/image-over-javascript/#comments</comments>
		<pubDate>Sun, 11 Jan 2009 21:01:01 +0000</pubDate>
		<dc:creator>gabriel.ungureanu</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Web development]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://blog.ag-prime.com/?p=83</guid>
		<description><![CDATA[Hello! I am using quite often this script, it&#8217;s a very simple on but helpful becouse I designed it to be standard. Well the images used should be in the folowing format: &#60;name&#62;.&#60;extension&#62; and &#60;name&#62;_over.&#60;extension&#62; And the script is the folowing: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 [...]]]></description>
			<content:encoded><![CDATA[<p>Hello!</p>
<p>I am using quite often this script, it&#8217;s a very simple on but helpful becouse I designed it to be standard.</p>
<p>Well the images used should be in the folowing format: <strong>&lt;name&gt;.&lt;extension&gt;</strong> and <strong>&lt;name&gt;_over.&lt;extension&gt;</strong></p>
<p>And the script is the folowing:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #003366; font-weight: bold;">function</span> over<span style="color: #009900;">&#40;</span>obj<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
	<span style="color: #003366; font-weight: bold;">var</span> length<span style="color: #339933;">=</span>obj.<span style="color: #660066;">src</span>.<span style="color: #660066;">length</span><span style="color: #339933;">;</span>
	<span style="color: #003366; font-weight: bold;">var</span> index_ext<span style="color: #339933;">=</span><span style="color: #CC0000;">0</span><span style="color: #339933;">;</span>
	<span style="color: #000066; font-weight: bold;">while</span> <span style="color: #009900;">&#40;</span>obj.<span style="color: #660066;">src</span>.<span style="color: #660066;">indexOf</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.'</span><span style="color: #339933;">,</span>index_ext<span style="color: #339933;">+</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">!=-</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span>
	 <span style="color: #009900;">&#123;</span>
		index_ext<span style="color: #339933;">=</span>obj.<span style="color: #660066;">src</span>.<span style="color: #660066;">indexOf</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.'</span><span style="color: #339933;">,</span>index_ext<span style="color: #339933;">+</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span>
	 <span style="color: #009900;">&#125;</span>
	<span style="color: #003366; font-weight: bold;">var</span> extension<span style="color: #339933;">=</span>obj.<span style="color: #660066;">src</span>.<span style="color: #660066;">substring</span><span style="color: #009900;">&#40;</span> index_ext <span style="color: #339933;">,</span> length<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	obj.<span style="color: #660066;">src</span><span style="color: #339933;">=</span><span style="color: #009900;">&#40;</span>obj.<span style="color: #660066;">src</span>.<span style="color: #660066;">substring</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #339933;">,</span>index_ext<span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;_over&quot;</span><span style="color: #339933;">+</span>extension<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #003366; font-weight: bold;">function</span> out<span style="color: #009900;">&#40;</span>obj<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
	<span style="color: #003366; font-weight: bold;">var</span> length<span style="color: #339933;">=</span>obj.<span style="color: #660066;">src</span>.<span style="color: #660066;">length</span><span style="color: #339933;">;</span>
	<span style="color: #003366; font-weight: bold;">var</span> index_ext<span style="color: #339933;">=</span><span style="color: #CC0000;">0</span><span style="color: #339933;">;</span>
	<span style="color: #000066; font-weight: bold;">while</span> <span style="color: #009900;">&#40;</span>obj.<span style="color: #660066;">src</span>.<span style="color: #660066;">indexOf</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.'</span><span style="color: #339933;">,</span>index_ext<span style="color: #339933;">+</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">!=-</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span>
	 <span style="color: #009900;">&#123;</span>
	 index_ext<span style="color: #339933;">=</span>obj.<span style="color: #660066;">src</span>.<span style="color: #660066;">indexOf</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.'</span><span style="color: #339933;">,</span>index_ext<span style="color: #339933;">+</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span>
	 <span style="color: #009900;">&#125;</span>
	<span style="color: #003366; font-weight: bold;">var</span> extension<span style="color: #339933;">=</span>obj.<span style="color: #660066;">src</span>.<span style="color: #660066;">substring</span><span style="color: #009900;">&#40;</span> index_ext <span style="color: #339933;">,</span> length<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #003366; font-weight: bold;">var</span> idx_ov<span style="color: #339933;">=</span><span style="color: #CC0000;">0</span><span style="color: #339933;">;</span>
	obj.<span style="color: #660066;">src</span><span style="color: #339933;">=</span><span style="color: #009900;">&#40;</span>obj.<span style="color: #660066;">src</span>.<span style="color: #660066;">substring</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #339933;">,</span>index_ext<span style="color: #339933;">-</span><span style="color: #CC0000;">5</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span>extension<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>And the usage is as folows:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">onmouseover</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;over(this)&quot;</span> <span style="color: #000066;">onmouseout</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;out(this)&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;buton.jpg&quot;</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span></pre></div></div>

<p>And here is an example:<br />
<script type="text/javascript"><!--
function over(obj)
{
	var length=obj.src.length;
	var index_ext=0;
	while (obj.src.indexOf('.',index_ext+1)!=-1)
	 {
		index_ext=obj.src.indexOf('.',index_ext+1)
	 }
	var extension=obj.src.substring( index_ext , length);
	obj.src=(obj.src.substring(0,index_ext)+"_over"+extension);
}
function out(obj)
{
	var length=obj.src.length;
	var index_ext=0;
	while (obj.src.indexOf('.',index_ext+1)!=-1)
	 {
	 index_ext=obj.src.indexOf('.',index_ext+1)
	 }
	var extension=obj.src.substring( index_ext , length);
	var idx_ov=0;
	obj.src=(obj.src.substring(0,index_ext-5)+extension);
}
// --></script></p>
<style type="text/css">
img { cursor: pointer; }
</style>
<p><img onmouseover="over(this)" onmouseout="out(this)" src="/wp-content/uploads/2009/01/button.gif" alt="" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ag-prime.com/2009/01/image-over-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Un simplu script JavaScript pentru input-uri</title>
		<link>http://blog.ag-prime.com/2008/12/un-simplu-script-javascript-pentru-input-uri/</link>
		<comments>http://blog.ag-prime.com/2008/12/un-simplu-script-javascript-pentru-input-uri/#comments</comments>
		<pubDate>Tue, 16 Dec 2008 20:22:25 +0000</pubDate>
		<dc:creator>gabriel.ungureanu</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Web development]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://blog.ag-prime.com/?p=80</guid>
		<description><![CDATA[function toggle_content(event, obj, default_val) { if (event.type=="focus") { if (obj.value==default_val) { obj.value=""; } } else if (event.type=="blur") { if (obj.value=="") { obj.value=default_val; } } } E o chestie des utilizata, dar am facut un mititiel standard pe care il voi folosi si eu in continuare; pentru ca de fiecare data faceam tot cate o alta [...]]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript">
function toggle_content(event, obj, default_val) {
		if (event.type=="focus") {
			if (obj.value==default_val) {
				obj.value="";
			}
		} else
		if (event.type=="blur") {
			if (obj.value=="") {
				obj.value=default_val;
			}
		}
	}
</script><br />
E o chestie des utilizata, dar am facut un mititiel standard pe care il voi folosi si eu in continuare; pentru ca de fiecare data faceam tot cate o alta varianta a acestui script. Cateva secunde, dar e bine sa le economisesti <img src='http://blog.ag-prime.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>Uite aici despre ce e vorba:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">       <span style="color: #003366; font-weight: bold;">function</span> toggle_content<span style="color: #009900;">&#40;</span>event<span style="color: #339933;">,</span> obj<span style="color: #339933;">,</span> default_val<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>event.<span style="color: #660066;">type</span><span style="color: #339933;">==</span><span style="color: #3366CC;">&quot;focus&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>obj.<span style="color: #660066;">value</span><span style="color: #339933;">==</span>default_val<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			obj.<span style="color: #660066;">value</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;&quot;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span>
	<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>event.<span style="color: #660066;">type</span><span style="color: #339933;">==</span><span style="color: #3366CC;">&quot;blur&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>obj.<span style="color: #660066;">value</span><span style="color: #339933;">==</span><span style="color: #3366CC;">&quot;&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			obj.<span style="color: #660066;">value</span><span style="color: #339933;">=</span>default_val<span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Ok. si cum se apeleaza:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;input name=&quot;field&quot; type=&quot;text&quot; onfocus=&quot;toggle_content(event, this, 'cauta...')&quot; onblur=&quot;toggle_content(event, this, 'cauta...')&quot; value=&quot;cauta...&quot; /&gt;</pre></div></div>

<p>puteti vedea si un exemplu:</p>
<input name="field" type="text" onfocus="toggle_content(event, this, 'cauta...')" onblur="toggle_content(event, this, 'cauta...')" value="cauta..." />
]]></content:encoded>
			<wfw:commentRss>http://blog.ag-prime.com/2008/12/un-simplu-script-javascript-pentru-input-uri/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

