Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

177
Vistas
How do I display a 'Please Wait' message in javascript when the mainframe language RPGILE is slow to respond?

I am new to javascript, but must make a mod to a slow running RPGILE program (mainframe language). I tried the below code, but the form doesn't submit until I respond to the alert box.

    <input type="submit" name="Continue" value="Send this order " onClick="alert('Please Wait...')" >
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

An alert box will pause everything else until it's dismissed.

As a quick alternative, you could hide the button on click and show the 'Please wait...' message in its place.

Try replacing your input with this:

<div>
    <input type="submit" name="Continue" id="sendButton" value="Send this order">
    <div id="loadingMessage" style="display: none;">Please wait...</div>
</div>
<script>
    document.getElementById('sendButton').addEventListener('click', () => {
        document.getElementById('sendButton').style.display = 'none';
        document.getElementById('loadingMessage').style.display = 'block'
    });
</script>
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda