Re: [Proto-Scripty] PLease Wait or Loading message
Great!!! I'll use too. I have something like this, but not so complete. Thanks 2010/2/10 Peter De Berdt peter.de.be...@pandora.be On 10 Feb 2010, at 15:20, bill wrote: I have an application that uses Ajax.updater. As it runs over the internet sometimes the response can take 10 seconds, by which time the user thinks that it did not work so I would like to show a message as soon as the link is clicked to fire the Ajax request. I am however befuddled. If I set the innerHTML of the div with the message, it wipes out the form that needs to be sent. If I use onSuccess, it takes too long. Suggestions ? Just copy pasted what we use @ http://pastie.org/818221 We use http://blog.var.cc/static/growl/ to show errors, but you can leave out that section. Just put a div with the loading image somewhere in your document and set its style to display: none;. The code I posted will work for every Ajax request you do, so you have a nice and generic solution there. How you make the loading indicator look is completely up to you. Best regards Peter De Berdt -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.comprototype-scriptaculous%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
Re: [Proto-Scripty] PLease Wait or Loading message
I would use onCreate to show an element displaying your please wait message (or a graphical spinner, etc.) and use onComplete to hide it Enjoy, Christophe Le 10 févr. 2010 à 15:20, bill a écrit : I have an application that uses Ajax.updater. As it runs over the internet sometimes the response can take 10 seconds, by which time the user thinks that it did not work so I would like to show a message as soon as the link is clicked to fire the Ajax request. I am however befuddled. If I set the innerHTML of the div with the message, it wipes out the form that needs to be sent. If I use onSuccess, it takes too long. Suggestions ? -- Bill Drescher william {at} TechServSys {dot} com -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
Re: [Proto-Scripty] PLease Wait or Loading message
On 10 Feb 2010, at 15:20, bill wrote: I have an application that uses Ajax.updater. As it runs over the internet sometimes the response can take 10 seconds, by which time the user thinks that it did not work so I would like to show a message as soon as the link is clicked to fire the Ajax request. I am however befuddled. If I set the innerHTML of the div with the message, it wipes out the form that needs to be sent. If I use onSuccess, it takes too long. Suggestions ? Just copy pasted what we use @ http://pastie.org/818221 We use http://blog.var.cc/static/growl/ to show errors, but you can leave out that section. Just put a div with the loading image somewhere in your document and set its style to display: none;. The code I posted will work for every Ajax request you do, so you have a nice and generic solution there. How you make the loading indicator look is completely up to you. Best regards Peter De Berdt -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
Re: [Proto-Scripty] PLease Wait or Loading message
On 2/10/2010 9:42 AM, Christophe Decaux wrote: I would use onCreate to show an element displaying your please wait message (or a graphical spinner, etc.) and use onComplete to hide it Enjoy, Christophe Le 10 févr. 2010 à 15:20, bill a écrit : Thanks guys - that works -- Bill Drescher william {at} TechServSys {dot} com -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.