State: executing versus processing

What’s the difference between when the state is executing or processing?

1 Like

Good question. I’m keen to know the answer, too.

I suppose that you mean the states when fetching data from the server.

The executing state is from the moment it starts until it received all the data. To get data a request is done, this is done in the uploading state. It sends the request to the server, could be a simple url or a complete form with files. The moment the server received the data it has to process them, this is the processing state. This is the time your server-side code requires to do something with your request. After that it will send a response back to the client, this is the downloading state.

4 Likes

Just curious. If I have a fairly complex server connect script and I want to show a in process animated icon of some sort while it is loading and executing. I want it to run the entire time the script is executing, I might do several large images uploaded and then resize and then write something to several tables in the database and then write to another database (complex example), then will it show the entire time the script is running. That would be an executing? Or processing? does processing mean like the time it takes the image processor to run?

My understanding is executing covers the entire process and within that is uploading followed by processing. But I’ve not tested it so @patrick can correct me if I’m wrong :wink:

Like @sitestreet says, the executing state covers it all.

1 Like

@baub according to your reply - you were searching same what I need. Did you achieve that?
I have Server Connect which return data and I want to show modal windows unless loading is done.
For me - watching for state.processing - didn’t worked.

Code

<div class="modal" id="modal1" is="dmx-bs4-modal" tabindex="-1" role="dialog" nocloseonclick="true" nokeyboard="true" dmx-bind:show="sc_get_all_works_filtered.state.executing">