---
url: 'https://metadrop.net/es/articulos/recargarrefrescar-vista-ajax'
title: 'Recargar/refrescar vista por ajax'
author: 'Jorge Tutor'
date: '2017-01-17T10:11:25+00:00'
updated: '2020-05-20T12:44:27+00:00'
type: article
summary: 'Snippet JS para lanzar la actualización por ajax de una vista.'
tags:
  - 'Views (Drupal module)'
  - AJAX
  - Refresh
published: true
og:
  determiner: Automatic
  site_name: Metadrop
  'image:alt': 'Recargar/refrescar vista por ajax'
  street_address: 'Calle Manuel Luna, 12, 3 Dcha'
  locality: Madrid
  region: Madrid
  postal_code: '28020'
  country_name: España
  email: hola@metadrop.net
  phone_number: '910053180'
schema:
  '@context': 'https://schema.org'
  '@graph':
    -
      '@type': Article
      '@id': 'https://metadrop.net/es/articulos/recargarrefrescar-vista-ajax#article'
      name: 'Recargar/refrescar vista por ajax'
      headline: 'Recargar/refrescar vista por ajax'
      description: 'Snippet JS para lanzar la actualización por ajax de una vista.'
      about:
        - 'Views (módulo de Drupal)'
        - AJAX
        - Refresh
      datePublished: '2014-09-24T08:00:00+0200'
      dateModified: '2020-05-20T14:44:27+0200'
      author:
        '@type': Person
        name: 'Jorge Tutor'
      publisher:
        '@type': Organization
        '@id': 'https://metadrop.net/#organization'
      mainEntityOfPage: 'https://metadrop.net/es/articulos/recargarrefrescar-vista-ajax'
    -
      '@type': Organization
      '@id': 'https://metadrop.net/#organization'
      url: 'https://metadrop.net/'
      name: Metadrop
      sameAs:
        - 'https://www.drupal.org/metadrop'
        - 'https://twitter.com/metadrop'
        - 'https://asociaciondrupal.es/partner/metadrop'
        - 'https://www.linkedin.com/company/metadrop'
      logo:
        '@type': ImageObject
        url: 'https://metadrop.net/themes/custom/mdrop_radix/logo-metadrop-500-500.jpg'
        width: '500'
        height: '500'
    -
      '@type': ItemPage
      '@id': 'https://metadrop.net/es/articulos/recargarrefrescar-vista-ajax'
      breadcrumb:
        '@type': BreadcrumbList
        itemListElement:
          -
            '@type': ListItem
            position: 1
            name: Inicio
            item: 'https://metadrop.net/es'
          -
            '@type': ListItem
            position: 2
            name: 'Artículos expertos sobre Drupal y tecnología'
            item: 'https://metadrop.net/es/articulos'
      publisher:
        '@type': Organization
        '@id': 'https://metadrop.net/#organization'
---
 1. [Artículos](https://metadrop.net/es/articulos)
 
  

# Recargar/refrescar vista por ajax

Miércoles 24 de Septiembre de 2014

 

 



Snippet JS para lanzar la actualización por ajax de una vista.



   




```javascript
var selector = '.view-dom-id-' + settings.view_dom_id;

$(selector).triggerHandler('RefreshView');
```

La vista ha de estar marcada como AJAX.



[Views (módulo de Drupal)](https://metadrop.net/es/articulos?text=Views%20%28m%C3%B3dulo%20de%20Drupal%29)

[AJAX](https://metadrop.net/es/articulos?text=AJAX)

[Refresh](https://metadrop.net/es/articulos?text=Refresh)

 

- Jorge Tutor
    
    CIO