Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
400
WebDialogWindow Header Text change in JavaScript
posted

How do I change the header text on a WebDialogWindow in Javascript.

I have tried this.

var oWebDialogWindow = $find('ctl00_CL_ContentPlaceHolder_wpMyAccount_wdwMessages');

var header = oWebDialogWindow.get_header();

header.setCaptionText(hdnSubject.value);

However, it keeps telling me that the header is null.

Parents
No Data
Reply
  • 540
    posted

    Hey there, this is for anyone else coming across this post.  This seems to work for me in version 10.2: (Just a note, that I had actually set the Caption Text to a default text value in the designer that I changed in the code below)

    var

     

     

     

    dialog = $find('<%= wdw_OTPDExclusions.ClientID %>'

    );

    dialog._elements[1].innerHTML =

     

    "PD Preferences";

Children
No Data