Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #31560 > unrolled thread
| Started by | Isaac Silva <yzaak.silva@gmail.com> |
|---|---|
| First post | 2016-10-10 17:06 -0700 |
| Last post | 2016-10-15 17:19 -0700 |
| Articles | 3 — 2 participants |
Back to article view | Back to comp.lang.javascript
Progress bar with data from server Isaac Silva <yzaak.silva@gmail.com> - 2016-10-10 17:06 -0700
Re: Progress bar with data from server Tim Slattery <tim@risingdove.com> - 2016-10-11 11:21 -0400
Re: Progress bar with data from server Isaac Silva <yzaak.silva@gmail.com> - 2016-10-15 17:19 -0700
| From | Isaac Silva <yzaak.silva@gmail.com> |
|---|---|
| Date | 2016-10-10 17:06 -0700 |
| Subject | Progress bar with data from server |
| Message-ID | <1638bd86-e507-4bbb-bc21-3b7ea62f11f9@googlegroups.com> |
Hello everyone, I have a servlet in Java which receives a GET to process some stuff, then, it returns integer values as a progress of the proccess(a % value). My doubt is, how can I get these data from the server with JavaScript (to create a progress bar)? It needs Ajax or can I do with pure JS... Any study material about this issue? Thanks!
[toc] | [next] | [standalone]
| From | Tim Slattery <tim@risingdove.com> |
|---|---|
| Date | 2016-10-11 11:21 -0400 |
| Message-ID | <8n0qvblmpkfs1j89lkqhnpniv553ratuer@4ax.com> |
| In reply to | #31560 |
Isaac Silva <yzaak.silva@gmail.com> wrote: > Hello everyone, I have a servlet in Java which receives a GET > to process some stuff, then, it returns integer values as a progress > of the proccess(a % value). My doubt is, how can I get these data > from the server with JavaScript (to create a progress bar)? It needs > Ajax or can I do with pure JS... Any study material about this > issue? Thanks! Ajax. You need to ask the server to send you the progress report every (insert time interval here). Google for AJAX, lots of information available. -- Tim Slattery tim <at> risingdove <dot> com
[toc] | [prev] | [next] | [standalone]
| From | Isaac Silva <yzaak.silva@gmail.com> |
|---|---|
| Date | 2016-10-15 17:19 -0700 |
| Message-ID | <a4f5d2a5-3a05-44f3-8edc-4c412913ec2b@googlegroups.com> |
| In reply to | #31564 |
Em terça-feira, 11 de outubro de 2016 12:21:28 UTC-3, Tim Slattery escreveu: > Isaac Silva <yzaak.silva@gmail.com> wrote: > > > Hello everyone, I have a servlet in Java which receives a GET > > to process some stuff, then, it returns integer values as a progress > > of the proccess(a % value). My doubt is, how can I get these data > > from the server with JavaScript (to create a progress bar)? It needs > > Ajax or can I do with pure JS... Any study material about this > > issue? Thanks! > > Ajax. You need to ask the server to send you the progress report every > (insert time interval here). Google for AJAX, lots of information > available. > > -- > Tim Slattery > tim <at> risingdove <dot> com Very thanks! I was thinking if it was possible, because the server will not know when send the data, so can I get the data in a time interval by XHR and then create my real time progress bar, I think it will solve the problem. Thanks again!
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.javascript
csiph-web