{"id":5922,"date":"2009-07-06T21:12:28","date_gmt":"2009-07-06T21:12:28","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/onloader\/"},"modified":"2009-07-06T21:12:28","modified_gmt":"2009-07-06T21:12:28","slug":"onloader","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/onloader\/","author":2493,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0","stable_tag":"trunk","tested":"2.8","requires":"2.8","requires_php":"","requires_plugins":"","header_name":"OnLoad'er","header_author":"Morten H\u00f8ybye Frederiksen","header_description":"","assets_banners_color":"","last_updated":"2009-07-06 21:12:28","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/www.mfd-consult.dk\/paypal\/","header_plugin_uri":"http:\/\/www.mfd-consult.dk\/onloader\/","header_author_uri":"http:\/\/www.wasab.dk\/morten\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1835,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1566836","resolution":"2","location":"plugin","width":454,"height":173},"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1566836","resolution":"1","location":"plugin","width":454,"height":173}},"screenshots":{"1":"Demo, while loading","2":"Demo, after load"}},"plugin_section":[],"plugin_tags":[221,529],"plugin_category":[59],"plugin_contributors":[84555],"plugin_business_model":[],"class_list":["post-5922","plugin","type-plugin","status-publish","hentry","plugin_tags-ajax","plugin_tags-content","plugin_category-utilities-and-tools","plugin_contributors-mortenf","plugin_committers-mortenf"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/onloader.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/onloader\/trunk\/screenshot-1.png?rev=1566836","caption":"Demo, while loading"},{"src":"https:\/\/ps.w.org\/onloader\/trunk\/screenshot-2.png?rev=1566836","caption":"Demo, after load"}],"raw_content":"<!--section=description-->\n<p>This shortcode, <code>onloader<\/code>, makes it possible to dynamically load extra content onto a page, with a nice spinning\nload indicator taking the place of the content until it is loaded.<\/p>\n\n<h4>Usage<\/h4>\n\n<p>Add a shortcode like the following to the content of a post or page.<\/p>\n\n<pre><code>[onloader href=\"...\" id=\"...\" width=\"...\" height=\"...\" style=\"...\"]\n<\/code><\/pre>\n\n<p>The <code>href<\/code> attribute is mandatory, the rest are optional.<\/p>\n\n<p>Attribute descriptions:<\/p>\n\n<ul>\n<li><strong>href<\/strong>: The URL of the the content that should be loaded and displayed (or a string beginning with \"demo\").<\/li>\n<li><strong>id<\/strong>: Used to differentiate between several otherwise identical shortcodes on a single page. Should be a simple\ntext string beginning with a letter.<\/li>\n<li><strong>width<\/strong>: The width of the box that will hold the load indicator and the content once it is loaded, expressed as\nCSS, e.g. <code>200px<\/code> or <code>100%<\/code>. The default value is <code>100%<\/code>.<\/li>\n<li><strong>height<\/strong>: The height of the box that will hold the load indicator and the content once it is loaded, expressed as\nCSS, e.g. <code>200px<\/code> or <code>100%<\/code>. The default value is <code>200px<\/code>.<\/li>\n<li><strong>style<\/strong>: CSS to style the box that holds the content, e.g. <code>text-align: center; color: red<\/code>.<\/li>\n<\/ul>\n\n<h4>Example<\/h4>\n\n<pre><code>[onloader href=\"http:\/\/example.com\/feed\" id=\"example1\" width=\"80%\" height=\"15em\" style=\"border: 1px solid blue\"]\n<\/code><\/pre>\n\n<h3>License<\/h3>\n\n<p>Copyright (c) 2009 Morten H\u00f8ybye Frederiksen <a href=\"mailto:&#x6d;&#111;&#114;&#x74;&#101;&#110;&#x40;&#x77;&#097;s&#x61;&#098;&#046;&#x64;&#x6b;\">&#x6d;&#111;&#114;&#x74;&#101;&#110;&#x40;&#x77;&#097;s&#x61;&#098;&#046;&#x64;&#x6b;<\/a><\/p>\n\n<p>Permission to use, copy, modify, and distribute this software for any\npurpose with or without fee is hereby granted, provided that the above\ncopyright notice and this permission notice appear in all copies.<\/p>\n\n<p>THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\nWITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\nMERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\nANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\nWHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\nACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\nOR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Download Plugin .zip-file.<\/li>\n<li>Unzip and upload to the plugin directory, usually at <code>wp-content\/plugins\/<\/code>.<\/li>\n<li>Activate the plugin from the WordPress \"Plugin\" administration screen.<\/li>\n<li>Add a shortcode to a post or page per the <a href=\"http:\/\/wordpress.org\/extend\/plugins\/onloader\/\">instructions<\/a>.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>I get a JavaScript error, \"Access to restricted URI denied\"<\/dt>\n<dd><p>Because of the browser\/JavaScript security model, it is not possible to load content from other sites, only\nfrom the same domain the OnLoad'er script itself is located on.<\/p>\n\n<p>A proxy service will be added to a later version of the plugin.<\/p><\/dd>\n<dt>How can I test that it works?<\/dt>\n<dd><p>Add the shortcode <code>[onloader href=\"demo\"]<\/code> to a page, and hit preview. You should see the spinning load indicator,\nand after a few seconds the message \"You are seeing the output of the OnLoad'er demo script. Everything worked!\".<\/p><\/dd>\n<dt>Can I use more than one on a single page<\/dt>\n<dd><p>Certainly. If you are loading content from distinct URLs, it should \"just work\", otherwise add <code>id<\/code> attributes\nwith suitable values to make it possible to tell them apart.<\/p><\/dd>\n<dt>Another question?<\/dt>\n<dd><p>If your question isn't answered here, please do leave a comment in the forum or on the plugin's homepage:\n<a href=\"http:\/\/www.mfd-consult.dk\/onloader\/\">www.mfd-consult.dk\/onloader<\/a><\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"A shortcode for loading content via AJAX on page load with a spinning load indicator.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/5922","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=5922"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/mortenf"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=5922"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=5922"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=5922"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=5922"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=5922"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=5922"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}