Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert /api/i-r folder to Markdown (es) #9513

Merged
merged 7 commits into from
Oct 25, 2022
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion files/es/web/api/geolocation/clearwatch/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ id = navigator.geolocation.watchPosition(success, error, options);
- [Usando la API de Geolocalización](/es/docs/Web/API/Geolocation_API/Using_the_Geolocation_API)
- {{domxref("Geolocation")}}
- {{domxref("Geolocation.watchPosition()")}}
- {{domxref("Geolocation.getCurrentPosition()")}}
- {{domxref("Geolocation.getCurrentPosition()")}}
2 changes: 0 additions & 2 deletions files/es/web/api/geolocation/getcurrentposition/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ l10n:

El método **`Geolocation.getCurrentPosition()`** es usado para obtener la ubicación actual del dispositivo.



## Sintaxis

```js-nolint
Expand Down
4 changes: 1 addition & 3 deletions files/es/web/api/geolocation/watchposition/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ watchPosition(success, error, options)
Un valor numérico ID que identifica a la función que se encuentra monitoreando la ubicación.
Este ID puede ser pasado al método {{domxref("Geolocation.clearWatch()")}} para detener el monitoreo de la ubicación.



## Ejemplos

```js
Expand Down Expand Up @@ -83,4 +81,4 @@ id = navigator.geolocation.watchPosition(success, error, options);
- [Usando la API de Geolocalización](/es/docs/Web/API/Geolocation_API/Using_the_Geolocation_API)
- La interfaz pertenece a {{domxref("Geolocation")}}, y puede ser accedida mediante {{domxref("Navigator.geolocation")}}.
- La operación contraria: {{domxref("Geolocation.clearWatch()")}}
- Un método similar: {{domxref("Geolocation.getCurrentPosition()")}}
- Un método similar: {{domxref("Geolocation.getCurrentPosition()")}}
123 changes: 0 additions & 123 deletions files/es/web/api/idbcursor/continue/index.html

This file was deleted.

91 changes: 91 additions & 0 deletions files/es/web/api/idbcursor/continue/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
---
title: IDBCursor.continue()
slug: Web/API/IDBCursor/continue
tags:
- API
- Almacen
- Basededatos
- Continuar
- CursorIDB
- IndexadoIDB
- Referencia
- metodo
translation_of: Web/API/IDBCursor/continue
---
{{APIRef("IndexedDB")}}

**`El siguiente()`** método de la {{domxref("IDBCursor")}} interfaz, avanza el cursor hacia la siguiente posición a lo largo de su dirección, para el elemento cuya tecla marque la opción de una tecla parámetro. si ninguna tecla es especificada, el cursor avanzará hacia la siguiente posición, bazado en su dirección actual.
Graywolf9 marked this conversation as resolved.
Show resolved Hide resolved

{{AvailableInWorkers}}

## Sintaxis

```js
cursor.continue(optionalKey);
```

### Parámetros

- _Tecla opcional_
- : La tecla para posisionar al cursor en.

### Excepciones

Este método puede plantear un{{domxref("DOMException")}} con una {{domxref("DOMError")}} de uno de los siguientes tipos:

- `TransactionInactiveError`
- : Esta transacción en el Cursor IDB está inactiva.
- `DataError`

- : El parámetro de una tecla podría tener una de las siguientes condiciones:

- La tecla no es una tecla valida.
- La tecla está más atrás o en el mismo sitio que la posición del cursor y además la dirección del cursor es la siguiente o la única siguiente.
- La tecla está más adelante o en el mismo sitio que la posición del cursor y además la dirección del cursor es previa o la única previa.

- `InvalidStateError`
- : El cursor está siendo reiterado o se ha reiterado mas allá de su final.

## Ejemplo

En este simple fragmento nosotros creamos una transacción, recuperar un objeto del almacen, despues usamos un cursor para interactuar a traves de todos los registros en almacen de objetos. El cursor no requiere que nosotros seleccionemos los datos basados en una tecla; podemos tomarlo todo. También es importante resaltar que en cada interacción de la cadena, puedes tomar datos desde el registro actual debajo del objeto del cursor usando` ``cursor.value.foo`. Para dar un ejemplo completo, puedes mirar nuestra [IDBCursor example](https://mdn.github.io/dom-examples/indexeddb-examples/idbcursor/) ([view example live](https://mdn.github.io/dom-examples/indexeddb-examples/idbcursor/).)

```
function displayData() {
var transaction = db.transaction(['rushAlbumList'], "readonly");
var objectStore = transaction.objectStore('rushAlbumList');

objectStore.openCursor().onsuccess = function(event) {
var cursor = event.target.result;
if(cursor) {
var listItem = document.createElement('li');
listItem.innerHTML = cursor.value.albumTitle + ', ' + cursor.value.year;
list.appendChild(listItem);

cursor.continue();
} else {
console.log('Entries all displayed.');
}
};
};
```

## Especificaciones

| Specification | Estado | Comentarios |
| ------------------------------------------------------------------------------------------------------------ | ---------------------------- | ----------- |
| {{SpecName('IndexedDB', '#widl-IDBCursor-continue-void-any-key', 'continue()')}} | {{Spec2('IndexedDB')}} | |

## Compatibilidad del navegador

{{Compat("api.IDBCursor.continue")}}

## Te puede interesar

- [Using IndexedDB](/es/docs/Web/API/IndexedDB_API/Using_IndexedDB)
- Starting transactions: {{domxref("IDBDatabase")}}
- Using transactions: {{domxref("IDBTransaction")}}
- Setting a range of keys: {{domxref("IDBKeyRange")}}
- Retrieving and making changes to your data: {{domxref("IDBObjectStore")}}
- Using cursors: {{domxref("IDBCursor")}}
- Reference example: [To-do Notifications](https://github.com/mdn/to-do-notifications/tree/gh-pages) ([view example live](http://mdn.github.io/to-do-notifications/).)
125 changes: 0 additions & 125 deletions files/es/web/api/idbcursor/index.html

This file was deleted.

Loading