<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://bestpract.us/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://bestpract.us/feed.php">
        <title>Best Practus</title>
        <description></description>
        <link>http://bestpract.us/</link>
        <image rdf:resource="http://bestpract.us/lib/images/favicon.ico" />
       <dc:date>2009-08-04T18:22:06-07:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=accounting_for_browsers&amp;rev=1216001391&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=actionscript&amp;rev=1237429428&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=add_or_remove_dynamically_added_elements&amp;rev=1215714139&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=ajax_updates_to_table_elements&amp;rev=1237429430&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=alphapng&amp;rev=1237429430&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=ant&amp;rev=1237429431&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=ant_clean_target&amp;rev=1237429432&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=atg&amp;rev=1249116664&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=bicubic_image_resampling&amp;rev=1214538005&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=bind_function&amp;rev=1237429433&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=bugs_and_workarounds&amp;rev=1237429434&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=code&amp;rev=1214424090&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=conditional_comments&amp;rev=1215998632&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=creating_pagination_for_repository_search_results&amp;rev=1237429436&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=css&amp;rev=1215957104&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=double_margin&amp;rev=1214538445&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=flash&amp;rev=1237429438&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=form_validation&amp;rev=1237429439&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=formatting_css&amp;rev=1237429439&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=generate_valid_xhtml&amp;rev=1237429440&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=how_do_i_find_what_distribution_of_linux_i_am_on&amp;rev=1237429441&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=how_to_resize_images_and_maintain_original_sharpness&amp;rev=1237429441&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=html&amp;rev=1214534840&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=internet_explorer&amp;rev=1214537595&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=javascript&amp;rev=1214517029&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=javascript_frameworks&amp;rev=1217677077&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=javascript_links&amp;rev=1237429445&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=linux&amp;rev=1237429445&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=mootools&amp;rev=1216662790&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=mootools_1.11_slide_show_with_json_interjection&amp;rev=1237429447&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=mootools_1.2_class_template&amp;rev=1216676284&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=mootools_1.2_detect_when_a_user_stops_resizing_the_browser_window&amp;rev=1237429448&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=mootools_plugins&amp;rev=1215237733&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=parallax&amp;rev=1215238367&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=php&amp;rev=1215239397&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=poof&amp;rev=1215858867&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=prototype&amp;rev=1215272125&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=prototype_stop_page_load&amp;rev=1237429453&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=selectors_1.2&amp;rev=1215412295&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=sql&amp;rev=1237429455&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=sql_logging&amp;rev=1237429456&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=sql_update_in_one_table_based_on_values_in_another&amp;rev=1237429456&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=start&amp;rev=1231274560&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=stop_page_load&amp;rev=1237429458&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=submit_button_as_image&amp;rev=1215239371&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=target_filter_out_gecko&amp;rev=1216092129&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=target_filter_out_internet_explorer_7_8&amp;rev=1237429459&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=target_modern_opera_versions&amp;rev=1216091572&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=target_only_konqueror_3.4.3_up&amp;rev=1237429461&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=target_safari_webkit_shiira_and_omniweb_5&amp;rev=1215999627&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=test_if_empty&amp;rev=1237429462&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=tick_marks&amp;rev=1237429463&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=traverseing_the_displaylist&amp;rev=1237429463&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=unminification&amp;rev=1237429464&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=variable_names&amp;rev=1237429464&amp;do=diff"/>
                <rdf:li rdf:resource="http://bestpract.us/doku.php?id=web_images&amp;rev=1214537764&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://bestpract.us/lib/images/favicon.ico">
        <title>Best Practus</title>
        <link>http://bestpract.us/</link>
        <url>http://bestpract.us/lib/images/favicon.ico</url>
    </image>
    <item rdf:about="http://bestpract.us/doku.php?id=accounting_for_browsers&amp;rev=1216001391&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-07-13T19:09:51-07:00</dc:date>
        <title>accounting_for_browsers</title>
        <link>http://bestpract.us/doku.php?id=accounting_for_browsers&amp;rev=1216001391&amp;do=diff</link>
        <description>A problem that seems to be a reoccurring theme that people just don't account for - browser upgrades. We can generally see that in browsers like Safari, Fire Fox, Opera, et al. they get better by adding canvas support, CSS3 selectors and other aspects that help make web development more powerful, allowing for better user experiences online.</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=actionscript&amp;rev=1237429428&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-03-18T19:23:48-07:00</dc:date>
        <title>actionscript</title>
        <link>http://bestpract.us/doku.php?id=actionscript&amp;rev=1237429428&amp;do=diff</link>
        <description>*  Traverseing the displayList</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=add_or_remove_dynamically_added_elements&amp;rev=1215714139&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-07-10T11:22:19-07:00</dc:date>
        <title>add_or_remove_dynamically_added_elements</title>
        <link>http://bestpract.us/doku.php?id=add_or_remove_dynamically_added_elements&amp;rev=1215714139&amp;do=diff</link>
        <description>This came up because of a wholesale order form I'm working on (using PHP and mootools) that I'm wanting to do without requiring refreshes. The beauty of this beast, is “no javascript” isn't an option, so I don't have to worry about that - initially.</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=ajax_updates_to_table_elements&amp;rev=1237429430&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-03-18T19:23:50-07:00</dc:date>
        <title>ajax_updates_to_table_elements</title>
        <link>http://bestpract.us/doku.php?id=ajax_updates_to_table_elements&amp;rev=1237429430&amp;do=diff</link>
        <description>IRC


My needs were simple. I wanted to use AJAX to pop up an embedded dialog (just some fancy CSS styling to get a DIV hovering over an overlay, really), update some values, and have that info populate back to the table where said information was presently displayed. I also wanted to be able to add new records and delete existing rows through AJAX calls rather than refreshing the whole page.</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=alphapng&amp;rev=1237429430&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-03-18T19:23:50-07:00</dc:date>
        <title>alphapng</title>
        <link>http://bestpract.us/doku.php?id=alphapng&amp;rev=1237429430&amp;do=diff</link>
        <description>AlphaPNG for 1.2

Created for Internet Explorer 6 so that you can use PNGs for img tags, inline/external css background images.</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=ant&amp;rev=1237429431&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-03-18T19:23:51-07:00</dc:date>
        <title>ant</title>
        <link>http://bestpract.us/doku.php?id=ant&amp;rev=1237429431&amp;do=diff</link>
        <description>*  ant &quot;clean&quot; target</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=ant_clean_target&amp;rev=1237429432&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-03-18T19:23:52-07:00</dc:date>
        <title>ant_clean_target</title>
        <link>http://bestpract.us/doku.php?id=ant_clean_target&amp;rev=1237429432&amp;do=diff</link>
        <description>This is how the default dev/stage push actions should work.

A clean build is one with temp, test, log, property, source and so on files removed from the build. While the other standard build is just grab everything. The “just grab everything” shouldn't be an option in the ant tasks at all.


 
So just point your build task to use an excludesfile which includes everything that you don't want to be included in the build. Here's a good starting point:</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=atg&amp;rev=1249116664&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-08-01T01:51:04-07:00</dc:date>
        <title>atg</title>
        <link>http://bestpract.us/doku.php?id=atg&amp;rev=1249116664&amp;do=diff</link>
        <description>*  Creating Pagination for Repository Search Results

NDJSDSKJDLKSAJFLKsa

Code Snippets

	*  Generate Valid XHTML
	*  SQL Logging
	*  Test if Empty

References and other Resources

	*  BeTweenGo
	*  ATG Solutions Strategy</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=bicubic_image_resampling&amp;rev=1214538005&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-06-26T20:40:05-07:00</dc:date>
        <title>bicubic_image_resampling</title>
        <link>http://bestpract.us/doku.php?id=bicubic_image_resampling&amp;rev=1214538005&amp;do=diff</link>
        <description>*  Allows IE to render images like Safari/Fire Fox3, allowing you to scale images in a better fashion.
	*  Let's assume you want IE to scale and sample your images like other browsers, then you'd include this css code:

Related Wiki Entries

	*  how_to_resize_images_and_maintain_original_sharpness</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=bind_function&amp;rev=1237429433&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-03-18T19:23:53-07:00</dc:date>
        <title>bind_function</title>
        <link>http://bestpract.us/doku.php?id=bind_function&amp;rev=1237429433&amp;do=diff</link>
        <description>The bind function is prototyped to the function element and so is called directly upon a function. When calling bind you pass it an element to which the 'this' of the function then corresponds to.

The above code would attach the focus event to ‘element’, on focus the browser would alert the id of that element.</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=bugs_and_workarounds&amp;rev=1237429434&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-03-18T19:23:54-07:00</dc:date>
        <title>bugs_and_workarounds</title>
        <link>http://bestpract.us/doku.php?id=bugs_and_workarounds&amp;rev=1237429434&amp;do=diff</link>
        <description>Double Margin</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=code&amp;rev=1214424090&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-06-25T13:01:30-07:00</dc:date>
        <title>code</title>
        <link>http://bestpract.us/doku.php?id=code&amp;rev=1214424090&amp;do=diff</link>
        <description>General Code

	*  CSS
	*  HTML
	*  Javascript

Javascript Frameworks

	*  jQuery
	*  Mootools

RIA

	*  Flash
	*  Flex
	*  Actionscript</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=conditional_comments&amp;rev=1215998632&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-07-13T18:23:52-07:00</dc:date>
        <title>conditional_comments</title>
        <link>http://bestpract.us/doku.php?id=conditional_comments&amp;rev=1215998632&amp;do=diff</link>
        <description>The general bad boy of commenting is CSS styling for the various flavors of Internet Explorer.
What this allows you to do is create valid CSS code for your sites (and a warm fuzzy feeling knowing you're a better web developer) - but still managing to account for internet explorer quirks.</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=creating_pagination_for_repository_search_results&amp;rev=1237429436&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-03-18T19:23:56-07:00</dc:date>
        <title>creating_pagination_for_repository_search_results</title>
        <link>http://bestpract.us/doku.php?id=creating_pagination_for_repository_search_results&amp;rev=1237429436&amp;do=diff</link>
        <description>Hai hello iam fine.</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=css&amp;rev=1215957104&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-07-13T06:51:44-07:00</dc:date>
        <title>css</title>
        <link>http://bestpract.us/doku.php?id=css&amp;rev=1215957104&amp;do=diff</link>
        <description>This is meant to be a collection of CSS best practices and reference to code and sites that teach best practices, or do their best to make it easier for beginners to have a jumping point.

CSS Coding

	*  Formatting CSS
	*  Accounting for browsers
	*  Conditional Comments</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=double_margin&amp;rev=1214538445&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-06-26T20:47:25-07:00</dc:date>
        <title>double_margin</title>
        <link>http://bestpract.us/doku.php?id=double_margin&amp;rev=1214538445&amp;do=diff</link>
        <description>Code:

The offending code:



The corrected code:


Documentation on other sites:

	*  Bug Fix: IE Double Margin Float Bug - CSS Newbie
	*  The IE Doubled Float-Margin Bug - Position Is Everything

Sites using this method:

	*  None listed at the moment.</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=flash&amp;rev=1237429438&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-03-18T19:23:58-07:00</dc:date>
        <title>flash</title>
        <link>http://bestpract.us/doku.php?id=flash&amp;rev=1237429438&amp;do=diff</link>
        <description>I'll be the first to admit I don't know Flash Best Practices, so this'll be a holding place for tutorials.

Eventually, I'd like to get the source code/examples put up here as well (as I hate nothing more than checking a link and finding out it's no longer in existence).</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=form_validation&amp;rev=1237429439&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-03-18T19:23:59-07:00</dc:date>
        <title>form_validation</title>
        <link>http://bestpract.us/doku.php?id=form_validation&amp;rev=1237429439&amp;do=diff</link>
        <description>submit_button_as_image


The _x- and _y-coordinates can be used to improve the security of a form.

	*  Useful to see if the form has been filled by a human.
	*  A spam-bot won't submit any coordinates but a human has to click on the button and so there will always be coordinates (you'll have to deactive submitting with the ENTER-button).</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=formatting_css&amp;rev=1237429439&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-03-18T19:23:59-07:00</dc:date>
        <title>formatting_css</title>
        <link>http://bestpract.us/doku.php?id=formatting_css&amp;rev=1237429439&amp;do=diff</link>
        <description>*  Comment, comment, comment! You can never use too many comments to explain your code.
		*  You never know who may need to use your code after you, and comments help cut down on “teaching” what you've done to other developers.

	*  Alphabetize! Organize your CSS alphabetically, as it makes it easier to scan and eliminates guess-work on properties if you work quickly (I've seen people do three 
	*  Use CSS Shorthand! Why do this:</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=generate_valid_xhtml&amp;rev=1237429440&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-03-18T19:24:00-07:00</dc:date>
        <title>generate_valid_xhtml</title>
        <link>http://bestpract.us/doku.php?id=generate_valid_xhtml&amp;rev=1237429440&amp;do=diff</link>
        <description></description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=how_do_i_find_what_distribution_of_linux_i_am_on&amp;rev=1237429441&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-03-18T19:24:01-07:00</dc:date>
        <title>how_do_i_find_what_distribution_of_linux_i_am_on</title>
        <link>http://bestpract.us/doku.php?id=how_do_i_find_what_distribution_of_linux_i_am_on&amp;rev=1237429441&amp;do=diff</link>
        <description>Code:
ls /etc | grep release

You should then see a file called &lt;distro_name&gt;_release (or something similar). Then:
Code:
cat /etc/&lt;distro_name&gt;_release

Code:
uname -a

Get name and information about the running kernel



Sources and References

&lt;http://www.linuxforums.org/forum/misc/85699-how-find-out-distro-im-running.html&gt;</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=how_to_resize_images_and_maintain_original_sharpness&amp;rev=1237429441&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-03-18T19:24:01-07:00</dc:date>
        <title>how_to_resize_images_and_maintain_original_sharpness</title>
        <link>http://bestpract.us/doku.php?id=how_to_resize_images_and_maintain_original_sharpness&amp;rev=1237429441&amp;do=diff</link>
        <description>Requirements

	*  Adobe Photoshop (CS or greater)
	*  Large, high-quality image.






Best Practus

When you want to reduce an image go to the Image&gt; Image Size menu. Click on Resample Image and choose Bicubic Sharper from the drop-down menu.
This is the best setting for making sure that an image doesn't blur. The example photo of the flower started at 2,000 pixels across. I stepped it down to 250, and then again to 125 with almost no loss of sharpness. For enlarging an image select Bicubic Smo…</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=html&amp;rev=1214534840&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-06-26T19:47:20-07:00</dc:date>
        <title>html</title>
        <link>http://bestpract.us/doku.php?id=html&amp;rev=1214534840&amp;do=diff</link>
        <description>*  HTML
	*  CSS
	*  JavaScript</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=internet_explorer&amp;rev=1214537595&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-06-26T20:33:15-07:00</dc:date>
        <title>internet_explorer</title>
        <link>http://bestpract.us/doku.php?id=internet_explorer&amp;rev=1214537595&amp;do=diff</link>
        <description>IEIEconditional comments

	*  Bicubic Image Resampling
	*  Bugs and Workarounds</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=javascript&amp;rev=1214517029&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-06-26T14:50:29-07:00</dc:date>
        <title>javascript</title>
        <link>http://bestpract.us/doku.php?id=javascript&amp;rev=1214517029&amp;do=diff</link>
        <description>Javascript Links


Minification

	*  Online JavaScript Minification Tool
	*  UnMinification</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=javascript_frameworks&amp;rev=1217677077&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-08-02T04:37:57-07:00</dc:date>
        <title>javascript_frameworks</title>
        <link>http://bestpract.us/doku.php?id=javascript_frameworks&amp;rev=1217677077&amp;do=diff</link>
        <description>This isn't about who is the best - it's about the best way to use the libraries. I don't know if it's even possible to really get the definitive answer on which framework could do what better (or best).

	*  The Dojo Toolkit
	*  jQuery
	*  Mochikit
	*  mooTools
	*  prototype
	*  qooxdoo
	*  Script.aculo.us extension for Prototype
	*  SmartClient
	*  Yahoo! User Interface</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=javascript_links&amp;rev=1237429445&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-03-18T19:24:05-07:00</dc:date>
        <title>javascript_links</title>
        <link>http://bestpract.us/doku.php?id=javascript_links&amp;rev=1237429445&amp;do=diff</link>
        <description>Using JavaScript for links:




unobtrusive JavaScript


GOOD Examples

snippet:


This is the most standard way to link to another URL.

snippet:


This is the proper way to trigger a JavaScript action by clicking on an element.

snippet:


This is the proper way to trigger a JavaScript action by clicking on an element while simultaneosly providing an alternate URL for non-javascript users via the href attribute. By returning false all JavaScript enabled browsers will ignore the href value. Pro…</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=linux&amp;rev=1237429445&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-03-18T19:24:05-07:00</dc:date>
        <title>linux</title>
        <link>http://bestpract.us/doku.php?id=linux&amp;rev=1237429445&amp;do=diff</link>
        <description>How do I find what distribution of linux I am on?</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=mootools&amp;rev=1216662790&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-07-21T10:53:10-07:00</dc:date>
        <title>mootools</title>
        <link>http://bestpract.us/doku.php?id=mootools&amp;rev=1216662790&amp;do=diff</link>
        <description>mooTools Site

	*  mooTools Plugins
	*  bind function
	*  stop page load
	*  AJAX Updates to Table Elements
	*  Selectors 1.2
	*  Add or Remove Dynamically Added Elements
	*  mootools 1.2 Detect when a user stops resizing the browser window
	*  mootools 1.11 Slide Show with JSON interjection
	*  mootools 1.2 Class Template</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=mootools_1.11_slide_show_with_json_interjection&amp;rev=1237429447&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-03-18T19:24:07-07:00</dc:date>
        <title>mootools_1.11_slide_show_with_json_interjection</title>
        <link>http://bestpract.us/doku.php?id=mootools_1.11_slide_show_with_json_interjection&amp;rev=1237429447&amp;do=diff</link>
        <description>Basically, the mootools script grabs an ID and runs with it.

Stills needs some tweaking, probably rewrite it as a class, and I don't like the transitions.


The HTML Code

The JSON Data File

The Javascript File

Where the magic happens</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=mootools_1.2_class_template&amp;rev=1216676284&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-07-21T14:38:04-07:00</dc:date>
        <title>mootools_1.2_class_template</title>
        <link>http://bestpract.us/doku.php?id=mootools_1.2_class_template&amp;rev=1216676284&amp;do=diff</link>
        <description>The following code is an easy reference point to starting your mootools class.


Class Code Example

Class Usage Example

Include this in your HTML code (preferably in the footer)


References and Sources

	*  MooTools 1.2 Class Template - Dave Walsh's Blog</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=mootools_1.2_detect_when_a_user_stops_resizing_the_browser_window&amp;rev=1237429448&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-03-18T19:24:08-07:00</dc:date>
        <title>mootools_1.2_detect_when_a_user_stops_resizing_the_browser_window</title>
        <link>http://bestpract.us/doku.php?id=mootools_1.2_detect_when_a_user_stops_resizing_the_browser_window&amp;rev=1237429448&amp;do=diff</link>
        <description>Well this is a IE only problem, because in the other browser the
onResize event is fired only once, when the user finishes resizing.
But it IE it's actually problematic if your resize function is
something complex that involves animations. here is one example:</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=mootools_plugins&amp;rev=1215237733&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-07-04T23:02:13-07:00</dc:date>
        <title>mootools_plugins</title>
        <link>http://bestpract.us/doku.php?id=mootools_plugins&amp;rev=1215237733&amp;do=diff</link>
        <description>This is meant to be a collection of mooTools code and plugins.

AlphaPNG

	*  Allows the use of transparent PNG files on IE6. This includes IMG tags, Inline CSS and CSS Files.

Poof

	*  Duplicates the “poof” when you delete an element.

Parallax</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=parallax&amp;rev=1215238367&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-07-04T23:12:47-07:00</dc:date>
        <title>parallax</title>
        <link>http://bestpract.us/doku.php?id=parallax&amp;rev=1215238367&amp;do=diff</link>
        <description>Based off of How to recreate silverbacks parallax

and shown here: SilverbackApp.com</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=php&amp;rev=1215239397&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-07-04T23:29:57-07:00</dc:date>
        <title>php</title>
        <link>http://bestpract.us/doku.php?id=php&amp;rev=1215239397&amp;do=diff</link>
        <description>Code Samples

Submit Button As Image

Form Validation</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=poof&amp;rev=1215858867&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-07-12T03:34:27-07:00</dc:date>
        <title>poof</title>
        <link>http://bestpract.us/doku.php?id=poof&amp;rev=1215858867&amp;do=diff</link>
        <description>Poof Effect for MooTools 1.2

Mac OS X users will be familiar with the poof animation that occurs when application icons are removed from the dock. The animation looks nice, is unobtrusive, and provides a clear indication of the function being performed.</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=prototype&amp;rev=1215272125&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-07-05T08:35:25-07:00</dc:date>
        <title>prototype</title>
        <link>http://bestpract.us/doku.php?id=prototype&amp;rev=1215272125&amp;do=diff</link>
        <description>Prototype JS


	*  prototype stop page load</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=prototype_stop_page_load&amp;rev=1237429453&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-03-18T19:24:13-07:00</dc:date>
        <title>prototype_stop_page_load</title>
        <link>http://bestpract.us/doku.php?id=prototype_stop_page_load&amp;rev=1237429453&amp;do=diff</link>
        <description>This code basically helps kill a page when you are dynamically pulling in content. Useful for AJAX calls that you need to abruptly cut.
It works with Firefox, Safari, and the troublemaker…Internet Explorer.</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=selectors_1.2&amp;rev=1215412295&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-07-06T23:31:35-07:00</dc:date>
        <title>selectors_1.2</title>
        <link>http://bestpract.us/doku.php?id=selectors_1.2&amp;rev=1215412295&amp;do=diff</link>
        <description>Mootools 1.11

The $ (dollar) function


Most people think this is just a shortcut for document.getElementById(), but actually it’s not. The $() takes one argument. This argument is called mixed in php terms, because it can be a string, or a dom element. Whenever the argument is a string s, it returns the element with id s with all Element methods applied. When the argument is a dom element, it just applies all Element methods to the element, and returns it. Here’s how it works:</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=sql&amp;rev=1237429455&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-03-18T19:24:15-07:00</dc:date>
        <title>sql</title>
        <link>http://bestpract.us/doku.php?id=sql&amp;rev=1237429455&amp;do=diff</link>
        <description>MySQL, MSSQL, etc.

Code Examples

	*  SQL update in one table based on values in another</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=sql_logging&amp;rev=1237429456&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-03-18T19:24:16-07:00</dc:date>
        <title>sql_logging</title>
        <link>http://bestpract.us/doku.php?id=sql_logging&amp;rev=1237429456&amp;do=diff</link>
        <description>To log SQL turn on logging debug for your Repository component.

For example, set /betweengo/repository/Repository.loggingDebug to true.

Note that a lot of SQL statements are outputted. If you want to selectively turn it on and off you can put this in your JSP where you want to start logging SQL.</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=sql_update_in_one_table_based_on_values_in_another&amp;rev=1237429456&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-03-18T19:24:16-07:00</dc:date>
        <title>sql_update_in_one_table_based_on_values_in_another</title>
        <link>http://bestpract.us/doku.php?id=sql_update_in_one_table_based_on_values_in_another&amp;rev=1237429456&amp;do=diff</link>
        <description>The UPDATE statement allows you to update a single record or multiple records in a table.

The syntax for the UPDATE statement is:


Code Examples

Example #1 - Simple example

Let's take a look at a very simple example.


This statement would update all supplier names in the suppliers table from IBM to HP.</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=start&amp;rev=1231274560&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-01-06T12:42:40-07:00</dc:date>
        <title>start</title>
        <link>http://bestpract.us/doku.php?id=start&amp;rev=1231274560&amp;do=diff</link>
        <description>Best Pract.us started as an idea of what would happen if you collect all the information online in one place. Not necessarily factual - but the opinions of what's best. How to build a website. How to format your code. The best way to code javascript. Syntax. Font-size. File-size. SEO. Targeting and filtering. It's not about arguing, but presenting, discussing, editing. You write it, let the world judge it.</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=stop_page_load&amp;rev=1237429458&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-03-18T19:24:18-07:00</dc:date>
        <title>stop_page_load</title>
        <link>http://bestpract.us/doku.php?id=stop_page_load&amp;rev=1237429458&amp;do=diff</link>
        <description>This code basically helps kill a page when you are dynamically pulling in content. Useful for AJAX calls that you need to abruptly cut.
It works with Firefox, Safari, and the troublemaker…Internet Explorer.</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=submit_button_as_image&amp;rev=1215239371&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-07-04T23:29:31-07:00</dc:date>
        <title>submit_button_as_image</title>
        <link>http://bestpract.us/doku.php?id=submit_button_as_image&amp;rev=1215239371&amp;do=diff</link>
        <description>“”


As you probably know, you can recognize a form submission from a “submit” input type by placing the following code in the “processing” PHP script:


Did you know, however, that when using an “image” input type to submit the form, the above wont work?  You need to add a “_x” to the field name in PHP:</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=target_filter_out_gecko&amp;rev=1216092129&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-07-14T20:22:09-07:00</dc:date>
        <title>target_filter_out_gecko</title>
        <link>http://bestpract.us/doku.php?id=target_filter_out_gecko&amp;rev=1216092129&amp;do=diff</link>
        <description>Safari 3.1.1 and up may apply the old versions of these rules.. just throw an extra [xmlns^=””] to filter out Safari.

This hack hinges on a difference in interpretation, namely, what would the selector [x*=””] mean? Should it match any x, or never (regardless of what x is)? It turns out that almost all CSS3-capable browsers believe it should match, but Gecko does not. This means that if we reverse the clause using a :not we can target only Gecko, or we can filter it without the :not.</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=target_filter_out_internet_explorer_7_8&amp;rev=1237429459&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-03-18T19:24:19-07:00</dc:date>
        <title>target_filter_out_internet_explorer_7_8</title>
        <link>http://bestpract.us/doku.php?id=target_filter_out_internet_explorer_7_8&amp;rev=1237429459&amp;do=diff</link>
        <description>The IE8 beta fixes a bunch of comment-parsing bugs IE7 suffered from so it’s pretty trivial to target IE8 only by adding one of those comments to an IE7-only hack. Phil Schalm’s className trick combines with this to provide ways to target IE7 and IE8, or neither. Targetting IE7 alone is more tricky, and the best I could come up with is a non-validating hack. This reduces it’s usefulness, but since I place IE-specific hacks into conditional comments I don’t mind. Note that IE8 actually suffers fr…</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=target_modern_opera_versions&amp;rev=1216091572&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-07-14T20:12:52-07:00</dc:date>
        <title>target_modern_opera_versions</title>
        <link>http://bestpract.us/doku.php?id=target_modern_opera_versions&amp;rev=1216091572&amp;do=diff</link>
        <description>Target with CSS hacks

Target Opera 7.2 up, 9 up, or 9.5 up

Target Opera 9-9.2x

Why not :lang pseudo-class?

They are a bad solution on internationalized sites.

These hacks are considered “valid” although the W3C Validator doesn't parse vendor-extensions properly - they are a part of the Valid CSS specs.</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=target_only_konqueror_3.4.3_up&amp;rev=1237429461&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-03-18T19:24:21-07:00</dc:date>
        <title>target_only_konqueror_3.4.3_up</title>
        <link>http://bestpract.us/doku.php?id=target_only_konqueror_3.4.3_up&amp;rev=1237429461&amp;do=diff</link>
        <description>This hack is not likely to last long, but Konqueror is currently the only browser that currently supports :nth-child and similar CSS 3 properties. In the unlikely event that you have to target only Konqueror, you can use something like html:not(:nth-child(1)).</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=target_safari_webkit_shiira_and_omniweb_5&amp;rev=1215999627&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-07-13T18:40:27-07:00</dc:date>
        <title>target_safari_webkit_shiira_and_omniweb_5</title>
        <link>http://bestpract.us/doku.php?id=target_safari_webkit_shiira_and_omniweb_5&amp;rev=1215999627&amp;do=diff</link>
        <description>The xmlns version of this hack is applied by Opera 9.5, so it’s gone unless you want to target both browsers. The other Safari 2 hack still works fine. We can target Safari 2-era engines using last-child in conjuction with a double-root negation of :not(:root:root). To target only recent WebKits we can use an @media filter with the negation, as pointed out by Chris Griego. Gecko does not understand double-not clauses like this, so it’s pretty safe.</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=test_if_empty&amp;rev=1237429462&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-03-18T19:24:22-07:00</dc:date>
        <title>test_if_empty</title>
        <link>http://bestpract.us/doku.php?id=test_if_empty&amp;rev=1237429462&amp;do=diff</link>
        <description>This article, InformIT: The JSTL Expression Language &gt; Expression Language Overview, informed me on how to test if something is empty or not.

Code Examples


Empty?



Not empty?


Source

	*  Test If Empty - betweenGo</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=tick_marks&amp;rev=1237429463&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-03-18T19:24:23-07:00</dc:date>
        <title>tick_marks</title>
        <link>http://bestpract.us/doku.php?id=tick_marks&amp;rev=1237429463&amp;do=diff</link>
        <description>Tick Marks are generally used in code to assist in identifying variables.</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=traverseing_the_displaylist&amp;rev=1237429463&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-03-18T19:24:23-07:00</dc:date>
        <title>traverseing_the_displaylist</title>
        <link>http://bestpract.us/doku.php?id=traverseing_the_displaylist&amp;rev=1237429463&amp;do=diff</link>
        <description>I believe the scroll pane component is actually a series of nested
movieclips- the controlling object and the load container.
parent.parent.gotoAndStop might work, or you can traverse the
displayList by iterating up the parents to see how far you're nested
as follows:</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=unminification&amp;rev=1237429464&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-03-18T19:24:24-07:00</dc:date>
        <title>unminification</title>
        <link>http://bestpract.us/doku.php?id=unminification&amp;rev=1237429464&amp;do=diff</link>
        <description>*  Install Greasemonkey
	*  Install this javascript beautifier Greasemonkey script
	*  Cut-and-paste the minified javascript from the site you want to work with
	*  Visit nopaste.voric.com and cut-and-paste the code from the site
		*  Click the Javascript option
		*  Change “Save until” to 1 day
		*  Cut and paste the code from the site
		*  Click “Save”</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=variable_names&amp;rev=1237429464&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-03-18T19:24:24-07:00</dc:date>
        <title>variable_names</title>
        <link>http://bestpract.us/doku.php?id=variable_names&amp;rev=1237429464&amp;do=diff</link>
        <description>*  Make your variable names long and descriptive.
		*  Using long names prevents the ambiguity of short or cryptic names.

	*  Put units in your variable names
		*  If you are writing an engineering application you are going to be using variables with units. Embed the unit name in the variable, for example, distanceInMM.</description>
    </item>
    <item rdf:about="http://bestpract.us/doku.php?id=web_images&amp;rev=1214537764&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-06-26T20:36:04-07:00</dc:date>
        <title>web_images</title>
        <link>http://bestpract.us/doku.php?id=web_images&amp;rev=1214537764&amp;do=diff</link>
        <description>Tips, tricks, etc. for creating the best images possible.

How To Resize Images And Maintain Original Sharpness</description>
    </item>
</rdf:RDF>
