<?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>FiddyP &#187; firefox</title>
	<atom:link href="http://fiddyp.co.uk/tag/firefox/feed/" rel="self" type="application/rss+xml" />
	<link>http://fiddyp.co.uk</link>
	<description>The personal blog of Andy Bailey</description>
	<lastBuildDate>Tue, 17 Jan 2012 09:02:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Bypass / Disable print dialog box in firefox with javascript print()</title>
		<link>http://fiddyp.co.uk/bypass-disable-print-dialog-box-in-firefox-with-javascript-print/</link>
		<comments>http://fiddyp.co.uk/bypass-disable-print-dialog-box-in-firefox-with-javascript-print/#comments</comments>
		<pubDate>Sat, 01 Jan 2011 18:23:43 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[dialog box]]></category>
		<category><![CDATA[disable]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[print]]></category>
		<category><![CDATA[profit]]></category>

		<guid isPermaLink="false">http://fiddyp.co.uk/?p=1887</guid>
		<description><![CDATA[Just print! In my ePoS system project, I have the need to open a popup with javascript and print the contents without seeing the dialog box. Everywhere I [..]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Ffiddyp.co.uk%2Fbypass-disable-print-dialog-box-in-firefox-with-javascript-print%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ffiddyp.co.uk%2Fbypass-disable-print-dialog-box-in-firefox-with-javascript-print%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><img src="http://fiddyp.co.uk/wp-content/uploads/no-print-dialog.png" alt="" title="no-print-dialog" width="257" height="196" class="aligncenter size-full wp-image-1900" /></p>
<h2>Just print!</h2>
<p>In my ePoS system project, I have the need to open a popup with javascript and print the contents without seeing the dialog box.</p>
<p>Everywhere I searched, there were the &#8216;you don&#8217;t wanna do that because&#8230;.&#8217; from know it all keyboard warriors saying it was bad because evil doers could send porn to your printer. </p>
<h2>What about intranets and web apps?</h2>
<p>Finally, I figured it out and as long as you&#8217;re using Firefox and you have access to it then you&#8217;re ready to make it print without a nasty dialog&#8230;</p>
<ul>
<li>Open firefox and put <strong>about:config</strong> in the address bar and press enter (you will need to click the button that shows to say you know what you&#8217;re doing)</li>
<li>Type <strong>print.always_print_silent</strong> in the filter box at the top<br />
If you have an entry already there and it is set to false just right click it and choose &#8216;toggle&#8217; to set it to true.<br />
If there is no entry there already then follow on&#8230;</p>
<ul>
<li>right click the screen and choose New->boolean</li>
<li>enter <strong>print.always_print_silent</strong> as the preference name when asked and press enter</li>
<li>set boolean value to <strong>true</strong> and press enter</li>
</ul>
</li>
</ul>
<p>That&#8217;s it, you will no longer see the dialog box when you print. Beware though, it will try to print to the last printer you used when you had the dialog box open. If you ever need to change it then you will need to toggle the value for print.always_print_silent by following the above steps.</p>
<h2>Open a javascript popup and print the contents</h2>
<p>Now you can print without dialogs, you can use the following code to open a popup window and print it.</p>
<h3>open the popup</h3>
<p><code><br />
windowname = window.open('url.html','name',options);<br />
</code></p>
<p>the options you have available are:</p>
<table border="0" cellspacing="5" cellpadding="5">
<tbody>
<tr>
<th>Option</th>
<th>Values</th>
<th>Description</th>
</tr>
<tr>
<td>location</td>
<td>yes|no</td>
<td>Does the location bar show?</td>
</tr>
<tr>
<td>menubar</td>
<td>yes|no</td>
<td>Does the menubar show?</td>
</tr>
<tr>
<td>scrollbars</td>
<td>yes|no</td>
<td>Do scrollbars show?</td>
</tr>
<tr>
<td>status</td>
<td>yes|no</td>
<td>Does the status bar show|</td>
</tr>
<tr>
<td>titlebar</td>
<td>yes|no</td>
<td>Does the titlebar show?</td>
</tr>
<tr>
<td>toolbar</td>
<td>yes|no</td>
<td>Does the toolbar show?</td>
</tr>
<tr>
<td>resizable</td>
<td>yes|no</td>
<td>Can you resize the window?</td>
</tr>
<tr>
<td>height</td>
<td>pixels</td>
<td>height of window</td>
</tr>
<tr>
<td>width</td>
<td>pixels</td>
<td>width of window</td>
</tr>
<tr>
<td>directories</td>
<td>yes|no</td>
<td>Does the personal toolbar show?</td>
</tr>
<tr>
<td>innerHeight</td>
<td>pixels</td>
<td>specifies the inner height of window</td>
</tr>
<tr>
<td>innerWidth</td>
<td>pixels</td>
<td>specifies the inner width of window</td>
</tr>
<tr>
<td>screenX</td>
<td>pixels</td>
<td>specifies distance from left edge of screen</td>
</tr>
<tr>
<td>screenY</td>
<td>pixels</td>
<td>specifies distance from top edge of screen</td>
</tr>
</tbody>
</table>
<p>For example, to open a pop window showing the file called <strong>example.html</strong> with no menu bar, with a width of 430 pixels, height of 700 pixels, no toolbar, with scrollbars and with the window you would use this command</p>
<p><code><br />
winname = window.open('/example.html','newwin','menubar=no,width=430,height=700,toolbar=no,scrollbars=yes,screenX=300');<br />
</code></p>
<p>To close that window, you can add this</p>
<p><code><br />
winname.close();<br />
</code></p>
<p>To print the window, you can add this to the example.html page </p>
<p><code><br />
self.print();<br />
</code></p>
<p>or to print it from the calling page, you might need to pause for a little while before issuing the print command so it has time to load the page content first..</p>
<p><code><br />
setTimeout("winname.window.print();",500);<br />
</code></p>
<p>All the commands need to be within &lt;script&gt; /script tags</p>
]]></content:encoded>
			<wfw:commentRss>http://fiddyp.co.uk/bypass-disable-print-dialog-box-in-firefox-with-javascript-print/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Google Chrome. Fast or just new car smell?</title>
		<link>http://fiddyp.co.uk/google-chrome-fast-or-just-new-car-smell/</link>
		<comments>http://fiddyp.co.uk/google-chrome-fast-or-just-new-car-smell/#comments</comments>
		<pubDate>Fri, 05 Sep 2008 09:53:51 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Blog Tools]]></category>
		<category><![CDATA[Reviews]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[profit]]></category>

		<guid isPermaLink="false">http://www.fiddyp.co.uk/?p=703</guid>
		<description><![CDATA[So I was checking out my performancing advert on Randa Clays&#8217; post about Trying out Google Chrome and I thought I&#8217;d give it a go myself. ummm, could [..]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Ffiddyp.co.uk%2Fgoogle-chrome-fast-or-just-new-car-smell%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ffiddyp.co.uk%2Fgoogle-chrome-fast-or-just-new-car-smell%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>So I was checking out <del datetime="2008-09-05T09:21:28+00:00">my performancing advert on </del>Randa Clays&#8217; post about <a href="http://randaclay.com/blogging/trying-out-google-chrome/">Trying out Google Chrome</a> and I thought I&#8217;d give it a go myself.</p>
<p>ummm, could it <strong><em>be</em></strong> any faster? I thought it was obviously taking the piss somewhere. How come my site can load this fast? For the past few months I have been getting quite frustrated with how my sites perform when I load them in Firefox, even so far as to break out IE and use that when I have a lot of posts to write!! <img src='http://fiddyp.co.uk/wp-includes/images/smilies/icon_surprised.gif' alt=':-o' class='wp-smiley' /> </p>
<p>That got me thinking<span id="more-703"></span>, I love Firefox and its awfully good plugins like the web developer and such, I use them like.every.day but, is it slowing down because of all these extras? the answer is yes, yes it is.</p>
<p>That also got me thinking, is it faster because it&#8217;s new? probably just like when you get a new install of Windows and it loads up in seconds and programs don&#8217;t take an age to show the splash page only to go back to &#8216;normal&#8217; within a few weeks of using (or in my case, within a day of me installing all the developer suite stuff)</p>
<p>But fast right? that&#8217;s what everyone is saying and for the life of me I can&#8217;t believe how much faster my pages load, all my sites seem to appear as if they were on another tab, hell even Firefox lately has been taking longer to switch to a new tab than it does for this thing to load my page afresh!</p>
<p>But no plugins right? well, to be honest, the only plugins that I absolutely need are the web developer ones and while I was checking out my <a href="http://www.commentluv.com">CommentLuv site</a> to see if the AJAX works on the settings page I noticed it didn&#8217;t show the form box for changing the cache age&#8230; dammit, that&#8217;s why it works so well, it&#8217;s half arsed!! but, nope, it was entirely my own fault&#8230;</p>
<p>It turns out that Chrome has it&#8217;s own debugger and source viewer with bells and whistles, I needed to know how to use the debugging console and I found this post by Eric about <a href="http://www.pascarello.com/lessons/browsers/ChromeDebugHelp.html">Basic information on Chromes&#8217; Debugger</a>.</p>
<p>By using the breakpoint function I was able to step through the code and find out exactly where the problem was occurring. It turns out that I had (again) put <em>&lt;script type=javascript etc</em> in a file I was calling as <em>src=</em>.</p>
<p>So, now I am converted to Chrome. It does all that I need and does it fast. You should <a href="http://www.google.com/chrome">try out Chrome Browser</a> for yourself, it downloads and installs quite quickly and has some nice features that are done well enough to make them look simple</p>
]]></content:encoded>
			<wfw:commentRss>http://fiddyp.co.uk/google-chrome-fast-or-just-new-car-smell/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
	</channel>
</rss>

