Tema: RSS y XML
Ver Mensaje Individual
  #5 (permalink)  
Antiguo 31/03/2013, 16:18
Avatar de emprear
emprear
Colaborador
 
Fecha de Ingreso: junio-2007
Ubicación: me mudé
Mensajes: 8.388
Antigüedad: 16 años, 10 meses
Puntos: 1567
Respuesta: RSS y XML

Cita:
Iniciado por caricatos Ver Mensaje
Hola:

En chrome no se ve ninguna imagen... para realmente poder mostrar imágenes y que sean visibles en todos los navegadores, debes asociarle al feed una hoja xsl.

Saludos
Pequeño detalle el mío, acostumbrado a
https://chrome.google.com/webstore/d...bbbdekmmmcbfjd

que vaya a saber desde cuando tengo instalada
Para verificar la existencia de una extensón en Chrome, podemos usar javascript.
Esta función en particular es para el Lector De Rss feeds
Código HTML:
Ver original
  1. <!DOCTYPE html>
  2. <html lang="es-ar">
  3. <meta charset="utf-8" />
  4. <title>Html5</title>
  5. <script type="text/javascript">
  6. //<![CDATA[
  7. function detectarextensionchrome(Id_deExtension, recursosExtension, callback){
  8.    if (typeof(chrome) !== 'undefined'){
  9.        var xmlHttp = new XMLHttpRequest(),
  10.            verificaUrl = 'chrome-extension://' +Id_deExtension +'/' +recursosExtension;
  11.        xmlHttp.open('HEAD', verificaUrl, true);
  12.        xmlHttp.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
  13.        xmlHttp.timeout = 1000;
  14.  
  15.        xmlHttp.onreadystatechange = function() {
  16.            if (xmlHttp.readyState == 4 && typeof(callback) == 'function') {
  17.                if (xmlHttp.status == 200) {
  18.                    callback.call(this, true);
  19.                } else {
  20.                    callback.call(this, false);
  21.                }
  22.            }
  23.        }        
  24.        xmlHttp.ontimeout = function() {
  25.            if (typeof(callback) == 'function')
  26.                callback.call(this, false);
  27.        }        
  28.        xmlHttp.send();
  29.    } else {
  30.        if (typeof(callback) == 'function')
  31.            callback.call(this, false);
  32.    }    
  33. };
  34.  
  35.  
  36. function compruebaExtension(extensionInstalada) {
  37.    if (extensionInstalada) {
  38.    // no hacemos nada
  39.    console.log('instalada');
  40.    } else {
  41.    console.log('No instalada');
  42.    alert('debe instalar extensión desde \n\rhttps://chrome.google.com/webstore/detail/rss-subscription-extensio/nlbjncdgjeocebhnmkbbbdekmmmcbfjd')
  43.    }
  44. }
  45.  
  46.  
  47. //uso - llamada a función
  48. detectarextensionchrome('nlbjncdgjeocebhnmkbbbdekmmmcbfjd', 'iframe.js', compruebaExtension);
  49.  
  50.  
  51. //]]>
  52. </head>
  53. </body>
  54. </html>

Saludos
__________________
La voz de las antenas va, sustituyendo a Dios.
Cuando finalice la mutación, nueva edad media habrá
S.R.

Última edición por emprear; 31/03/2013 a las 16:33