I have strange problem with Javascript, I am trying to implement system to update some stuff, and when I press button I want to hide everything except 'MainContent_UpdateProgress', but text area is still visible.
Text area in asp.net looks like this:
<textarea runat="server" id="serverOutputTextArea" cols="50" rows="30" name="serverOutputTextArea" visible="false">
Javascript code:
var prm = Sys.WebForms.PageRequestManager.getInstance();
prm.add_initializeRequest(InitializeRequest);
prm.add_endRequest(EndRequest);
var postBackElement;
function InitializeRequest(sender, args) {
if (prm.get_isInAsyncPostBack())
args.set_cancel(true);
postBackElement = args.get_postBackElement();
if (postBackElement.id == 'MainContent_UpdateAnalysisSystem')
{
$get('MainContent_serverOutputTextArea').style.display = 'none'; //Doesn't work
$get('MainContent_UpdateProgress').style.display = 'block'; //Works
$get('MainContent_ProcessingStatus_Label').style.display = 'none'; //Works
$get('MainContent_ShowDetails_Button').style.display = 'none'; //Works
}
}
Question would be, what is different in textarea ?