Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Unable to Access UpdateProgress Control via JavaScript

$
0
0

I am trying to display an UpdateProgress via JavaScript, however the JavaScript keeps erroring out with "Object Expected". I know that the client ID of the UpdateProgress is correct. What am I missing? I've tried both get$() and document.getElementById and single/double quotes. Per the link below, it should work. The UpdateProgress controls exist on user controls.

http://msdn.microsoft.com/en-us/library/bb398821(v=vs.100).aspx

 

                            function ChangeMainPanel() {
                                var qspProjectNumber = getQueryStringParameter("ProjectNumber");
                                if (qspProjectNumber.length == 0) {
                                    var URL = "Setup_Detail.aspx?savequerystring=yes&view=" + document.getElementById("DropDownListSelectMainPanel").value;                                
                                } else {
                                    var URL = "Setup_Detail.aspx?savequerystring=yes&view=" + document.getElementById("DropDownListSelectMainPanel").value + "&ProjectNumber=" + getQueryStringParameter("ProjectNumber");
                                }
                                var panel = $get("DropDownListSelectMainPanel").value;
                                window.alert(panel);
                                switch (panel) {
                                    case "PanelGeneralInformation":
                                        window.alert("PanelGeneralInformation");
                                        get$('Setup_GeneralInformation_UpdateProgressShowSetup').style.display = "block";
                                        break;
                                    case "PanelShowContacts":
                                        window.alert("PanelContacts");
                                        get$('Setup_Contacts_UpdateProgressShowSetup').style.display = "block";
                                        break;
                                    default:
                                }
                                window.location.href=URL;
                            }


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>