<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<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/"
	>

<channel>
	<title>validator &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/validator/</link>
	<description>Feed of posts on WordPress.com tagged "validator"</description>
	<pubDate>Sat, 28 Nov 2009 23:49:18 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[Valid]]></title>
<link>http://kasza77.wordpress.com/2009/11/19/valid/</link>
<pubDate>Thu, 19 Nov 2009 00:33:05 +0000</pubDate>
<dc:creator>kasza77</dc:creator>
<guid>http://kasza77.wordpress.com/2009/11/19/valid/</guid>
<description><![CDATA[Ilyen se volt még. S talán soha nem is lesz többet. De ma este kitehettem egy weboldalamra a valid c]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Ilyen se volt még. S talán soha nem is lesz többet. De ma este kitehettem egy weboldalamra a valid cimkét &#8230; valid HTML &#8230; meg is hatódtam egy kicsit. <strong>Mert azt az oldalt az utolsó karakterig én csináltam, én irtam be.</strong></p>
<p>Előzmény: dühömben átnyomtam a http://google.com-ot a validátoron &#8230; és lám, nem valid. Jót röhögtem. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>***********************</p>
<p><strong>Jaaaa, azoknak a baromarcoknak se valid az oldala</strong> <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Validasi No Telepon menggunakan symfony validator]]></title>
<link>http://nibsirahsieu.wordpress.com/2009/10/31/validasi-no-telepon-menggunakan-symfony-validator/</link>
<pubDate>Sat, 31 Oct 2009 19:08:19 +0000</pubDate>
<dc:creator>nibsirahsieu</dc:creator>
<guid>http://nibsirahsieu.wordpress.com/2009/10/31/validasi-no-telepon-menggunakan-symfony-validator/</guid>
<description><![CDATA[Ada artikel menarik mengenai validasi no telp, temen2 bisa baca disini. Apa sih yang perlu di valida]]></description>
<content:encoded><![CDATA[Ada artikel menarik mengenai validasi no telp, temen2 bisa baca disini. Apa sih yang perlu di valida]]></content:encoded>
</item>
<item>
<title><![CDATA[Validasi username di symfony menggunakan validator]]></title>
<link>http://nibsirahsieu.wordpress.com/2009/10/31/validasi-username-di-symfony-menggunakan-validator/</link>
<pubDate>Sat, 31 Oct 2009 07:26:48 +0000</pubDate>
<dc:creator>nibsirahsieu</dc:creator>
<guid>http://nibsirahsieu.wordpress.com/2009/10/31/validasi-username-di-symfony-menggunakan-validator/</guid>
<description><![CDATA[Awalnya sih g kepikiran juga, kalo username kudu di validasi (parah..parah.. ), tapi setelah ngeliat]]></description>
<content:encoded><![CDATA[Awalnya sih g kepikiran juga, kalo username kudu di validasi (parah..parah.. ), tapi setelah ngeliat]]></content:encoded>
</item>
<item>
<title><![CDATA[CRUD ArrayCollection]]></title>
<link>http://ricardocanelas.wordpress.com/2009/10/25/exemplos-basicos-flex-3/</link>
<pubDate>Sun, 25 Oct 2009 15:25:03 +0000</pubDate>
<dc:creator>ricardocanelas</dc:creator>
<guid>http://ricardocanelas.wordpress.com/2009/10/25/exemplos-basicos-flex-3/</guid>
<description><![CDATA[Olá, criei um exemplo em Flex Builder 3, com algumas dúvidas básicas a qual tive no começo, quando e]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Olá, criei um exemplo em Flex Builder 3, com algumas dúvidas básicas a qual tive no começo, quando estava aprendendo. Como exemplo, criei um CRUD (<strong>C</strong>reate, <strong>R</strong>etrieve, <strong>U</strong>pdate e <strong>D</strong>elete) sem usar banco de dados, apenas ArrayCollection. Nesse aplicativo temos:</p>
<p>- sort, sortField (Por em ordem)<br />
-  itemRenderer<br />
-  labelFunction<br />
- sortCompareFunction (ordenar a coluna por data)<br />
- outerDocument<br />
- validator (String/Email)<br />
- componentes customizados (Alerta do tipo Messenger e outros)<br />
- filter<br />
- e entre outros.</p>
<p><a title="CRUD ArrayCollection (Exemplo)" href="http://www.ricardocanelas.com/experimental/flex/crud/main.html" target="_blank">Exemplo</a> / <a title="CRUD ArrayCollection (ViewSource)" href="http://www.ricardocanelas.com/experimental/flex/crud/srcview/index.html" target="_blank">ViewSource</a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Active Record Validator (DRY Approach)]]></title>
<link>http://railsjaipur.wordpress.com/2009/09/30/active-record-validator-dry-approach/</link>
<pubDate>Wed, 30 Sep 2009 02:55:45 +0000</pubDate>
<dc:creator>railsjaipur</dc:creator>
<guid>http://railsjaipur.wordpress.com/2009/09/30/active-record-validator-dry-approach/</guid>
<description><![CDATA[With the release of Rails 2.3.4, It includes validators independent from models. Rails is going much]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>With the release of Rails 2.3.4, It includes validators independent from models. Rails is going much more DRY.</p>
<p>For this one just have to define a class that inherits ActiveRecord::Validator and there you go</p>
<p>Let&#8217;s see an example:</p>
<div style="border:1pt solid #222;background-color:#ddd;min-height:20px;min-width:80%;margin:10px;padding:5px 10px;">class EmailValidator &#60; ActiveRecord::Validator<br />
def validate<br />
record.errors[:email] &#60;&#60; &#8220;is not valid&#8221; unless<br />
record.email =~ /^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i<br />
end<br />
end</div>
<p>Validate method override validate method of parent class. Now you can include this to any of your model.</p>
<p>Let&#8217;s see HOW?</p>
<div style="border:1pt solid #222;background-color:#ddd;min-height:20px;min-width:80%;margin:10px;padding:5px 10px;">class bussiness &#60; ActiveRecord::Base<br />
validates_with: EmailValidator #That&#8217;s all<br />
end</div>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Change Background Color of Invalid Controls (ASP.NET Validator)]]></title>
<link>http://codinglifestyle.wordpress.com/2009/09/16/change-background-color-of-invalid-controls-asp-net-validator/</link>
<pubDate>Wed, 16 Sep 2009 11:41:10 +0000</pubDate>
<dc:creator>codinglifestyle</dc:creator>
<guid>http://codinglifestyle.wordpress.com/2009/09/16/change-background-color-of-invalid-controls-asp-net-validator/</guid>
<description><![CDATA[I was working with a customer who has invested a lot in redoing the validation in their web applicat]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>I was working with a customer who has invested a lot in redoing the validation in their web application.  I accedentially suggested wouldn&#8217;t it be nice if we could change the background or border of the field in question.  The customer loved this idea which meant I&#8217;d just created more work for myself.  After searching about I wasn&#8217;t finding this done for me, so I actually had to write some code instead of cutting and pasting.</p>
<p>If you set a breakpoint on WebForm_OnSubmit and step in you can check out the .NET validator script.  Key thing here is a global array called Page_Validators.  From here it is fairly trivial to test and change something about the control in question.</p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-family:&#34;color:blue;font-size:10pt;">function</span><span style="font-family:&#34;font-size:10pt;"> fnOnUpdateValidators()</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-family:&#34;font-size:10pt;">{</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-family:&#34;font-size:10pt;">    <span style="color:blue;">for</span> (<span style="color:blue;">var</span> i = 0; i &#60; Page_Validators.length; i++)</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-family:&#34;font-size:10pt;">    {</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-family:&#34;font-size:10pt;">        <span style="color:blue;">var</span> val = Page_Validators[i];</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-family:&#34;font-size:10pt;">        <span style="color:blue;">var</span> ctrl = document.getElementById(val.controltovalidate);</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-family:&#34;font-size:10pt;">        <span style="color:blue;">if</span> (ctrl != <span style="color:blue;">null</span> &#38;&#38; ctrl.style != <span style="color:blue;">null</span>)</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-family:&#34;font-size:10pt;">        {</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-family:&#34;font-size:10pt;">          <span style="color:blue;">if</span> (!val.isvalid)</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-family:&#34;font-size:10pt;">              ctrl.style.background=<span style="color:#a31515;">&#8220;#FFAAAA&#8221;</span>;</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-family:&#34;font-size:10pt;">          <span style="color:blue;">else</span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-family:&#34;font-size:10pt;">              ctrl.style.backgroundColor = <span style="color:#a31515;">&#8220;&#8221;</span>;</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-family:&#34;font-size:10pt;">        }</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-family:&#34;font-size:10pt;">    }</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-family:&#34;font-size:10pt;">}                            </span></p>
<p class="MsoNormal" style="margin:0 0 10pt;"> </p>
<p class="MsoNormal" style="margin:0 0 10pt;">Of course, one problem is if the control already had a background color, it would be lost.  This can be circumvented by storing the old value in an attribute or elsewhere.  Also, custom validators are a special case so you will need to add the appropriate changes for fields validated in a custom way.</p>
<p class="MsoNormal" style="margin:0 0 10pt;">To make sure my function is called I use the deprecated Page.RegisterOnSubmitStatement(&#8220;val&#8221;, &#8220;fnOnUpdateValidators();&#8221;).  This will call my function after the validators have fired so the isvalid is up to date.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Sitecore field validator for unpublished media items.]]></title>
<link>http://blog.capaxsolutions.co.uk/2009/09/10/sitecore-media-library-validator/</link>
<pubDate>Thu, 10 Sep 2009 21:26:39 +0000</pubDate>
<dc:creator>Steve Green</dc:creator>
<guid>http://blog.capaxsolutions.co.uk/2009/09/10/sitecore-media-library-validator/</guid>
<description><![CDATA[When you&#8217;ve got larger Sitercore installs where there is a team of graphic artists dedicated t]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>When you&#8217;ve got larger Sitercore installs where there is a team of graphic artists dedicated to maintaining the media library you can get cases of content editors linking to images that haven&#8217;t been published yet.</p>
<p>Off the back of those kind of situations I wrote a custom validator to test if the item is published on any of the target databases. It could easily be repurposed for any of the link fields and the warning could be raised to an error if needed.</p>
<pre style="background-color:#ffffff;width:100%;"><span style="color:#0000ff;">using</span> System.Collections.Generic;
<span style="color:#0000ff;">using</span> Sitecore.Configuration;
<span style="color:#0000ff;">using</span> Sitecore.Data;
<span style="color:#0000ff;">using</span> Sitecore.Data.Fields;
<span style="color:#0000ff;">using</span> Sitecore.Data.Items;
<span style="color:#0000ff;">using</span> Sitecore.Data.Validators;
<span style="color:#0000ff;">using</span> Sitecore.Diagnostics;
<span style="color:#0000ff;">using</span> Sitecore.Globalization;
<span style="color:#0000ff;">using</span> Sitecore.SecurityModel;
<span style="color:#0000ff;">using</span> Sitecore.Shell.Applications.ContentEditor;
<span style="color:#0000ff;">namespace</span> example
{
    <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">class</span> UnpublishedMediaValidator : StandardValidator
    {
        <span style="color:#0000ff;">protected</span> <span style="color:#0000ff;">override</span> ValidatorResult Evaluate()
        {
            ItemUri itemUri = <span style="color:#0000ff;">base</span>.ItemUri;
            <span style="color:#0000ff;">if</span> (itemUri != <span style="color:#0000ff;">null</span>)
            {
                Field field = <span style="color:#0000ff;">base</span>.GetField();
                <span style="color:#0000ff;">if</span> (field == <span style="color:#0000ff;">null</span>)
                    <span style="color:#0000ff;">return</span> ValidatorResult.Valid;
                <span style="color:#0000ff;">string</span> str = field.Value;
                <span style="color:#0000ff;">if</span> (<span style="color:#0000ff;">string</span>.IsNullOrEmpty(str))
                    <span style="color:#0000ff;">return</span> ValidatorResult.Valid;
                <span style="color:#0000ff;">if</span> (<span style="color:#0000ff;">string</span>.Compare(str, "<span style="color:#8b0000;">&#60;image /&#62;</span>") == 0)
                    <span style="color:#0000ff;">return</span> ValidatorResult.Valid;
                <span style="color:#0000ff;">string</span> itemId = <span style="color:#0000ff;">new</span> XmlValue(str, "<span style="color:#8b0000;">image</span>").GetAttribute("<span style="color:#8b0000;">mediaid</span>");
                <span style="color:#0000ff;">if</span> (<span style="color:#0000ff;">string</span>.IsNullOrEmpty(itemId))
                    <span style="color:#0000ff;">return</span> ValidatorResult.Valid;
                Database currentDatabase = Factory.GetDatabase(itemUri.DatabaseName);
                Assert.IsNotNull(currentDatabase, itemUri.DatabaseName);
                Item localItem = currentDatabase.GetItem(itemId);
                <span style="color:#0000ff;">if</span> (localItem == <span style="color:#0000ff;">null</span>)
                    <span style="color:#0000ff;">return</span> ValidatorResult.Valid;
                <span style="color:#0000ff;">foreach</span>(Database targetDatabase <span style="color:#0000ff;">in</span> GetTargets(localItem))
                {
                    Item targetItem = targetDatabase.GetItem(localItem.ID);
                    <span style="color:#0000ff;">if</span>(targetItem == <span style="color:#0000ff;">null</span>)
                    {
                        <span style="color:#0000ff;">base</span>.Text = Translate.Text("<span style="color:#8b0000;">The field \"{0}\" links to an unpublished item.</span>", <span style="color:#0000ff;">new</span> <span style="color:#0000ff;">object</span>[] { field.DisplayName });
                        <span style="color:#0000ff;">return</span> <span style="color:#0000ff;">base</span>.GetFailedResult(ValidatorResult.Warning);
                    }
                }
            }
            <span style="color:#0000ff;">return</span> ValidatorResult.Valid;
        }
        <span style="color:#0000ff;">private</span> List&#60;Database&#62; GetTargets(Item item)
        {
            <span style="color:#0000ff;">using</span> (<span style="color:#0000ff;">new</span> SecurityDisabler())
            {
                Item item2 = item.Database.Items["<span style="color:#8b0000;">/sitecore/system/publishing targets</span>"];
                <span style="color:#0000ff;">if</span> (item2 != <span style="color:#0000ff;">null</span>)
                {
                    List&#60;Database&#62; list = <span style="color:#0000ff;">new</span> List&#60;Database&#62;();
                    <span style="color:#0000ff;">foreach</span> (Item item3 <span style="color:#0000ff;">in</span> item2.Children)
                    {
                        <span style="color:#0000ff;">string</span> name = item3["<span style="color:#8b0000;">Target database</span>"];
                        <span style="color:#0000ff;">if</span> (name.Length &#62; 0)
                        {
                            Database database = Factory.GetDatabase(name, <span style="color:#0000ff;">false</span>);
                            <span style="color:#0000ff;">if</span> (database != <span style="color:#0000ff;">null</span>)
                            {
                                list.Add(database);
                            }
                            <span style="color:#0000ff;">else</span>
                            {
                                Log.Warn("<span style="color:#8b0000;">Unknown database in PublishAction: </span>" + name, <span style="color:#0000ff;">this</span>);
                            }
                        }
                    }
                    <span style="color:#0000ff;">return</span> list;
                }
            }
            <span style="color:#0000ff;">return</span> <span style="color:#0000ff;">new</span> List&#60;Database&#62;();
        }
        <span style="color:#0000ff;">protected</span> <span style="color:#0000ff;">override</span> ValidatorResult GetMaxValidatorResult()
        {
            <span style="color:#0000ff;">return</span> <span style="color:#0000ff;">base</span>.GetFailedResult(ValidatorResult.Warning);
        }
        <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">override</span> <span style="color:#0000ff;">string</span> Name
        {
            <span style="color:#0000ff;">get</span>
            {
                <span style="color:#0000ff;">return</span> "<span style="color:#8b0000;">Unpublished Items.</span>";
            }
        }
    }
}</pre>
<p>Implementing it is fairly straight forward, just compile the code, create a new Validation Rule item in /sitecore/system/Settings/Validation Rules/Field Rules/ (namespace.class,assembly) and add to the Validator Bar rule on the Image Field Type in /sitecore/system/Settings/Validation Rules/Field Types/Image</p>
<p>As I said it would be easy to repurpose this for any link type, useful in conjunction with more complex workflows.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[W3C]]></title>
<link>http://evelynmangiru.wordpress.com/2009/09/02/w3c/</link>
<pubDate>Wed, 02 Sep 2009 21:41:29 +0000</pubDate>
<dc:creator>Evelyn Mangiru</dc:creator>
<guid>http://evelynmangiru.wordpress.com/2009/09/02/w3c/</guid>
<description><![CDATA[Dacă ai curaj să-ți verifici HTML-urile, CSS-urile și alte-urile, pe w3.org este cel mai recomandat ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Dacă ai curaj să-ți verifici HTML-urile, CSS-urile și alte-urile, pe <strong><a href="http://www.w3.org/" target="_blank">w3.org</a></strong> este cel mai recomandat să o faci:</p>
<p><a href="http://www.w3.org/" target="_blank"><img class="aligncenter size-full wp-image-553" title="w3c" src="http://evelynmangiru.wordpress.com/files/2009/09/w3c.jpg" alt="w3c" width="330" height="64" /></a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Links for 2009-08-21]]></title>
<link>http://janmaterne.wordpress.com/2009/08/21/links-for-2009-08-21/</link>
<pubDate>Fri, 21 Aug 2009 10:22:42 +0000</pubDate>
<dc:creator>janmaterne</dc:creator>
<guid>http://janmaterne.wordpress.com/2009/08/21/links-for-2009-08-21/</guid>
<description><![CDATA[With Blende 8 Galileo Deisgn presents a video podcast about fotographing. New episodes will be avail]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>With <a href="http://foto.galileodesign-podcast.de/">Blende 8</a> Galileo Deisgn presents a video podcast about fotographing. New episodes will be available all 14 days.</p>
<p>VMWare provides several free information <a href="https://www.vmware-event.com/vsphere_ddss_de/anmeldung.cfm">events </a>about vSphere 4 in Germany, Austria an Switzerland from 26.August till 29.October.</p>
<p>Galileo Computing created a <a href="http://www.galileocomputing.de/2057?GPP=sessionx85qr">video training</a> about VMWare vSphere4 &#8211; 83 lessons and 10 hours.</p>
<p>I also found a <a href="http://eclipsesource.com/blogs/2009/08/06/ui-design-why-is-that-button-gray/">blog </a>about a question someone was interested in too: Why is that action not available?</p>
<p>According to that <a href="http://uxevangelist.blogspot.com/2009/08/windows-8-server-due-2012.html">roadmap </a>MS Windows 8 is intended for 2012 with cluster support, one-way-replication, inproved file handling &#8230;</p>
<p><a href="http://www.adptools.com/denoisemyimage/eng/index.html">Denoise My Image</a> is a free tool for improving the picture quality.</p>
<p>My favorit: <a href="http://www.launchy.net/">Launchy</a> is a free small app for starting programs, documents, urls &#8230; with just a jew keystroke.</p>
<p>Oracle provides free <a href="http://starcom.epromos.info/oracle/lead.aspx?source=www.youmint.com&#38;Producttype=SOA&#38;Creative=EDM&#38;SizePlace=1*1">ebooks </a>about SOA (after a registration). Content is</p>
<ul>
<li> Grid Enabled Architecture: Move to Modern Service Oriented, Grid Enabled Architecture</li>
<li> Business Process Management: Achieve Business Flexibility through Oracle BPM</li>
<li> Business Activity Monitoring: Stay Agile Responding to Changes in Real-time</li>
<li> Data Integration: Integrate Data at High Performance and with High Productivity</li>
<li> Application Integration Architecture: Accelerate Application Integrations</li>
<li> History: Service-Oriented Architecture Milestones</li>
<li>Case Studies: Comprehensive, Preintegrated, Hot-Pluggable Middleware</li>
</ul>
<p>On 24./25.November there is the <a href="http://www.ix-konferenz.de">ix-Day</a> &#8211; this time about <a href="http://www.ix-konferenz.de/cobol.php">Cobol</a>. <a href="http://www.cobol-day.de">CfP </a>ends on 28.September.</p>
<p>A nice toy (maybe a tool also). <a href="http://www.draganfly.com/uav-helicopter/draganflyer-x4/">Draganfly </a>is a quadcopter which transports and controlls a photocamera or videocamera. So you can take your own pictures from the air.</p>
<p>The VCC team at https://vcc.dev.java.net/ is pleased to announce our first bleeding edge pre-alpha release of the Virtual Computer Control API (version 0.0.3) and associated implementations (version 0.0.3) and plugins (version 0.0.1). The Virtual Computer Control API is designed to be a virtualization platform agnostic API for controlling (Ant, Maven, Hudson) virtual computers (VMWare ESX, VMWare Workstation, Xen, KVM, QUEMU, libvirt, VirtualBox, AmazonEC2, xVM): list, start, suspend, stop and pause a virtual computer, take a snapshot or revert to a snapshot, clone a virtual computer, query their network settings.</p>
<p>There is a free <a href="http://www.eload24.com/product/show/999">ebook </a>how to install Windows 7.</p>
<p><a href="http://code.google.com/p/rmbench/">RMBench </a>Relational Modeller is designed to be a one-stop Eclipse-integrated solution for grapically modelling relational databases. But sadly there arent any screenshots online. So you have to compile and install it for yourself.</p>
<p><a href="http://jcp.org/en/jsr/detail?id=294">JSR-294 Jigsaw</a> &#38; <a href="http://www.osgi.org/">OSGi </a>- maybe somewhere in the middle? Peter Kriens, BJ Hargrave and Richard Hall suggested a <a href="http://altair.cs.oswego.edu/pipermail/jsr294-modularity-eg/2009-August/000357.html">new approach</a> for the moludarization in Java &#8211; not as complex as OSGi and Jigsaw, but compliant to the OSGi specs.</p>
<p>Microsoft Research publishes <a href="http://research.microsoft.com/en-us/projects/contracts/">Code Contracts</a>. Speaking with Java terms (sorry I dont write .NET code) the basic concept is a validator class which takes several closures. Then you could validate your object/parameters:</p>
<p>static private int TraditionalValidation(int Input1, string Input2, List<int> Input3)<br />
 {<br />
 Contract.Requires(0 <= Input1 &#038;&#038; Input1 <= 100);<br />
 Contract.Requires(Input2.Length > 5);<br />
 Contract.Requires(Input3.Contains(500));<br />
 Contract.Ensures(Contract.Result<int>() >= 0);<br />
 &#8230;<br />
 }</p>
<p>When I read that two things poped up in my mind: the <a href="http://martinfowler.com/eaaDev/Notification.html">Notification Pattern</a> and the <a href="http://svn.apache.org/repos/asf/ant/core/trunk/src/main/org/apache/tools/ant/TaskConfigurationChecker.java">validator </a>for Ant tasks.</p>
<p><a href="http://www.phpunit.de/">PHPUnit 3.4</a> is a stop before release.</p>
<p>Cloudera announces <a href="http://www.cloudera.com/hadoop-world-nyc">Hadoop World: NYC</a> 2009.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[ASP.NET Word Count Validator]]></title>
<link>http://rbailey.wordpress.com/2009/08/17/asp-net-word-count-validator/</link>
<pubDate>Mon, 17 Aug 2009 18:11:41 +0000</pubDate>
<dc:creator>rlb</dc:creator>
<guid>http://rbailey.wordpress.com/2009/08/17/asp-net-word-count-validator/</guid>
<description><![CDATA[How to validate the wordcount on a textbox? Use a regular expression validator. Suppose we want a co]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>How to validate the wordcount on a textbox? Use a regular expression validator. Suppose we want a count of 300 words or less:</p>
<p><span style="text-decoration:line-through;"><code>ValidationExpression="^(\b\S+\b\s*){0,300}$"</code></span></p>
<p><code>ValidationExpression="(((^\s*)*\S+\s+)&#124;(\S+)){1,300}"</code></p>
<p><span style="text-decoration:line-through;">Thanks, <a href="http://stackoverflow.com/questions/52591/asp-net-word-count-with-a-custom-validator">Stack Overflow</a>.</span></p>
<p>Thanks, <a href="http://regexlib.com/REDetails.aspx?regexp_id=1542">RegEx Lib</a>.<span style="text-decoration:line-through;"><br />
</span></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[W3C Validator]]></title>
<link>http://productorcreativo.wordpress.com/2009/08/12/w3c-validator/</link>
<pubDate>Wed, 12 Aug 2009 20:12:50 +0000</pubDate>
<dc:creator>elelui12cr</dc:creator>
<guid>http://productorcreativo.wordpress.com/2009/08/12/w3c-validator/</guid>
<description><![CDATA[W3C  Validator ¿Qué es esto? ¿Lo necesito? El servicio de Validación de CSS del W3C es un software l]]></description>
<content:encoded><![CDATA[W3C  Validator ¿Qué es esto? ¿Lo necesito? El servicio de Validación de CSS del W3C es un software l]]></content:encoded>
</item>
<item>
<title><![CDATA[C++: Qt: &quot;qLineEdit&quot;]]></title>
<link>http://calltopower.wordpress.com/2009/08/10/c-qt-qlineedit/</link>
<pubDate>Mon, 10 Aug 2009 12:06:10 +0000</pubDate>
<dc:creator>CallToPower</dc:creator>
<guid>http://calltopower.wordpress.com/2009/08/10/c-qt-qlineedit/</guid>
<description><![CDATA[Today I discovered the Features of QLineEdit including Password-Fields (Asterisks, w/o Echo), Valida]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Today I discovered the Features of <a href="http://doc.trolltech.com/4.5/qlineedit.html" target="_blank">QLineEdit</a> including Password-Fields (Asterisks, w/o Echo), Validators, Masks and more.<br />
Here an Example Video:<br />
<span style='text-align:center; display: block;'><object width='425' height='350'><param name='movie' value='http://www.youtube.com/v/Rov6k4f1lws&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;hd=0' /><param name='allowfullscreen' value='true' /><param name='wmode' value='transparent' /><embed src='http://www.youtube.com/v/Rov6k4f1lws&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;hd=0' type='application/x-shockwave-flash' allowfullscreen='true' width='425' height='350' wmode='transparent'></embed></object></span></p>
<p>Really useful is e.g. the QCompleter that completes started Words typed in (known from e.g. google):</p>
<pre>// #include &#60;QPushButton&#62;
// #include &#60;QCompleter&#62;
    QStringList wordlist;
    wordlist &#60;&#60; "Trolltech" &#60;&#60; "Meyer" &#60;&#60; "Test" &#60;&#60; "Computer";
    QCompleter *completer = new QCompleter(wordlist, this);
    completer-&#62;setCaseSensitivity(Qt::CaseInsensitive);
    ui-&#62;lineEdit_1-&#62;setCompleter(completer);</pre>
<p>Other useful Things are Masks for the QLineEdit (RegEx, IP Addresses etc.):</p>
<pre>void MainWindow::setValidMask(bool b) {
    lineEdit-&#62;setInputMask("");
    lineEdit-&#62;setReadOnly(false);

    if(aRadioButton_integer-&#62;isChecked())
        lineEdit-&#62;setValidator(new QIntValidator(lineEdit));
    else if(ui-&#62;radioButton_double-&#62;isChecked())
        lineEdit-&#62;setValidator(new QDoubleValidator(lineEdit));
    else if(aRadioButton_regex-&#62;isChecked()) {
        QRegExp rx("-?[1-9]\\d{0,3}");
        QValidator *validator = new QRegExpValidator(rx, this);
        lineEdit-&#62;setValidator(validator);
    }
    else if(aRadioButton_date-&#62;isChecked())
        lineEdit-&#62;setInputMask("00-00-0000");
    else if(aRadioButton_ipAddress-&#62;isChecked())
        lineEdit-&#62;setInputMask("000.000.000.000");
    else if(aRadioButton_readOnly-&#62;isChecked()) {
        lineEdit-&#62;setText("Read only");
        lineEdit-&#62;setReadOnly(true);
    }
}</pre>
<p>Code can be found <a href="http://www.calltopower.de/media/code/C_Cpp/Qt/" target="_blank">here</a>.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Check email availability using jQuery’s ajax (Part 2. easy way)]]></title>
<link>http://imamiscool.wordpress.com/2009/06/29/check-email-availability-using-jquery%e2%80%99s-ajax-part-2-easy-way/</link>
<pubDate>Mon, 29 Jun 2009 01:50:04 +0000</pubDate>
<dc:creator>imamiscool</dc:creator>
<guid>http://imamiscool.wordpress.com/2009/06/29/check-email-availability-using-jquery%e2%80%99s-ajax-part-2-easy-way/</guid>
<description><![CDATA[On our previous tutorial (Part 1), we have deal with hard way of checking email availability using j]]></description>
<content:encoded><![CDATA[On our previous tutorial (Part 1), we have deal with hard way of checking email availability using j]]></content:encoded>
</item>
<item>
<title><![CDATA[YUI Datatable - Custom Validator Example]]></title>
<link>http://b1tch2c0d3.wordpress.com/2009/05/23/yui-datatable-custom-validator-example/</link>
<pubDate>Sat, 23 May 2009 17:56:18 +0000</pubDate>
<dc:creator>james young</dc:creator>
<guid>http://b1tch2c0d3.wordpress.com/2009/05/23/yui-datatable-custom-validator-example/</guid>
<description><![CDATA[This is the validator I am using to insure that a height (or float) was entered (5&#8242;10&#8243;, ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>This is the validator I am using to insure that a height (or float) was entered (5&#8242;10&#8243;, 5&#8242; 10&#8243;, 5.10 5 10), and that text (tall, short) was not entered and covert a valid  non-float value entered (5&#8242;10&#8243;, 5&#8242; 10&#8243;, 5 10) to a float (5.10), which is how I want to store the value in the database.</p>
<p>Now that we have a custom validator created, it would be helpful to know where to call it from. A validator is an object parameter to the object that is sent to a textboxCellEditor.</p>
<p>The textboxCellEditor is an object parameter to the object that defines the column, in the array of objects that is sent to the datatable constructor.</p>
<pre style="overflow:auto;border:1px solid black;line-height:1.4em;padding:1em;">
STWPT.validateHeight = function (oData)
{
    var pattern; // regexp pattern holder

    // heightFormat is expected to be a decimal number for height

    // add a space if none was provided (5'10")
    // 5'10" -&#62; 5' 10 - note the trailing non-digit characters are dropped
    pattern = /'(\d+)/g
    if (pattern.test(oData)) { oData = oData.replace(pattern, " $1"); }

    // turn a space into a decimal - 5 10, 5' 10" -&#62; 5.10, 5' 10"
    pattern = / /g;
    if (pattern.test(oData)) { oData = oData.replace(pattern, '.'); }

    // remove all single and double quotes - 5' 10", 5'.10" -&#62; 5.10
    pattern = /["']/g
    if (pattern.test(oData)) { oData = oData.replace(pattern, ''); }

    // enforce x.0x format - 5' 1" -&#62; 5' 01" -&#62; 5.01
    pattern = /\.([1-9])$/
    if (pattern.test(oData)) { oData = oData.replace(pattern, '.0$1')};

    // at this point we should have a float, which should eval &#62; 0

    if (oData &#62; 0) { return oData; }

    // validation only succeeds if a value is returned
}
</pre>
<p>The following is a snippet out of a larger script that shows just the pieces that connect the datatable creation to the custom validator shown above.</p>
<pre style="overflow:auto;border:1px solid black;line-height:1.4em;padding:1em;">
var heightEditor = new YAHOO.widget.TextboxCellEditor({
    disableBtns: false,
    asyncSubmitter: submitter,
    validator: STWPT.validateHeight
});

var myColumnDefs = [{
    key: 'height',
    label: 'Height',
    sortable: true,
    resizeable: true,
    editor: heightEditor,
    formatter: STWPT.formatHeight
}];

var myDataTable = new YAHOO.widget.DataTable('athletes-datatable', myColumnDefs, myDataSource);
</pre>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[نحوه استفاده از Validatorها در Asp.net]]></title>
<link>http://hajloo.wordpress.com/2009/05/10/how-to-use-validators-in-asp-ne/</link>
<pubDate>Sun, 10 May 2009 06:19:25 +0000</pubDate>
<dc:creator>ناصر حاجلو :-: Nasser Hajloo</dc:creator>
<guid>http://hajloo.wordpress.com/2009/05/10/how-to-use-validators-in-asp-ne/</guid>
<description><![CDATA[چند وقت میشه که درجریان تغییر شرکت، زمانی برای بروز رسانی مطالب وبلاگ ندارم و در مین مدت تعداد زیادی]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p style="text-align:right;">چند وقت میشه که درجریان تغییر شرکت، زمانی برای بروز رسانی مطالب وبلاگ ندارم و در مین مدت تعداد زیادی ای-میل گرفتم، و از همه این دوستان قدردانی می‌کنم که دلیل بروزنشدن وبلاگ رو جویا شدن. بهرحال امروز بخاطر کمی وقت یک مطلب پرکاربرد ولی ساده رو می‌نویسم تا هم از من زیاد وقت و انرژی نگیره و هم اینکه زمان زیادی برای مطالعه اون نزارید.</p>
<p style="text-align:center;">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>این مطلب زیر نظر مجوز <strong>GFDL</strong> منتشر می‌شود. و کلیه حقوق آن برای همگان آزاد است، بدین شرط که به کلیه شرایط موجود در <strong>مجوز GFDL</strong> ( که <a href="http://www.gnu.org/copyleft/fdl.html">یک نسخه از <strong>متن انگلیسی مجوز GFDL</strong> در این محل</a> و <a href="http://www.kaveh.org/gnu/fdl-fa.html">یک ترجمه <strong>غیر رسمی (فارسی) از متن مجوز GFDL</strong> که در مرداد ۱۳۸۳ توسط <strong>کاوه رنجبر</strong> تهیه شده است در این محل</a> ) قرار دارد پایبند باشد.</p>
<div id="attachment_680" class="wp-caption alignleft" style="width: 160px"><img class="size-thumbnail wp-image-680" title="gnu_logo" src="http://hajloo.wordpress.com/files/2009/04/gnu_logo.jpg?w=150" alt="GNU Logo" width="150" height="148" /><p class="wp-caption-text">GNU Logo</p></div>
<p>عنوان مطلب : <strong>نحوه استفاده از Validatorها در Asp.net</strong></p>
<p>بخش ثانی : <strong>ندارد</strong></p>
<p>تاریخ انتشار :<strong> ۲۰/02/1387 </strong>مطابق با <strong>۱۰/0۵/2009 </strong></p>
<p>شماره نسخه : <strong>نسخه یک</strong></p>
<p>نویسنده : <strong>ناصر حاجلو</strong></p>
<p>ای-میل نویسنده :<strong> </strong><a href="mailto:n.hajloo@gmail.com"><strong>n.hajloo@gmail.com</strong></a></p>
<p dir="ltr">Copyright (c) 2009 Nasser Hajloo.<br />
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation;<br />
with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled &#8220;GNU Free Documentation License&#8221;.</p>
<p style="text-align:center;">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>خیلی وقتها شما یک فرم دارید که می‌خواهید یک‌سری ورودی خاص داشته باشد تا شما بعدا در کد برنامه و یا در سرویس‌های پایین‌تر اقدام به بررسی فرمت (قالب)، صحت اطمینان از وجود آن و موارد مشابه نداشته باشید. برای این کار باید ، این کار را در سطح UI برنامه انجام دهید.</p>
<p>فرض کنید که یک فرم دارید که در آن تعدادی TextBox قرار گرفته و اکنون شما می‌خواهید وقتی که کاربر روی دکمه ثبت اطلاعات ( و یا هر دکمه دیگری ) کلیک کرد، پیش از</p>
<p>          ارسال داده‌ها به لایه‌های پایین تر واحتمالا بروز مشکل و بازگرداندن مشکل مجددا به سطح UI و نمایش خطای پیش آمده به کاربر،</p>
<p>          اگر کاربر فیلدهای مور نظر شما را به شکل صحیح وارد نکرده بود، نتواند بر روی دکمه مورد نظرکلیک کند.</p>
<p>برای این منظور شما می‌توانید کدهای جاوااسکریپت مختلفی را بنویسید، اما خود من به شخصه، به علت بهینه بودن کار ابزار فراهم شده در asp.net استفاده از انواع مختلف کنترل Validator را توصیه می‌کنم. در زیر لیستی از انواع مختلف Validator ها را می‌آورم.</p>
<ul>
<li>
<div>RequiredFieldValidation Control  : برای فیلدهای اجباری</div>
</li>
<li>
<div>CompareValidator Control  :  برای اطمینان از وارد کردن مشابه دو فیلد خاص بصورت یکسان ( مثل کلمه عبور )</div>
</li>
<li>
<div>RangeValidator Control : اطمینان از ورود اطلاعات در یک رنج خاص ( مثل از تریخ فلان تا تاریخ فلان )</div>
</li>
<li>
<div>RegularExpressionValidator Control : برای چک کردن یک عبارت و یکی بودن آن با یک عبارت با قاعده</div>
</li>
<li>
<div>CustomValidator Control : دصورتی که بخواهیم یک متدخاص در صورت صحت اعتبار فیلد در کلاینت و یا سرور صدا زده شود</div>
</li>
</ul>
<p>همانطور که در بالا ملاحظه می‌کنید ۵ نوع مختلف از ابزارهای اعتبارسنجی در asp.net موجود است که به اختصار با هرکدام آشنا شدید. هر کدام از این ابزارها در جای خاص خودشان کاربرد دارند که از حوصله این بحث خارج است ( در واقع با توصیفی که داده شد کاملا مشخص است ) اما نحوه استفاده از این ابزارها کاملا یکسان است.</p>
<p>شما باید یک‌سری TextBox (یا هر کنترل دلخواه دیگر) بر روی صفحه بگذارید و صفات زیر را برای validator ها به شکل مناسبی مقداردهی نمایید.</p>
<ul>
<li>
<div> ControlToValidate :‫ فیلد (کنترل)ی که باید مورد اعتبارسنجی قرار بگیرد</div>
</li>
<li>
<div>ErrorMessage :‫ پیغام خطایی که پس از وقوع در ابزار Validation Summary نمایش داده خواهد شد</div>
</li>
<li>
<div>IsValid : ‫مقداری برای valid کردن فیلد</div>
</li>
<li>
<div>Validate :‫ متدی برای validate کردن فیلد، در واقع مقدار IsValid را بروزرسانی می‌کند</div>
</li>
<li>
<div>Display : نحوه نمایش پیغام خطا که به سه شکل زیر است</div>
</li>
<li>
<div>None (پیغام خطا هیچ‌گاه نمایش داده نمی‌شود)</div>
</li>
<li>
<div>Static (اگر محل نمایش پیغام خطاها، در محل خاصی از صفحه بود)</div>
</li>
<li>
<div>Dynamic (پیغام خطا را همانجا نشان بده)</div>
</li>
</ul>
<p>فقط توجه داشته باشی که در کنترل CustomValidator صفات به شکل زیر خواهد بود</p>
<ul>
<li>
<div>ClientValidationFunction : ‫متدی که با زبان جاوا اسکریپت نوشته می‌شود و در صورت صحت اعتبار اجرا خواهد شد</div>
</li>
<li>
<div>OnServerValidate : ‫ متدی که با استفاده از ‫c# یا vb نوشته خواهد شد و در صورت صحت اعتبار اجرا خواهد شد</div>
</li>
</ul>
<p>در نهایت خروجی این validator ها در ابزاری با نام Validation Summary نمایش داده خواهد شد. این ابزار همه پیغام‌های خطا را دریافت کرده و به شما بصورت لیست (‌DisplayMode=List) نشان خواهد داد، توجه داشته باشید که می‌توانید خروجی را در یک دیالوگ باکس هم مشاهده کنید که باید صفت دیگری را مقداردهی کنید.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[checkbox, radio button validator]]></title>
<link>http://utopiabluesky.wordpress.com/2009/05/06/checkbox-radio-button-validator/</link>
<pubDate>Wed, 06 May 2009 09:03:57 +0000</pubDate>
<dc:creator>BlueSky</dc:creator>
<guid>http://utopiabluesky.wordpress.com/2009/05/06/checkbox-radio-button-validator/</guid>
<description><![CDATA[我竟然漏左post 呢個咁important 既post, 就係checkbox, radio button 既validator: 貼係header 度~~再用customer validator ]]></description>
<content:encoded><![CDATA[我竟然漏左post 呢個咁important 既post, 就係checkbox, radio button 既validator: 貼係header 度~~再用customer validator ]]></content:encoded>
</item>
<item>
<title><![CDATA[Highlight Control thats has validator error]]></title>
<link>http://rickygod.wordpress.com/2009/05/02/highlight-control-thats-has-validator-error/</link>
<pubDate>Sat, 02 May 2009 09:16:15 +0000</pubDate>
<dc:creator>rickycrc</dc:creator>
<guid>http://rickygod.wordpress.com/2009/05/02/highlight-control-thats-has-validator-error/</guid>
<description><![CDATA[void Page_PreRender() { foreach (BaseValidator valControl in Page.Validators) { WebControl assContro]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>void Page_PreRender()<br />
    {<br />
        foreach (BaseValidator valControl in Page.Validators)<br />
        {<br />
            WebControl assControl = (WebControl)Page.FindControl(valControl.ControlToValidate);</p>
<p>            if (!valControl.IsValid)<br />
                assControl.BackColor = System.Drawing.Color.Yellow;<br />
            else<br />
                assControl.BackColor = System.Drawing.Color.White;<br />
        }<br />
    }</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Meridium lanserar SiteValidator för ökad tillgänglighet]]></title>
<link>http://larskarlsson.wordpress.com/2009/04/28/meridium-lanserar-sitevalidator/</link>
<pubDate>Tue, 28 Apr 2009 13:54:02 +0000</pubDate>
<dc:creator>Lars Karlsson</dc:creator>
<guid>http://larskarlsson.wordpress.com/2009/04/28/meridium-lanserar-sitevalidator/</guid>
<description><![CDATA[Apparat för att validera biljetter Idag (28 april 2009) släpper Meridum sitt verktyg SiteValidator, ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><div id="attachment_747" class="wp-caption alignright" style="width: 165px"><img class="size-medium wp-image-747" title="Apparat för att validera biljetter (från caltrain.com)" src="http://larskarlsson.wordpress.com/files/2009/04/validator.jpg?w=155" alt="Apparat för att validera biljetter" width="155" height="300" /><p class="wp-caption-text">Apparat för att validera biljetter</p></div>
<p>Idag (28 april 2009) släpper <a href="http://www.meridium.se">Meridum </a>sitt verktyg <a href="http://www.meridium.se/templates/Page____484.aspx?epslanguage=SV">SiteValidator</a>, ett verktyg som enligt dem skall hjälpa webbplatsansvariga att kontrollera om deras webbplatser är tillgängliga för alla. Därför var jag tvungen att gå ifrån min vana att ge dig ett inlägg varje måndag och torsdag.</p>
<p><!--more-->Jag har lite snabbt plockat den här beskrivningen från Meridium.se</p>
<blockquote><p>Med hjälp av rapportverktyget i SiteValidator kontrolleras ca 15 vanliga misstag som en redaktör kan göra. Några av dessa tester är:</p>
<ul>
<li>Att formulär som skapats med hjälp av formulärbyggaren gjorts på ett korrekt sätt</li>
<li>Att tabeller är skapade på rätt sätt och att de inte används för layout</li>
<li>Att det på varje sida finns en huvudrubrik</li>
<li>Att vissa typer av formatering inte har skett i fritexteditorn, så som det kan bli om redaktören klistrar in text från Word eller andra program</li>
<li>Att bilder har ett giltigt alt-attribut</li>
</ul>
</blockquote>
<p>SiteValidator skall också innehålla en realtidsvalidator .. det har jag behövt länge!</p>
<h3>Relaterade länkar</h3>
<ul>
<li><a href="http://meridiumproducts.blogspot.com/2009/04/antligen-ar-sitevalidator-slappt.html">Mer om lanseringen och produkten på Meridiums egen blogg</a></li>
<li><a href="http://www.newsdesk.se/pressroom/meridium/pressrelease/view/meridium-lanserar-sitevalidator-foer-oekad-tillgaenglighet-290084">Meridium lanserar SiteValidator för ökad tillgänglighet</a></li>
<li><a href="http://www.validerat.se/Blog/Meridium-lanserar-SiteValidator-ett-verktyg-fr-kad-tillgnglighet">Diskutera SiteValidator på Validerat.se´s blogg</a></li>
<li><a href="http://www.validerat.se/">Validerat.se </a></li>
</ul>
<h3>Relaterade inlägg</h3>
<ul>
<li><a href="http://larskarlsson.wordpress.com/2009/02/19/kritik-mot-kommunala-hemsidor/">Kritik mot kommunala hemsidor</a></li>
<li><a href="http://larskarlsson.wordpress.com/2009/02/11/ar-tillganglighet-bara-validerad-kod/">Är tillgänglighet bara validerad kod</a></li>
</ul>
<p>Hoppas att du hade nytta av det här lite hastiga inlägget, skriv gärna en kommentar och säg din mening.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Currency TextBox with Javascript]]></title>
<link>http://codinglifestyle.wordpress.com/2009/04/24/currency-textbox-with-javascript/</link>
<pubDate>Fri, 24 Apr 2009 13:35:13 +0000</pubDate>
<dc:creator>codinglifestyle</dc:creator>
<guid>http://codinglifestyle.wordpress.com/2009/04/24/currency-textbox-with-javascript/</guid>
<description><![CDATA[This took me a long time so here it is for prosperity.  I started by looking at Ajax&#8217;s masked ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><span style="font-size:9pt;font-family:&#34;">This took me a long time so here it is for prosperity.  I started by looking at Ajax&#8217;s masked edit field in order to enforce a simply currency field.  This was a waste of time and not up for the job.  I accomplished it with javascript instead.  Very simple, no symbols, just #####.## with the cents being optional.  </span></p>
<p><span style="font-size:9pt;font-family:&#34;">Here is the script:</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:&#34;color:green;font-size:10pt;">/*</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:&#34;color:green;font-size:10pt;">**<span>  </span>Returns the caret (cursor) position of the specified text field.</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:&#34;color:green;font-size:10pt;">**<span>  </span>Return value range is 0-oField.length.</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:&#34;color:green;font-size:10pt;">*/</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:&#34;color:blue;font-size:10pt;">function</span><span style="font-family:&#34;font-size:10pt;"> doGetCaretPosition(oField) {</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:&#34;font-size:10pt;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:&#34;font-size:10pt;"><span>    </span><span style="color:green;">// Initialize</span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:&#34;font-size:10pt;"><span>    </span><span style="color:blue;">var</span> iCaretPos = 0;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:&#34;font-size:10pt;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:&#34;font-size:10pt;"><span>    </span><span style="color:green;">// IE Support</span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:&#34;font-size:10pt;"><span>    </span><span style="color:blue;">if</span> (document.selection) {</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:&#34;font-size:10pt;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:&#34;font-size:10pt;"><span>        </span><span style="color:green;">// Set focus on the element</span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:&#34;font-size:10pt;"><span>        </span>oField.focus();</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:&#34;font-size:10pt;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:&#34;font-size:10pt;"><span>        </span><span style="color:green;">// To get cursor position, get empty selection range</span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:&#34;font-size:10pt;"><span>        </span><span style="color:blue;">var</span> oSel = document.selection.createRange();</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:&#34;font-size:10pt;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:&#34;font-size:10pt;"><span>        </span><span style="color:green;">// Move selection start to 0 position</span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:&#34;font-size:10pt;"><span>        </span>oSel.moveStart(<span style="color:#a31515;">&#8216;character&#8217;</span>, -oField.value.length);</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:&#34;font-size:10pt;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:&#34;font-size:10pt;"><span>        </span><span style="color:green;">// The caret position is selection length</span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:&#34;font-size:10pt;"><span>        </span>iCaretPos = oSel.text.length;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:&#34;font-size:10pt;"><span>    </span>}</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:&#34;font-size:10pt;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:&#34;font-size:10pt;"><span>    </span><span style="color:green;">// Firefox support</span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:&#34;font-size:10pt;"><span>    </span><span style="color:blue;">else</span> <span style="color:blue;">if</span> (oField.selectionStart &#124;&#124; oField.selectionStart == <span style="color:#a31515;">&#8216;0&#8242;</span>)</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:&#34;font-size:10pt;"><span>        </span>iCaretPos = oField.selectionStart;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:&#34;font-size:10pt;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:&#34;font-size:10pt;"><span>    </span><span style="color:green;">// Return results</span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:&#34;font-size:10pt;"><span>    </span><span style="color:blue;">return</span> (iCaretPos);</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:&#34;font-size:10pt;">}</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:&#34;font-size:10pt;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:&#34;color:blue;font-size:10pt;">function</span><span style="font-family:&#34;font-size:10pt;"> fnCurrencyOnly(o) {</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:&#34;font-size:10pt;"><span>    </span><span style="color:blue;">var</span> sValue = o.value;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:&#34;font-size:10pt;"><span>    </span><span style="color:blue;">var</span> sKey = String.fromCharCode(window.event.keyCode);</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:&#34;font-size:10pt;"><span>    </span><span style="color:blue;">var</span> range = document.selection.createRange();</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:&#34;font-size:10pt;"><span>    </span><span style="color:blue;">var</span> pos = doGetCaretPosition(o);</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:&#34;font-size:10pt;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:&#34;font-size:10pt;"><span>    </span><span style="color:blue;">if</span> (range.text == sValue) {</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:&#34;font-size:10pt;"><span>        </span>sValue = sKey;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:&#34;font-size:10pt;"><span>    </span>} <span style="color:blue;">else</span> {</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:&#34;font-size:10pt;"><span>        </span>sValue = sValue.substr(0, pos) + sKey + sValue.substr(pos);</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:&#34;font-size:10pt;"><span>    </span>}</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:&#34;font-size:10pt;"><span>    </span><span style="color:blue;">var</span> re = <span style="color:blue;">new</span> RegExp(<span style="color:#a31515;">&#8220;^\\d+(?:(\\.&#124;\\,)\\d{0,2})?$&#8221;</span>);</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:&#34;font-size:10pt;"><span>    </span><span style="color:blue;">if</span> (!sValue.match(re))</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:&#34;font-size:10pt;"><span>        </span>window.event.returnValue = <span style="color:blue;">false</span>;</span></p>
<p class="MsoNormal" style="line-height:115%;margin:0 0 10pt;"><span style="line-height:115%;font-family:&#34;font-size:10pt;">}</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:&#34;"> </span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:&#34;"><span>    </span><span style="color:blue;">&#60;</span><span style="color:#a31515;">div</span><span style="color:blue;">&#62;</span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:&#34;"><span>        </span><span style="color:blue;">&#60;</span><span style="color:#a31515;">input</span> <span style="color:red;">type</span><span style="color:blue;">=&#8221;text&#8221;</span> <span style="color:red;">onkeypress</span><span style="color:blue;">=&#8221;fnCurrencyOnly(this);&#8221;</span> <span style="color:blue;">/&#62;</span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:&#34;"><span>    </span><span style="color:blue;">&#60;/</span><span style="color:#a31515;">div</span><span style="color:blue;">&#62;</span></span></p>
<p class="MsoNormal" style="margin:0 0 10pt;"><span style="font-size:9pt;line-height:115%;font-family:&#34;"> </span></p>
<p class="MsoNormal" style="margin:0 0 10pt;"><span style="font-size:9pt;line-height:115%;font-family:&#34;">I&#8217;m sure sure who the original author is, but I found the script for doGetCaretPosition() here: <a href="http://blog.vishalon.net/index.php/javascript-getting-and-setting-caret-position-in-textarea/">http://blog.vishalon.net/index.php/javascript-getting-and-setting-caret-position-in-textarea/</a></span></p>
<p class="MsoNormal" style="margin:0 0 10pt;"><span style="font-size:9pt;line-height:115%;font-family:&#34;">Enjoy!</span></p>
<p><img src="http://blog.developers.ie/cgreen/aggbug/2839.aspx" alt="" width="1" height="1" /></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[3 Simple SEO checks]]></title>
<link>http://seoeverything.wordpress.com/2009/04/16/3-simple-seo-checks/</link>
<pubDate>Thu, 16 Apr 2009 22:52:28 +0000</pubDate>
<dc:creator>seoeverything</dc:creator>
<guid>http://seoeverything.wordpress.com/2009/04/16/3-simple-seo-checks/</guid>
<description><![CDATA[At first I am going to write about simple and effective SEO techniques anyone can do to better there]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>At first I am going to write about simple and effective SEO techniques anyone can do to better there own website and the first 3 are very simple  and only require you to check to see if your website validates if it has any broken links and finally a spell checker to find any misspelled words. You would be surprised how many website I do SEO for that do not have these one of not all 3 things done right. The links below are for you to add your domain to to see how it does in each and all are free!</p>
<p><a href="http://validator.w3.org">Validator</a></p>
<p><a href="http://validator.w3.org/checklink">Link Checker</a></p>
<p><a href="http://www.spellchecker.net/spellcheck/">Spell Checker</a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[my cell phone ringin' my ice still blingin']]></title>
<link>http://thisiscourtneyd.com/2009/04/01/my-cell-phone-ringin-my-ice-still-blingin/</link>
<pubDate>Wed, 01 Apr 2009 17:38:00 +0000</pubDate>
<dc:creator>kurtneyd</dc:creator>
<guid>http://thisiscourtneyd.com/2009/04/01/my-cell-phone-ringin-my-ice-still-blingin/</guid>
<description><![CDATA[KIOSK: validator (music video) directed by: courtney d KIOSK R.I.P KIOSK 4EVA fur-thurr ree-ding or ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>KIOSK: validator (music video)</p>
<p>directed by: courtney d</p>
<p>KIOSK R.I.P KIOSK 4EVA</p>
<p>fur-thurr ree-ding or Kiosk 101: <a href="http://myspace.com/kiosk">myspace.com/kiosk</a></p>
<p><span style="display:block;width:425px;margin:0 auto;"> <embed src='http://widgets.vodpod.com/w/video_embed/Groupvideo.2305572' type='application/x-shockwave-flash' AllowScriptAccess='always' pluginspage='http://www.macromedia.com/go/getflashplayer' wmode='transparent' flashvars='' /></p>
<div style="font-size:10px;">more about &#8220;<a href="http://vodpod.com/watch/1485863-my-cell-phone-ringin-my-ice-still-blingin?pod=kurtneyd">my cell phone ringin&#8217; my ice still bl&#8230;</a>&#8220;, posted with <a href="http://vodpod.com/wordpress">vodpod</a></div>
<p></span></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Credit Card Validator]]></title>
<link>http://eibhrum.wordpress.com/2009/03/26/credit-card-validator/</link>
<pubDate>Thu, 26 Mar 2009 02:19:30 +0000</pubDate>
<dc:creator>eibhrum</dc:creator>
<guid>http://eibhrum.wordpress.com/2009/03/26/credit-card-validator/</guid>
<description><![CDATA[You can view my work here. Another WEBDEVT requirement.]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>You can view my work <a href="http://eibhrum.site90.com/php/creditcard" target="_blank">here.</a></p>
<p>Another WEBDEVT requirement.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Html Validator]]></title>
<link>http://clubturknetseoyarismasi.wordpress.com/2009/03/15/html-validator/</link>
<pubDate>Sun, 15 Mar 2009 13:00:38 +0000</pubDate>
<dc:creator>clubturknetseoyarismasi</dc:creator>
<guid>http://clubturknetseoyarismasi.wordpress.com/2009/03/15/html-validator/</guid>
<description><![CDATA[Sitelerimizin her tarayıcıda aynı görünmesini isteriz ve bunun içinde yazdığımız html kodlarının düz]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><strong>Sitelerimizin her tarayıcıda aynı görünmesini isteriz ve bunun içinde yazdığımız <a class="st_tag internal_tag" title="Posts tagged with html" rel="tag" href="http://www.m4hsun.info/etiket/html/"><span style="color:#009acc;">html</span></a> kodlarının düzgün olması gerek.Yazdığımız <a class="st_tag internal_tag" title="Posts tagged with html" rel="tag" href="http://www.m4hsun.info/etiket/html/"><span style="color:#009acc;">html</span></a> kodlarının düzgün olup olmadığını <a class="st_tag internal_tag" title="Posts tagged with w3" rel="tag" href="http://www.m4hsun.info/etiket/w3/"><span style="color:#009acc;">W3</span></a> <a class="st_tag internal_tag" title="Posts tagged with validator" rel="tag" href="http://www.m4hsun.info/etiket/validator/"><span style="color:#009acc;">Validator</span></a> adresinden girip bakabilir.Bu noktada <a class="st_tag internal_tag" title="Posts tagged with firefox" rel="tag" href="http://www.m4hsun.info/etiket/firefox/"><span style="color:#009acc;">firefox</span></a>‘un çıkartmış olduğu bir eklenti bu hataları gösteriyor ve düzeltiliş şekillerinide ingilizce anlatıyor.</strong></p>
<p><strong><a href="https://addons.mozilla.org/en-US/firefox/addon/249"><span style="color:#009acc;">Mozilla Firefox Html Validator Eklentisi</span></a></strong></p>
</div>]]></content:encoded>
</item>

</channel>
</rss>
