Advertisement
Advertisement
| 08.27.2008 at 02:12PM PDT, ID: 23683601 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: |
<script type="text/javascript" language="javascript">
function onUpdating(){
// get the update progress div
var pnlPopup = $get('<%= this.pnlPopup.ClientID %>');
// get the gridview element
var gridView = document.getElementById('tableCY');
// make it visible
pnlPopup.style.display = '';
// get the bounds of both the gridview and the progress div
var gridViewBounds = Sys.UI.DomElement.getBounds(gridView);
var pnlPopupBounds = Sys.UI.DomElement.getBounds(pnlPopup);
// center of gridview
var x = gridViewBounds.x + Math.round(gridViewBounds.width / 2) - Math.round(pnlPopupBounds.width / 2);
var y = gridViewBounds.y + Math.round(gridViewBounds.height / 2) - Math.round(pnlPopupBounds.height / 2);
// set the progress element to this position
Sys.UI.DomElement.setLocation(pnlPopup, x, y);
}
function onUpdated() {
// get the update progress div
var pnlPopup = $get('<%= this.pnlPopup.ClientID %>');
// make it invisible
pnlPopup.style.display = 'none';
}
</script>
ASPX :
<asp:UpdatePanel ID="updatePanel" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<table width="100%" class="tableNoBorder" cellspacing="0" border="0" runat="server" id="tableCY">
<tr>
<td>
<asp:Button ID="Button1" runat="server" Text="Button" OnClick="Click" />
</td><td>Making the table bigger</td>
</tr>
<tr><td>even bigger</td>
<td>And bigger and bigger</td></tr></table>
</ContentTemplate>
</asp:UpdatePanel>
<ajax:UpdatePanelAnimationExtender runat="server" TargetControlID="updatePanel">
<Animations>
<OnUpdating>
<Parallel duration="0">
<%-- place the update progress div over the gridview control --%>
<ScriptAction Script="onUpdating();" />
</Parallel>
</OnUpdating>
<OnUpdated>
<Parallel duration="0">
<%--find the update progress div and place it over the gridview control--%>
<ScriptAction Script="onUpdated();" />
</Parallel>
</OnUpdated>
</Animations>
</ajax:UpdatePanelAnimationExtender>
<asp:Panel ID="pnlPopup" runat="server" CssClass="progress" style="display:none;">
<div class="container">
<div class="header">Loading, please wait...</div>
<div class="body">
<img src="images/activity.gif" />
</div>
</div>
</asp:Panel>
|