Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jun 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    showModalDialog Title Change...

    Hey guys....I'm using JavaScript for creating a MOdalDialog box..My issue is i cannot change the Title of ModalDialog...It is staying same as "-- Web Page Dialog".....How can i modify the title of the dialog box??? Let me know guys....Thanks...


    function fnRandom(iModifier){
    return parseInt(Math.random()*iModifier);
    }
    function fnSetValues(){
    var iHeight=oForm.oHeight.options[
    oForm.oHeight.selectedIndex].text;
    if(iHeight.indexOf("Random")>-1){
    iHeight=fnRandom(document.body.clientHeight);
    }
    var sFeatures="dialogHeight: " + iHeight + "px;";
    return sFeatures;
    }
    function fnOpen(){
    var sFeatures=fnSetValues();
    window.showModalDialog("showModalDialog_target.htm", "",
    "title.text:'hello';font-size:10px;dialogWidth:50em;dialogHeight:50em")
    }
    </SCRIPT>

    <FORM NAME=oForm>
    Dialog Height <SELECT NAME="oHeight">
    <OPTION>-- Random --
    <OPTION>150
    <OPTION>200
    <OPTION>250
    <OPTION>300
    </SELECT>

    Create Modal Dialog Box
    <INPUT TYPE="button" VALUE="Push To Create"
    onfiltered="fnOpen()">
    </FORM>

  • #2
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    You can't
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  • #3
    New to the CF scene
    Join Date
    Jun 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    reallyy...i thiought there shudbe some workaround...hmmmm,...

  • #4
    Regular Coder
    Join Date
    May 2005
    Posts
    313
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The notification doesn't appear from a trusted application (such as mshta), but otherwise, the best you can do is include a <title>element</title> in the dialog document...
    Thanks in advance!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •