UpdateProgress javascript event

  • Thread starter Thread starter Nick Chan
  • Start date Start date
N

Nick Chan

Is there a way to make it call a javascript function before an
UpdateProgress is called (or right after)?
 
Hi i found out the way



Sys.WebForms.PageRequestManager.getInstance().add_initializeRequest(
function (){
var arrSelects = document.getElementsByName('select')
for(var i=0;i<arrSelects.length;i++){
arrSelects.style.display = 'none'
}
}
)


but now another problem. document.getElementsByName('select') returns
nothing , does anyone know why?

ps: running javascript:document.getElementsByName('select').length in
browser address bar returns 5
 
because 'select' is probably not the correct name of the control, or you
meant to use getElementsByTagName('select'). if the former try:

var arrSelects = document.getElementsByName('<%=select.UniqueID%>');

-- bruce (sqlwork.com)


Nick said:
Hi i found out the way



Sys.WebForms.PageRequestManager.getInstance().add_initializeRequest(
function (){
var arrSelects = document.getElementsByName('select')
for(var i=0;i<arrSelects.length;i++){
arrSelects.style.display = 'none'
}
}
)


but now another problem. document.getElementsByName('select') returns
nothing , does anyone know why?

ps: running javascript:document.getElementsByName('select').length in
browser address bar returns 5


Is there a way to make it call a javascript function before an
UpdateProgress is called (or right after)?
 
Back
Top