jQuery Hiding the close button URL for jQueryUI.dialog()
Results 1 to 4 of 4

Thread: Hiding the close button URL for jQueryUI.dialog()

  1. #1
    Member
    Join Date
    Dec 2012
    Posts
    49

    Hiding the close button URL for jQueryUI.dialog()

    Hello,

    When the mouse is over X (close) button on the dialog window, URL seems in the status bar. I want to hide this URL.
    How can I do this?
    PHP Code:
    <script>
    $(function() {
    $( 
    "#dialog" ).dialog({
            
    width800,
            
    height"auto",
    autoOpenfalse,
    resizablefalse,
    show: {
    effect"blind",
    duration1000
    },
    hide: {
    effect"explode",
    duration1000
    }
    });

    $( 
    "#opener" ).click(function() {
    $( 
    "#dialog" ).dialog"open" );
    });
    });
    </script> 
    HTML Code:
    <div id="dialog" title="SÍZLEŞME METNİ">
    <p><?=$oku['sozlesme_metni']?></p>
    </div>

    Thank you in advance

  2. #2
    Senior Member
    Join Date
    Mar 2009
    Posts
    802
    Check the CSS file that came with the download (with the UI theme). You'll probably have to modify that to hide it.
    Declare variables, not war.

  3. #3
    Member
    Join Date
    Dec 2012
    Posts
    49
    Okay, Thank you
    Code:
    .ui-dialog-titlebar-close {
      visibility: hidden;
    }
    PHP Code:
    <script>
    $(function() {
    $( 
    "#dialog" ).dialog({
            
    width800,
            
    height"auto",        
    autoOpenfalse,
    modaltrue,
    buttons: {
    Ok: function() {
    $( 
    this ).dialog"close" );
    }
    }
    });
    $( 
    "#opener" ).click(function() {
    $( 
    "#dialog" ).dialog"open" );
    });
    });
    </script> 
    OK button, hide link url



    This gives an error. Where should I add?
    PHP Code:
    show: {
    effect"blind",
    duration1000
    },
    hide: {
    effect"explode",
    duration1000

    Last edited by gecekule; 04-30-2013 at 10:50 PM.

  4. #4
    Member
    Join Date
    Dec 2012
    Posts
    49
    Problem ok, problem comma

    show: {
    effect: "blind",
    duration: 1000
    },
    hide: {
    effect: "explode",
    duration: 1000
    },

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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