<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/tags/browser</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 24 Jul 2008 08:15:34 GMT</pubDate>
<item>
<title>(Other) cross-browser way to get selection - rolfthomas</title>
<link>http://snipplr.com/view/7126/crossbrowser-way-to-get-selection/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 04 Jul 2008 11:37:23 GMT</pubDate>
<guid>http://snipplr.com/view/7126/crossbrowser-way-to-get-selection/</guid>
</item>
<item>
<title>(Other) css opacity - sherakama</title>
<link>http://snipplr.com/view/7094/css-opacity/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 02 Jul 2008 16:36:30 GMT</pubDate>
<guid>http://snipplr.com/view/7094/css-opacity/</guid>
</item>
<item>
<title>(CSS) Target firefox &amp;amp; safari with CSS - elightbo</title>
<link>http://snipplr.com/view/6961/target-firefox--safari-with-css/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 27 Jun 2008 17:58:11 GMT</pubDate>
<guid>http://snipplr.com/view/6961/target-firefox--safari-with-css/</guid>
</item>
<item>
<title>(CSS) browser.php - frakim</title>
<link>http://snipplr.com/view/6386/browserphp/</link>
<description><![CDATA[ <p>For the why and the what, make sure you check out my blog article Never hack your CSS files again, you’ll get a much better idea what this is for.
update: I added support for the iPhone in version 1.0.2. More info in my blog post about serving iPhone specific CSS.
Requirements
A website hosted on a server that has PHP
Basic knowledge of FTP, HTML, and CSS
Installation
Download, unzip, and open in a text editor
Modify line 22 ($css_dir = '/_css/';) to point to your CSS files on your server. The default points to a folder called “_css” located at the root of your website, where your index file is
Upload to your server
Create CSS files inside the CSS folder defined in step 2 (names available)
Add this code in your HTML (make sure you put it under the main CSS)

That’s it… You’re done!</p> ]]></description>
<pubDate>Wed, 21 May 2008 16:14:39 GMT</pubDate>
<guid>http://snipplr.com/view/6386/browserphp/</guid>
</item>
<item>
<title>(CSS) Float in Float IE6 margin wrong inherted div width Bug - bassdas</title>
<link>http://snipplr.com/view/6244/float-in-float-ie6-margin-wrong-inherted-div-width-bug/</link>
<description><![CDATA[ <p>Bugfix/Lösungsvorschlag:

Es ist offensichtlich, dass die Zelle mit der ID cell3467 und dem definierten "margin-right: 3.09%" falsch berechnet wird - nämlich mit realen 16 Pixeln anstatt 8 - und auf den obersten Basis-Wert der "DIV width" zurückgreift (100% anstatt 50%). Dabei wird dazwischen die Weite 50% der Gruppe #group1573 übergangen! Somit müssen wir nach dieser Gruppe nochmals eine Ebene (DIV) mit der Weite von 100% (width: 100%) definieren um die richtige Weite von realen 3.09% (8 Px) zu erlangen.

Es muss nun innerhalb der Gruppe nochmals eine Ebene (DIV) mit einer Weite von 100% erstellt werden:</p> ]]></description>
<pubDate>Thu, 15 May 2008 13:55:35 GMT</pubDate>
<guid>http://snipplr.com/view/6244/float-in-float-ie6-margin-wrong-inherted-div-width-bug/</guid>
</item>
<item>
<title>(JavaScript) IE sniffer using conditional compilation - cczona</title>
<link>http://snipplr.com/view/5564/ie-sniffer-using-conditional-compilation/</link>
<description><![CDATA[ <p>Note that the comment is part of the code here.   IE 5+ (including Mac) will evaluate to true by using conditional compilation.</p> ]]></description>
<pubDate>Tue, 25 Mar 2008 21:09:46 GMT</pubDate>
<guid>http://snipplr.com/view/5564/ie-sniffer-using-conditional-compilation/</guid>
</item>
<item>
<title>(HTML) How to set IE8 in previous (IE7, IE5) rendering mode for backwards compatibility - localhorst</title>
<link>http://snipplr.com/view/5544/how-to-set-ie8-in-previous-ie7-ie5-rendering-mode-for-backwards-compatibility/</link>
<description><![CDATA[ <p>„Versioning and Cross-document InteractionInternet Explorer 8 introduces the IE8 standards mode by default—this lets Web designers use the latest rendering features available in Internet Explorer 8. In addition to layout changes, IE8 standards mode will also affect the behavior of scripted APIs (DOM). 
To opt-out of IE8 standards mode, the META tag may be used to obtain IE7 compatibility mode“

Take a look at http://code.google.com/p/ie7-js/ too.
This is a tiny JS library to makes IE versions behave like a standard browser.</p> ]]></description>
<pubDate>Mon, 24 Mar 2008 14:18:03 GMT</pubDate>
<guid>http://snipplr.com/view/5544/how-to-set-ie8-in-previous-ie7-ie5-rendering-mode-for-backwards-compatibility/</guid>
</item>
<item>
<title>(PHP) Browser class - localhorst</title>
<link>http://snipplr.com/view/5452/browser-class/</link>
<description><![CDATA[ <p>Identifies the user's Operating system, browser and version by parsing the HTTP_USER_AGENT string sent to the server
For browsers, it should correctly identify all versions of:
		Amaya
		Galeon
		iCab
		Internet Explorer
		For AOL versions it will identify as Internet Explorer (AOL) and the version
		will be the AOL version instead of the IE version.
		Konqueror
		Lynx
		Mozilla
		Netscape Navigator/Communicator
		OmniWeb
		Opera
		Pocket Internet Explorer for handhelds
		Safari
		WebTV</p> ]]></description>
<pubDate>Mon, 17 Mar 2008 01:27:50 GMT</pubDate>
<guid>http://snipplr.com/view/5452/browser-class/</guid>
</item>
<item>
<title>(HTML) Only IE6 / IE7 - stavelin</title>
<link>http://snipplr.com/view/5178/only-ie6--ie7/</link>
<description><![CDATA[ <p>Target only internet explorer 6/7 with external CSS</p> ]]></description>
<pubDate>Sun, 24 Feb 2008 17:41:58 GMT</pubDate>
<guid>http://snipplr.com/view/5178/only-ie6--ie7/</guid>
</item>
<item>
<title>(PHP) Redirect a browser via PHP - smartalec</title>
<link>http://snipplr.com/view/4557/redirect-a-browser-via-php/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 14 Jan 2008 09:02:27 GMT</pubDate>
<guid>http://snipplr.com/view/4557/redirect-a-browser-via-php/</guid>
</item>
<item>
<title>(JavaScript) Redirect a browser via JavaScript - smartalec</title>
<link>http://snipplr.com/view/4556/redirect-a-browser-via-javascript/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 14 Jan 2008 09:01:35 GMT</pubDate>
<guid>http://snipplr.com/view/4556/redirect-a-browser-via-javascript/</guid>
</item>
<item>
<title>(HTML) IE Conditional Comments - heinz1959</title>
<link>http://snipplr.com/view/4309/ie-conditional-comments/</link>
<description><![CDATA[ <p>From the TextMate HTML bundle</p> ]]></description>
<pubDate>Wed, 12 Dec 2007 04:34:45 GMT</pubDate>
<guid>http://snipplr.com/view/4309/ie-conditional-comments/</guid>
</item>
<item>
<title>(JavaScript) click on an element across browsers - noah</title>
<link>http://snipplr.com/view/3336/click-on-an-element-across-browsers/</link>
<description><![CDATA[ <p>If you have assigned an event handler to a container, you might want to remotely trigger it as if a child of the container had been clicked.  That is, you might want to manually set the target of the 'event' object that is passed to the event handler on the container.  This helps to keep the number of event handlers down.</p> ]]></description>
<pubDate>Fri, 20 Jul 2007 18:08:37 GMT</pubDate>
<guid>http://snipplr.com/view/3336/click-on-an-element-across-browsers/</guid>
</item>
<item>
<title>(ActionScript) Call JavaScript from External Interface - Bonky</title>
<link>http://snipplr.com/view/3328/call-javascript-from-external-interface/</link>
<description><![CDATA[ <p>There must also be a JavaScript function defined in the containing HTML page:
function makePopup(url,pop_name,width,height) {
	window.open(url, pop_name, "width="+width+",height="+height+",resizable=yes,scrollbars=yes");
}</p> ]]></description>
<pubDate>Thu, 19 Jul 2007 14:54:33 GMT</pubDate>
<guid>http://snipplr.com/view/3328/call-javascript-from-external-interface/</guid>
</item>
<item>
<title>(Bash) save a remote file with Lynx - noah</title>
<link>http://snipplr.com/view/3255/save-a-remote-file-with-lynx/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 08 Jul 2007 19:41:56 GMT</pubDate>
<guid>http://snipplr.com/view/3255/save-a-remote-file-with-lynx/</guid>
</item>
<item>
<title>(Perl) Grab linked files from a list of web pages - noah</title>
<link>http://snipplr.com/view/3126/grab-linked-files-from-a-list-of-web-pages/</link>
<description><![CDATA[ <p>Expects as argument the name of a file containing a newline-delimited list of URLs.  When invoked, launches an interactive shell that asks what type of file should be downloaded.  Then downloads all the files that are linked from each of the listed Web pages.</p> ]]></description>
<pubDate>Tue, 03 Jul 2007 22:31:30 GMT</pubDate>
<guid>http://snipplr.com/view/3126/grab-linked-files-from-a-list-of-web-pages/</guid>
</item>
<item>
<title>(PHP) Browser Detection - llbbl</title>
<link>http://snipplr.com/view/3117/browser-detection/</link>
<description><![CDATA[ <p>echo ( browser_detection( 'number' ) .''. 
browser_detection( 'browser' ) .''.  
browser_detection( 'os' ) .''.  
browser_detection( 'os_number' ) ); 

Outputs (browser version, browser, os, os number): 
1.5
moz
nt
5.1


if ( ( browser_detection( 'browser' ) == 'ie' ) 
&amp;&amp; 
( browser_detection( 'number' ) >= 5 ) )
{
echo 'it is Internet Explorer ' . 
browser_detection( 'number' );
// or anything else you want to happen of course
}</p> ]]></description>
<pubDate>Mon, 02 Jul 2007 13:26:46 GMT</pubDate>
<guid>http://snipplr.com/view/3117/browser-detection/</guid>
</item>
<item>
<title>(JavaScript) Write to browser's error console - noah</title>
<link>http://snipplr.com/view/2870/write-to-browsers-error-console/</link>
<description><![CDATA[ <p>Display an error message in the browser's error console.  JavaScript 1.5 and up.</p> ]]></description>
<pubDate>Sat, 16 Jun 2007 18:13:00 GMT</pubDate>
<guid>http://snipplr.com/view/2870/write-to-browsers-error-console/</guid>
</item>
<item>
<title>(ActionScript) ActionScript getURL using javascript browser sizing - mswallace</title>
<link>http://snipplr.com/view/2845/actionscript-geturl-using-javascript-browser-sizing/</link>
<description><![CDATA[ <p>This getURL uses javascript to set the browser size.</p> ]]></description>
<pubDate>Mon, 11 Jun 2007 14:03:47 GMT</pubDate>
<guid>http://snipplr.com/view/2845/actionscript-geturl-using-javascript-browser-sizing/</guid>
</item>
<item>
<title>(JavaScript) get and set cookie - noah</title>
<link>http://snipplr.com/view/2843/get-and-set-cookie/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 11 Jun 2007 09:10:48 GMT</pubDate>
<guid>http://snipplr.com/view/2843/get-and-set-cookie/</guid>
</item>
</channel>
</rss>