Results 1 to 3 of 3
  1. #1
    mehwish is offline Member
    Join Date
    Jul 2013
    Posts
    2
    Rep Power
    0

    Question How to get rid of "X" button of dialog box in dojo 1.8

    Hi,

    I want to get rid of the "X" button in dialog box in dojo 1.8. Please refer my code example and let me know the needful changes.

    <div data-dojo-type="dijit/Dialog" data-dojo-id="myFormDialog1" style="width: 600px; height: 200px;">

    <form data-dojo-type="dijit/form/Form" data-dojo-id="myForm1">
    <div class="dijitDialogPaneContentArea"; dlg.closeButtonNode.style.display='false';>
    <p align="center">Application cannot be processed contact help desk.</p>
    </div>

    <div class="dijitDialogPaneActionBar">
    <p align="center">
    <button data-dojo-type="dijit/form/Button" onclick="hide('buttonone')" type="submit">OK</button>

    </p>
    </div>
    </form>

    </div>
    <br>
    <button id="buttonone" data-dojo-type="dijit/form/Button" type="button">Button 1
    <script type="dojo/method" data-dojo-event="onClick" data-dojo-args="evt">
    myFormDialog1.show();

    </script>
    </button>

  2. #2
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,277
    Rep Power
    6

    Default Re: How to get rid of "X" button of dialog box in dojo 1.8

    You know in this day and age, there is absolutely no reason that you should confuse Java with Javascript anymore. Its probably one in the top 10 repeatedly made statements on the internet. Even the smallest amount of reading into the tools you're using should have made you stumble over it.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,452
    Rep Power
    20

    Default Re: How to get rid of "X" button of dialog box in dojo 1.8

    Moved from Advanced Java and closing as off topic.

    db

    THREAD CLOSED
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Replies: 0
    Last Post: 12-07-2012, 09:29 AM
  2. Replies: 3
    Last Post: 10-30-2012, 04:06 PM
  3. Where is the "Create Data Source Dialog Box"
    By drieskn in forum NetBeans
    Replies: 0
    Last Post: 03-12-2009, 12:46 PM
  4. Replies: 1
    Last Post: 10-20-2008, 08:35 AM
  5. Open "Save Page As" Dialog Box
    By Anubha in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 12-12-2007, 10:27 PM

Tags for this Thread

Posting Permissions

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