1. #1
    Ext User
    Join Date
    Mar 2007
    Posts
    32
    Vote Rating
    0
    Alidad is on a distinguished road

      0  

    Default basic dialog

    basic dialog


    I recently finish my own sample hello world basic dialog, when click that button is expand in the middle, i like to change the position to move location to down middle, how can i write code on that!

    which file do i need to change code for location!

    alidad

  2. #2
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    17
    jack.slocum will become famous soon enough jack.slocum will become famous soon enough

      0  

    Default


    You can pass the x and y in your config or you can call moveTo(x, y).

    Check http://www.yui-ext.com/docs/ where these methods (and others) are documented.

  3. #3
    Ext User
    Join Date
    Aug 2008
    Posts
    4
    Vote Rating
    0
    amitgh is on a distinguished road

      0  

    Default yui dialog moves up each time clicked

    yui dialog moves up each time clicked


    Hi Jack,
    I am using yui basic dialog and on clicking complete button each time my dialog moves up. How can i fix this prob? Plz help...

    this is my code

    //var flagForSave = 0; //This variable is used as indication whether any report is been saved as complete
    //var flagToKnowIfNewSaveAgain = "no";

    YAHOO.namespace(
    "example.container");


    function
    init() {

    // Define various event handlers for Dialog

    var handleYes = function() {
    var
    choice="draft";
    savereport(choice,flagToKnowIfNewSaveAgain);
    if(flagForSave == 1){// This is again if the cycle of save happens after complete

    YAHOO.example.container.simpledialog1.setBody(
    "Please select your Choice !");
    flagToKnowIfNewSaveAgain =
    "no";
    flagForSave = 0;
    }
    this
    .hide();
    };
    var handleNo = function() {
    YAHOO.example.container.simpledialog1.setBody("This report will be stored as a new Report.Please Enter your choice?");
    var choice="final";
    savereport(choice,flagToKnowIfNewSaveAgain);
    if(flagForSave == 0){
    flagForSave = 1;// Means report is saved as complete once
    flagToKnowIfNewSaveAgain = "yes";
    }
    this
    .hide();
    };

    var cancel1 = function(){
    this
    .hide();
    };

    // Instantiate the Dialog
    YAHOO.example.container.simpledialog1 = new YAHOO.widget.SimpleDialog("simpledialog1",
    { width: "300px",
    fixedcenter:
    true,
    visible:
    false,
    draggable:
    false,
    zIndex: 15000,
    modal:
    true,
    close:
    true,
    text:
    "Please select your Choice !",
    icon: YAHOO.widget.SimpleDialog.ICON_HELP,
    constraintoviewport:
    true,
    buttons: [
    { text:"As Draft", handler:handleYes, isDefault:false },
    { text:"Complete", handler:handleNo },
    { text:"Cancel", handler:cancel1} ]
    } );
    YAHOO.example.container.simpledialog1.setHeader(
    "How would you like to save the Report?");


    // Render the Dialog
    YAHOO.example.container.simpledialog1.render(document.body);

    YAHOO.util.Event.addListener(
    "show", "click", YAHOO.example.container.simpledialog1.show, YAHOO.example.container.simpledialog1, true);
    //YAHOO.util.Event.addListener("hide", "click", YAHOO.example.container.simpledialog1.hide, YAHOO.example.container.simpledialog1, true);


    }

    YAHOO.util.Event.addListener(window,
    "load", init);


Similar Threads

  1. Need Help In Basic Dialog
    By tagfrisk in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 1 May 2007, 11:28 PM
  2. basic dialog basic question
    By kevinknight in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 13 Mar 2007, 10:58 AM
  3. Very basic custom dialog
    By gfraser in forum Community Discussion
    Replies: 9
    Last Post: 8 Jan 2007, 3:37 PM
  4. Basic Dialog, is this possible....
    By peter_n in forum Ext 1.x: Help & Discussion
    Replies: 3
    Last Post: 22 Dec 2006, 1:40 PM
  5. help with Basic Dialog!
    By VatsaL in forum Ext 1.x: Help & Discussion
    Replies: 4
    Last Post: 2 Dec 2006, 2:50 PM

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi