<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Element Design &#187; javascript</title>
	<atom:link href="http://elementdesignllc.com/tag/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://elementdesignllc.com</link>
	<description></description>
	<lastBuildDate>Tue, 31 Jan 2012 18:58:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Print a Webpage Bypassing the Print Settings Dialog</title>
		<link>http://elementdesignllc.com/2011/01/print-a-webpage-bypassing-the-print-settings-dialog/</link>
		<comments>http://elementdesignllc.com/2011/01/print-a-webpage-bypassing-the-print-settings-dialog/#comments</comments>
		<pubDate>Tue, 04 Jan 2011 18:47:55 +0000</pubDate>
		<dc:creator>chad</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[print]]></category>

		<guid isPermaLink="false">http://elementdesignllc.com/?p=797</guid>
		<description><![CDATA[When developing software for intranets or kiosk-like applications, a critical feature is automatically printing documents for specific tasks (i.e., printing a reciept when a sale is completed). Windows environments can use Printer Functions provided by PHP, however for Linux environments a different solution is needed. If the application is in a controlled environment, and the [...]]]></description>
			<content:encoded><![CDATA[<p>When developing software for intranets or kiosk-like applications, a critical feature is automatically printing documents for specific tasks (i.e., printing a reciept when a sale is completed). Windows environments can use <a href="http://us2.php.net/printer" target="_blank">Printer Functions</a> provided by PHP, however for Linux environments a different solution is needed.</p>
<p>If the application is in a controlled environment, and the easiest solution is a combination of JavaScript and a Firefox extension called <a href="http://jsprintsetup.mozdev.org/reference.html" target="_blank">JSPrintSetup</a>.</p>
<p><a href="http://jsprintsetup.mozdev.org/reference.html" target="_blank">JSPrintSetup</a> creates a robust collection of controls through JavaScript variables. For example, printing the current page is as simple as:</p>
<pre class="brush: jscript; title: ; notranslate">
&lt;script type=&quot;text/javascript&quot;&gt;
   // set the printer (based on your printer name)
   jsPrintSetup.setPrinter('hp psc 1310 series');

   // sets silent printing (skip the print settings dialog box)
   jsPrintSetup.setSilentPrint(true);

   // print the page
   jsPrintSetup.print();
&lt;/script&gt;
</pre>
<p>As long as the webpage is viewed in Firefox with the JSPrintSetup extension installed, the page will print, skipping the print settings dialog box. For a full list of available options, visit the <a href="http://jsprintsetup.mozdev.org/reference.html" target="_blank">JSPrintSetup website</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://elementdesignllc.com/2011/01/print-a-webpage-bypassing-the-print-settings-dialog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CKEditor ReplaceAll Config</title>
		<link>http://elementdesignllc.com/2009/12/ckeditor-replaceall-config/</link>
		<comments>http://elementdesignllc.com/2009/12/ckeditor-replaceall-config/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 21:12:03 +0000</pubDate>
		<dc:creator>chad</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[ckeditor]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[wysiwyg]]></category>

		<guid isPermaLink="false">http://elementdesignllc.com/?p=429</guid>
		<description><![CDATA[To place configuration values into the ReplaceAll command for CKEditor, use the following format: For more configuration options, visit CKEditor&#8217;s Developer Documentation.]]></description>
			<content:encoded><![CDATA[<p>To place configuration values into the ReplaceAll command for CKEditor, use the following format:</p>
<pre class="brush: jscript; title: ; notranslate">
CKEDITOR.replaceAll(function( textarea, config ){
   config.toolbar_Full =
      [
        ['Source','-','Save','NewPage','Preview','-','Templates'],
        ['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'],
        ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
        ['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField'],
        '/',
        ['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
        ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
        ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
        ['Link','Unlink','Anchor'],
        ['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
        '/',
        ['Styles','Format','Font','FontSize'],
        ['TextColor','BGColor'],
        ['Maximize', 'ShowBlocks','-','About']
     ];
});
</pre>
<p>For more configuration options, visit <a href="http://docs.cksource.com/CKEditor_3.x/Developers_Guide/Setting_Configurations" target="_blank">CKEditor&#8217;s Developer Documentation</a>.</pre>
]]></content:encoded>
			<wfw:commentRss>http://elementdesignllc.com/2009/12/ckeditor-replaceall-config/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

