www.webdeveloper.com
Results 1 to 4 of 4

Thread: Translate this code

  1. #1
    Join Date
    Oct 2011
    Posts
    6

    Translate this code

    Can someone help me with this code:
    HTML Code:
    var dlg = $('#dlgProperties');
    dlg.dialog({
                bgiframe: true,
                autoOpen: false,
                modal: true,
                title: TitleCertificationProperties,
                width: 600,
                buttons: buttons,
                close: function() {
                    $('input, textarea, select', dlg).val('');
                    $(this).dialog('destroy');
                }
            });
    What this is mean?

  2. #2
    Join Date
    Sep 2009
    Posts
    159
    From the look of the first glance, it looks like you're using some jQuery plugin, and I'm guessing it opens an modal window which has an iframe in it with some title sent from the plugin and also with width of 600px.

    I just can't say the detail about what the plug-in triggers unless you show us how the plug-in is defined.
    Got jQuery problem? jQuery vault can help you find solutions. Give it a try and find out.

    Click jQuery vault to help us help you.

  3. #3
    Join Date
    Oct 2011
    Posts
    6
    Yes, this must to be properties of pop-up window in context menu. But what is
    var dlg = $('#dlgProperties');

    In .css file I have
    HTML Code:
    #dlgProperties select
    {
        width: 202px;
    }
    
    #dlgProperties fieldset
    {
        margin: 0em 0;
        padding: 0 1em 0.5em 1em;
        border: 1px solid #CCC;
    }
    So, I want to make other popup like this, but I can't.. Add it in .css and make it in .js files, but nothing...

  4. #4
    Join Date
    Dec 2003
    Location
    Bucharest, ROMANIA
    Posts
    15,428
    Quote Originally Posted by Bulgarian View Post
    But what is
    var dlg = $('#dlgProperties');
    It is the reference of the DOM Element with the id="dlgProperties". The JQuery syntax for the equivalent native JavaScript:
    Code:
    var dlg = document.getElementById('dlgProperties');
    Before using JQuery you should first learn JavaScript and then the JQuery custom syntax.

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
  •  
HTML5 Development Center



Recent Articles