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

HTML Substitute your own loader graphic from http://www.ajaxload.info/

CSS

JS Show the spinner called “first”: jQuery(‘#Spinner-first’).fadeIn(); Hide the spinner called “first”: jQuery(‘#Spinner-first’).fadeOut(); Hide all spinners that start with an ID of “Spinner”: jQuery(‘[id^=Spinner]’).fadeOut(); That’s All Folks…

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

Author: , August 16th, 2011

How To Cope With HTML5 and IE

Author: , July 22nd, 2011

How To Create Add To Cart Links For PayPal

Author: , August 19th, 2010

Display Cart Link [code] https://www.paypal.com/cgi-bin/webscr?business=you@yourdomain.com&cmd=_cart&display=1 [/code] Add To Cart Link [code] https://www.paypal.com/cgi-bin/webscr?business=you@yourdomain.com&cmd=_cart&add=1&amount=16&item_name=Dishwasher&item_number=10437-72 [/code] Payal API Ref Paypal Form Basics

How to do Web Redirects in HTML, PHP and PERL CGI

Author: , November 9th, 2009

For PHP: [sourcecode language=”php”] <?php header("HTTP/1.1 301 Moved Permanently"); header("Location: http://www.wyzaerd.com/index.html"); exit(); ?> [/sourcecode] For PERL: The fast way: [sourcecode language=”perl”] #!/usr/bin/perl -Tw $|=1; use CGI; my $cgi_object = new CGI; my $new_page_url = qq~http://www.wyzaerd.com/index.html~; print $cgi_object->header(-expires=>"now",’Location’ => $new_page_url,); exit 0; [/sourcecode] OR The slow way: [sourcecode language=”perl”] #!/usr/bin/perl -Tw $|=1; print qq#Content-Type: text/html; charset=ISO-8859-1\n\n<html> […]

How To Get VIM to Create HTML from PERL

Author: , October 14th, 2009

:let html_use_css = 1 :let html_no_pre = 1 :let html_use_encoding = “utf-8” Use the “:TOhtml” user command. It is defined in a standard plugin. “:TOhtml” also works with a range and in a Visual area: > :10,40TOhtml After you save the resulting file, you can view it with any HTML viewer, such as Netscape. The […]

Examples of onChange and the Select Statement

Author: , September 29th, 2009

Some examples of how to access the option values and text in an HTML SELECT via javascript: onchange=”groupsFilter(this.options[this.selectedIndex].value); return false;” onChange=”if (this.options[this.selectedIndex].value != ”) submit()” Take the option text currently highlighted and use it to populate another location in the web page: replaceSpan(‘unit1’,this.options[this.selectedIndex].text);