How To Convert HTML Entity Codes To Plain Text
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′);
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′);
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> |
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" /> |
CSS
1 2 3 4 5 6 7 8 9 10 |
.Spinner { margin: 0; padding: 0; border: 0; } .Spinner.hidden { display: none; } |
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…
1 2 3 |
setTimeout(function() { window.location.href = "/index.html"; }, 4000); |
1 2 3 |
<!--[if lt IE 9]> <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> |
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
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> […]
: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 […]
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);