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

181
Views
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 answers
Answer question

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 Report
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!