Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

196
Views
Agregue un elemento en la tabla de DynamoDb desde la entrada del formulario HTML

Tengo un formulario en mi página HTML que es el siguiente:

 <div class="form-group"> <label>Date:</label> <input type="date" id="inputId2"> </div> <div class="form-group"> <label>Machine ID:</label> <input type="text" id="inputId3"> </div> <div class="form-group"> <label>Planned Maintenance (Time):</label> <input type="text" id="inputId4" onkeydown="getInputValue2();"> </div>

Con JavaScript:

 function getInputValue2() { // Selecting the input element and get its value if(event.key === 'Enter') { let value = document.getElementById("inputId2").value; document.getElementById('Maintenance_date').innerText = value; let value2 = document.getElementById("inputId3").value; document.getElementById('Maintenance_machineId').innerText = value2; let value3 = document.getElementById("inputId4").value; document.getElementById('Maintenance_time').innerText = value3; } }

Y quiero enviar este valor ingresado a la tabla de AWS DynamoDb y ¿cuáles son mis opciones para hacerlo? Actualmente uso rest api para leer los datos de la misma tabla de DynamoDb en mi página HTML, pero ¿cómo escribirlos desde la misma página?

Código que solía leer de DB URL:

 function g_ajaxer(url_str, params, ok_cb, fail_cb){ $.ajax({ url: url_str, type: "POST", data: JSON.stringify(params), crossDomain: true, contentType: "application/json", dataType: "json", success: ok_cb, error: fail_cb, timeout: 6000 }); }
 function GetMachineTime(date) { let readType = mReadType.getMachineTimes; var params = { "date": date, "readType": readType, }; console.log(params); g_ajaxer(G_API_GATEWAY_URL_STR, params, function(response){ handleGatewayResponse(response, readType); }, function(error){ handleGatewayError(error); }); }

¿Cómo escribirlo usando un tipo similar de enfoque?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!