> Browser is opening save dialog and saveing the response into an .xls file.
So your scripts are writing to the clients machine? Is the data being received over an XHR request? It wouldn't be the most fluid progress bar, but if it was an XHR you could increment a progress bar each time it moves to the next ready state.\ If you need something really smooth and if the download times are in excess of 15 seconds or more I'd highly recommend looking into a flash solution. Flash has much better capabilities to monitor HTTP progress. -- http://positionabsolute.net On Jan 2, 4:23 am, "Naganirangen Ravilla" <[email protected]> wrote: > Thanks for your response. > > No issues at serverside contentType.Response contenttype is application/xls. > > Browser is opening save dialog and saveing the response into an .xls file. > > My requirement is while downloading data ,browser showd show loading or > downloading message till download will get finished. > > any idea to show this message using prototype. > > Thanks, > Naga. > > On Wed, Dec 31, 2008 at 10:35 PM, T.J. Crowder > <[email protected]>wrote: > > > > > Hi, > > > I don't quite understand, from your subject line "How to change > > contentType", it sounds like you want to know how to set the content > > type of the response, but your message talks about doing something > > with a "Loading..." message. Can you clarify? > > > (OT: To set the content type of the returned data, in your JSP you > > want to use the setContentType method of the ServletResponse.[1] So > > if that was the question, that's the answer, but it's a Java EE thing > > serverside rather than a Prototype thing client-side.) > > > [1] > >http://java.sun.com/javaee/5/docs/api/javax/servlet/ServletResponse.h...) > > > Sorry if I'm being dense, I just got up. :-) > > > HTH, > > -- > > T.J. Crowder > > tj / crowder software / com > > > On Dec 31, 2:36 pm, Naganirangen <[email protected]> wrote: > > > Hi, > > > > I'm new user to use this prototype API.Below is my requirement. > > > > I'm exporting content from jsp to excel,using setcontentType > > > application/xls of httpresponse. > > > > When it is downloading ,browser should show "Loading...." message. > > > > I don't know how to handle this using prototype. > > > > Can any one suggest me how to do it ? > > > > Your help is highly appreciated. > > > > Thanks, > > > Naga. --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---
