Progress bar that loads a web part
I am trying to put a spinning progress bar that loads for about 5 seconds before a webpart is populated but I am not sure how to do this. When I modify the webpart there isn't any place to put an image for the progress bar. Does anyone know or have any experience on how this would be done. Is this done in the code or can it be done within the webpart?
March 29th, 2011 11:27am

Hi, I have an idea to achieve this. You can do scripting to get this working. first create a script to show the gif image (spinning progress bar) for 5 seconds and then it will call the web part. You can refer http://www.huddletogether.com/projects/lightbox2/ http://www.howtocreate.co.uk/tutorials/jsexamples/testingRoll.html http://www.javascriptkit.com/howto/show2.shtml hth.Warm Regards, Pratik Vyas | SharePoint Consultant | http://sharepointpratik.blogspot.com/
Free Windows Admin Tool Kit Click here and download it now
March 29th, 2011 11:39am

OK thanks for this but how do I apply one of these scripts to my webpart. My webpart is done in visual studio and in order to apply one of these scripts don't I have to incorporate it into the visual studio code for my webpart? I don't understand how I can apply this to what I have now. Does that make sense?
March 29th, 2011 12:15pm

You just have to create a javascript and upload it on site. Make sure to provide follow sequence when page loads. Page Loads > Script calls the image for 5 sec > Script calls web part. As you have created the web part in VS, need to collaborate some developer to integrate this code to web part.Warm Regards, Pratik Vyas | SharePoint Consultant | http://sharepointpratik.blogspot.com/
Free Windows Admin Tool Kit Click here and download it now
March 29th, 2011 12:18pm

Is this all web parts or a particular type of web part (or even a single web part) ?SP 2010 "FAQ" (mainly useful links): http://wssv4faq.mindsharp.com/default.aspx WSS3/MOSS FAQ (FAQ and Links) http://wssv3faq.mindsharp.com/default.aspx Both also have links to extensive book lists and to (free) on-line chapters
March 29th, 2011 12:18pm

Is this all web parts or a particular type of web part (or even a single web part) ? I am trying to apply it to a web part. The web part is a My Memberships webpart. It loads the sites on farm you are able to access based on login.
Free Windows Admin Tool Kit Click here and download it now
March 29th, 2011 1:10pm

You just have to create a javascript and upload it on site. I understand creating the javascript but when you say upload it to the site. How do you do this and get it upload to a webpart?
March 29th, 2011 1:11pm

HI, I meant, update it (.js file) on site because to take reference of that file when you right codes.Just upload it to one of the document library.Warm Regards, Pratik Vyas | SharePoint Consultant | http://sharepointpratik.blogspot.com/
Free Windows Admin Tool Kit Click here and download it now
March 30th, 2011 4:03am

Then once I upload it to one of the document libraries can you use that as part of the webpart. I don't see how upload that code to a doc library can be used to affect my problem of using it to load the webpart. Can you explain how that would be done?
March 30th, 2011 10:33am

Ok fine. i.e. Your script file name is animation.js and you have to upload it into document library. Now go to web part section where you have to place the codes to call the script when page loads and thats why you have to upload the script in to doc library. In the coding you have to mention from where the script loads and in that section you have to provide the location of that animation.js file.Warm Regards, Pratik Vyas | SharePoint Consultant | http://sharepointpratik.blogspot.com/
Free Windows Admin Tool Kit Click here and download it now
March 30th, 2011 10:37am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics