jQuery Progress Indicators

by Bill Beckelman 5. October 2008 10:18

For a page I was working on this week I needed a static progress indicator to give a visual representation of the status of a list of projects. I looked at the following progress indicators:

before I settled on using the indicator I found at http://t.wits.sg/2008/06/20/jquery-progress-bar-11/. I really liked Matt's indicators, but they were a little overkill for what I was trying to do.

Demo | Download

End Product:

image

jQuery:

    <script type="text/javascript">
        $(document).ready(function() {
            $(".progressBar").progressBar();
        });        
    </script>

 

HTML Markup:

        <asp:ListView ID="lvWorkItems" runat="server" DataSourceID="ldsWorkItems">
            <LayoutTemplate>
                <table class="yui-grid" cellspacing="0" cellpadding="0">
                    <tr class="hdr">
                        <th>ID</th>
                        <th>Name</th>
                        <th>Percent Complete</th>
                    </tr>
                    <tr id="itemPlaceholder" runat="server" />
                </table>
            </LayoutTemplate>
            <ItemTemplate>
                <tr class='<%# Container.DataItemIndex % 2 == 0 ? "row" : "altrow" %>'>
                    <td><%# Eval("ID")%></td>
                    <td><%# Eval("Name")%></td>
                    <td>
                        <span class="progressBar"><%# Eval("PercentComplete") + "%" %></span>                                                                                    
                    </td>
                </tr>
            </ItemTemplate>
        </asp:ListView>  

I hope this post helps you or at least points you to some other options if this doesn't work for you.

 

kick it on DotNetKicks.com     [dzone]

Tags:

ASP.NET | jQuery

Comments

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading



Powered by BlogEngine.NET 1.4.5.7
Theme by Mads Kristensen


About Me

I live and work in Salt Lake City, Utah. My background is in aviation. I have a degree in Aeronautical Science from Embry-Riddle Aeronautical University in Prescott, AZ. I have worked as a commercial airline pilot and most recently as a technical advisor for a charter airline.