Title: OnLoad&#039;er
Author: mortenf
Published: <strong>6 de julio de  2009</strong>
Last modified: 6 de julio de  2009

---

Buscar plugins

Este plugin **no se ha probado con las últimas 3 versiones mayores de WordPress**.
Puede que ya no tenga asistencia ni lo mantenga nadie, o puede que tenga problemas
de compatibilidad cuando se usa con las versiones más recientes de WordPress.

![](https://s.w.org/plugins/geopattern-icon/onloader.svg)

# OnLoad'er

 Por [mortenf](https://profiles.wordpress.org/mortenf/)

[Descargar](https://downloads.wordpress.org/plugin/onloader.zip)

 * [Detalles](https://es-ar.wordpress.org/plugins/onloader/#description)
 * [Valoraciones](https://es-ar.wordpress.org/plugins/onloader/#reviews)
 *  [Instalación](https://es-ar.wordpress.org/plugins/onloader/#installation)
 * [Desarrollo](https://es-ar.wordpress.org/plugins/onloader/#developers)

 [Soporte](https://wordpress.org/support/plugin/onloader/)

## Descripción

This shortcode, `onloader`, makes it possible to dynamically load extra content 
onto a page, with a nice spinning
 load indicator taking the place of the content
until it is loaded.

#### Usage

Add a shortcode like the following to the content of a post or page.

    ```
    [onloader href="..." id="..." width="..." height="..." style="..."]
    ```

The `href` attribute is mandatory, the rest are optional.

Attribute descriptions:

 * **href**: The URL of the the content that should be loaded and displayed (or 
   a string beginning with “demo”).
 * **id**: Used to differentiate between several otherwise identical shortcodes 
   on a single page. Should be a simple
    text string beginning with a letter.
 * **width**: The width of the box that will hold the load indicator and the content
   once it is loaded, expressed as
    CSS, e.g. `200px` or `100%`. The default value
   is `100%`.
 * **height**: The height of the box that will hold the load indicator and the content
   once it is loaded, expressed as
    CSS, e.g. `200px` or `100%`. The default value
   is `200px`.
 * **style**: CSS to style the box that holds the content, e.g. `text-align: center;
   color: red`.

#### Example

    ```
    [onloader href="http://example.com/feed" id="example1" width="80%" height="15em" style="border: 1px solid blue"]
    ```

### License

Copyright (c) 2009 Morten Høybye Frederiksen [morten@wasab.dk](https://es-ar.wordpress.org/plugins/onloader/morten@wasab.dk?output_format=md)

Permission to use, copy, modify, and distribute this software for any
 purpose with
or without fee is hereby granted, provided that the above copyright notice and this
permission notice appear in all copies.

THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 WITH REGARD
TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

## Capturas

[⌊Demo, while loading⌉⌊Demo, while loading⌉[

Demo, while loading

[⌊Demo, after load⌉⌊Demo, after load⌉[

Demo, after load

## Instalación

 1. Download Plugin .zip-file.
 2. Unzip and upload to the plugin directory, usually at `wp-content/plugins/`.
 3. Activate the plugin from the WordPress “Plugin” administration screen.
 4. Add a shortcode to a post or page per the [instructions](https://wordpress.org/extend/plugins/onloader/).

## Preguntas frecuentes

  I get a JavaScript error, “Access to restricted URI denied”

Because of the browser/JavaScript security model, it is not possible to load content
from other sites, only
 from the same domain the OnLoad’er script itself is located
on.

A proxy service will be added to a later version of the plugin.

  How can I test that it works?

Add the shortcode `[onloader href="demo"]` to a page, and hit preview. You should
see the spinning load indicator,
 and after a few seconds the message “You are seeing
the output of the OnLoad’er demo script. Everything worked!”.

  Can I use more than one on a single page

Certainly. If you are loading content from distinct URLs, it should “just work”,
otherwise add `id` attributes
 with suitable values to make it possible to tell 
them apart.

  Another question?

If your question isn’t answered here, please do leave a comment in the forum or 
on the plugin’s homepage:
 [www.mfd-consult.dk/onloader](http://www.mfd-consult.dk/onloader/)

## Reseñas

No hay reseñas para este plugin.

## Colaboradores y desarrolladores

“OnLoad'er” es un software de código abierto. Las siguientes personas han colaborado
con este plugin.

Colaboradores

 *   [ mortenf ](https://profiles.wordpress.org/mortenf/)

[Traduce “OnLoad'er” a tu idioma.](https://translate.wordpress.org/projects/wp-plugins/onloader)

### ¿Interesado en el desarrollo?

[Revisa el código](https://plugins.trac.wordpress.org/browser/onloader/) , echa 
un vistazo al [repositorio SVN](https://plugins.svn.wordpress.org/onloader/) , o
suscríbete al [log de desarrollo](https://plugins.trac.wordpress.org/log/onloader/)
por [RSS](https://plugins.trac.wordpress.org/log/onloader/?limit=100&mode=stop_on_copy&format=rss).

## Registro de cambios

#### 1.0

 * Initial release.

## Meta

 *  Versión **1.0**
 *  Última actualización **hace 17 años**
 *  Instalaciones activas **10+**
 *  Versión de WordPress ** 2.8 o superior **
 *  Testeado hasta **2.8**
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/onloader/)
 * Etiquetas:
 * [ajax](https://es-ar.wordpress.org/plugins/tags/ajax/)[content](https://es-ar.wordpress.org/plugins/tags/content/)
 *  [Vista avanzada](https://es-ar.wordpress.org/plugins/onloader/advanced/)

## Valoraciones

Todavía no se enviaron reseñas.

[Your review](https://wordpress.org/support/plugin/onloader/reviews/#new-post)

[Ver todas las reseñas](https://wordpress.org/support/plugin/onloader/reviews/)

## Colaboradores

 *   [ mortenf ](https://profiles.wordpress.org/mortenf/)

## Soporte

¿Tenés algo que decir? ¿Necesitás ayuda?

 [Ver el foro de asistencia](https://wordpress.org/support/plugin/onloader/)

## Donar

¿Te gustaría apoyar el progreso de este plugin?

 [ Doná a este plugin ](http://www.mfd-consult.dk/paypal/)