Display is null or not an object

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Display is null or not an object

Adam Seacrest
I get this error on line 4 of: window.onload = function() { var inlineProgressBar = NeatUploadPB.prototype.Bars["inlineProgressBar"]; var origDisplay = inlineProgressBar.Display;<----THIS LINE inlineProgressBar.Display = function() { var elem = document.getElementById(this.ClientID); elem.parentNode.style.display = "block"; origDisplay.call(this); } inlineProgressBar.EvalOnClose = "NeatUploadMainWindow.document.getElementById('" + inlineProgressBar.ClientID + "').parentNode.style.display = \"none\";"; } any ideas? Thanks Adam
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Display is null or not an object

Dean Brettle
Administrator
That is code from Demo.aspx where there is an ProgressBar control with an id of "inlineProgressBar".  The ProgressBar control on your page probably has a different ID, so you'd need to change:

var inlineProgressBar = NeatUploadPB.prototype.Bars["inlineProgressBar"];

to:

var inlineProgressBar = NeatUploadPB.prototype.Bars["id_of_your_progress_bar"];
Loading...