code_junkie

How to specify javascript to run when ModalPopupExtender is shown

Nov 10th, 2011
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. function pageLoad(){ var popup = $find('ModalPopupClientID'); popup.add_shown(SetFocus);}function SetFocus(){ $get('TriggerClientId').focus();}
  2.  
  3. function pageLoad() {
  4. $find('mpeBID').add_shown(HideMediaPlayer);
  5. }
  6.  
  7. function HideMediaPlayer() {
  8. var divMovie = $get('<%=divMovie.ClientID%>');
  9. divMovie.style.display = "none";
  10. }
Add Comment
Please, Sign In to add comment