8 comments

  1. Thanks for the great idea..
    I atchually didnt neede the loading gidf but wantd to know how to change css properties using java on client side and this helped alot thanks alot 🙂

  2. This was exactly what I was looking for and explained perfectly. Strange that it took my so long to find an answer for this…. I truly appreciate your work here. If you have a moment, I was wondering if you could help with a related issue.

    I have a page with a field that onChange() forces a form submit and reloads the page (to see if the entry(code) is legit, it checks a database and returns an error message if the code doesn’t exist). I would like to start a loading animation during the server request to let the user know that something is happening and to please wait. Do you know how to go about doing this?

    Thanks in advance, you are a saint.

    R

  3. Does not work for me.

    The usual behaviour on a form submit is following:
    You click the submit button, the current page freezes as is until all the data for the new page is available and then the new page is rendered.
    This might work for loading large images or huge amount of content, but if you have a query running that takes 20 seconds to retrieve the data, this will not work.

  4. For that to work, you’ll need to turn it around.
    Set an on_click event on the submit button to hide the container and display the bar.

    That works well

Leave a comment

Your email address will not be published. Required fields are marked *