1. #1
    Sencha User
    Join Date
    Mar 2012
    Location
    Chennai, India
    Posts
    71
    Answers
    7
    Vote Rating
    2
    a.premkumar is on a distinguished road

      0  

    Default Answered: I have problem with Ext.Msg.alert

    Answered: I have problem with Ext.Msg.alert


    I am trying to use ExtJS' message alert to show a text.This is the code that I am using
    Code:
    Ext.onReady(function()
            {
                var type = document.getElementById("type").value;
                Ext.Msg.alert(type);
            });
    where 'type' is a hidden field. When I run this code I get the following message on console.

    What am I doing wrong here?

  2. If you're using ext-debug.js then it may not have loaded Ext.window.MessageBox.

    You could try using ext-all-dev.js or adding an Ext.require for MessageBox.

  3. #2
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,590
    Answers
    541
    Vote Rating
    322
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      1  

    Default


    If you're using ext-debug.js then it may not have loaded Ext.window.MessageBox.

    You could try using ext-all-dev.js or adding an Ext.require for MessageBox.

  4. #3
    Sencha User metalinspired's Avatar
    Join Date
    Apr 2012
    Posts
    98
    Answers
    4
    Vote Rating
    4
    metalinspired is on a distinguished road

      0  

    Default


    you must specify at least two string parameters (title and message) when calling .alert()

  5. #4
    Sencha User
    Join Date
    Mar 2012
    Location
    Chennai, India
    Posts
    71
    Answers
    7
    Vote Rating
    2
    a.premkumar is on a distinguished road

      0  

    Default


    Thank you skirtle. It worked.

  6. #5
    Sencha User
    Join Date
    Mar 2012
    Location
    Chennai, India
    Posts
    71
    Answers
    7
    Vote Rating
    2
    a.premkumar is on a distinguished road

      0  

    Default


    Quote Originally Posted by metalinspired View Post
    you must specify at least two string parameters (title and message) when calling .alert()
    But that would not be a problem here. If only one param is provided, the message box takes it as the title, shows an alert with given text and empty body.

  7. #6
    Sencha User metalinspired's Avatar
    Join Date
    Apr 2012
    Posts
    98
    Answers
    4
    Vote Rating
    4
    metalinspired is on a distinguished road

      0  

    Default


    Not documented so its new to me

  8. #7
    Sencha User
    Join Date
    Mar 2012
    Location
    Chennai, India
    Posts
    71
    Answers
    7
    Vote Rating
    2
    a.premkumar is on a distinguished road

      0  

    Default


    Quote Originally Posted by metalinspired View Post
    Not documented so its new to me
    Well that happens every time while learning technologies .

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