Trademark Symbol

Author: , June 15th, 2018

™ ™

How To Force SVG To Use the Correct Content-Type

Author: , April 22nd, 2016

If when trying to use SVG as an image <img src=”image.svg”> or as a CSS background-image, the browser doesn’t display it, your web host is probably serving the SVG with the wrong content-type. Add this to your web server config or .htaccess file: AddType image/svg+xml .svg .svgz

How To Select the First Table Cell in the First Row Using CSS

Author: , April 19th, 2014

table.myTable > tbody > tr:first-child > td:first-child

How To Get SMF 2.0.6 to Open in a New Frame

Author: , October 23rd, 2013

The latest patch version of the SMF forum, 2.0.6, now prevents the site from opening up in an HTML frame. Simply comment out line 104 inside index.php: The Problem: $ grep -Rni X-Frame-Options * index.php:104: header(‘X-Frame-Options: SAMEORIGIN’); The Solution: //header(‘X-Frame-Options: SAMEORIGIN’);

How To Get Smarty html_radios To Display An ID

Author: , October 1st, 2012

Add the parameter label_ids=true. For example: 1 {html_radios name="yourName" label_ids=true options=$yourOptions selected=$smarty.request.yourName separator="<br/>"} {html_radios name=”yourName” label_ids=true options=$yourOptions selected=$smarty.request.yourName separator=”<br/>”}

How To Clear An HTML File Input Field

Author: , July 19th, 2012

An HTML file input can’t be cleared by normal means (i.e. setting the value to null or an empty string) because of browser security restrictions. In most browsers, setting a null value attribute either will have no effect or cause an error. Creating a new element that clones the old element and swap the two […]

How To Convert HTML Entity Codes To Plain Text

Author: , April 10th, 2012

Using Perl: use HTML::Entities; my $plainText = decode_entities(‘Put text to convert here’); Using PHP: $plainText = html_entity_decode(‘Put text to convert here’,ENT_QUOTES,’UTF-8′);

How To Implement A Very Simple Ajax Loader Using jQueryUI

Author: , September 23rd, 2011

GET Resources http://code.jquery.com/jquery-1.6.4.min.js http://jqueryui.com/resources/download/jquery-ui-1.10.1.custom.zip LOAD Resources 1 2 3 <LINK rel="stylesheet" HREF="/css/smoothness/jquery-ui-1.8.14.custom.min.css"> <script src="/js/jquery-1.6.4.min.js"></script> <script src="/js/jquery-ui-1.8.16.custom.min.js"></script> <LINK rel=”stylesheet” HREF=”/css/smoothness/jquery-ui-1.8.14.custom.min.css”> <script src=”/js/jquery-1.6.4.min.js”></script> <script src=”/js/jquery-ui-1.8.16.custom.min.js”></script> HTML Substitute your own loader graphic from http://www.ajaxload.info/ 1 2 3 4 5 6 <img      src="//www.ericmichaelstone.com/wp-content/uploads/2013/02/ajax-loader.gif"      alt="Please wait…"      class="Spinner hidden"      id="Spinner-first" /> <img src=”//www.ericmichaelstone.com/wp-content/uploads/2013/02/ajax-loader.gif” […]

How To Redirect To A New Page After A Delay Using Javascript

Author: , August 16th, 2011

1 2 3 setTimeout(function() {      window.location.href = "/index.html"; }, 4000); setTimeout(function() { window.location.href = “/index.html”; }, 4000);

How To Cope With HTML5 and IE

Author: , July 22nd, 2011

1 2 3 <!–[if lt IE 9]>  <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]–>   <!–[if lt IE 9]> <script src=”http://html5shiv.googlecode.com/svn/trunk/html5.js”></script> <![endif]–>