Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Ext User
    Join Date
    Oct 2007
    Posts
    4
    Vote Rating
    0
    simcityfreak4 is on a distinguished road

      0  

    Default onload possible?

    onload possible?


    I found the script in one of the demos here: http://extjs.com/deploy/ext/examples...g/msg-box.html

    Is there a way to make it so that when the page loads the message pops up? I got it so that works on my own server and I thought I could use onload in the body tag, but im not sure what to put in it.

    Thanks for the help!

  2. #2
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,353
    Vote Rating
    77
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    it's better off to use Ext.onReady(fn(){}); than on the onload event.

  3. #3
    Ext User
    Join Date
    Oct 2007
    Posts
    4
    Vote Rating
    0
    simcityfreak4 is on a distinguished road

      0  

    Default


    How would I do that? I just found Ext and don't know much yet.

  4. #4
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,496
    Vote Rating
    44
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    http://extjs.com/deploy/dev/docs/?cl...member=onReady

    If that doesn't help, then it's not Ext you're having a problem with.

  5. #5
    Ext User
    Join Date
    Oct 2007
    Posts
    4
    Vote Rating
    0
    simcityfreak4 is on a distinguished road

      0  

    Default


    Is there a way to do that in v1.1? I was looing through the documentation thing and didn't see anything called that for v1.1.

  6. #6
    Ext User
    Join Date
    Oct 2007
    Posts
    8
    Vote Rating
    0
    TiVoShane is on a distinguished road

      0  

    Default


    You should use Ext.onReady to initialize all your variables/widgets so this would be a good place to make a dialog pop up.

    In your page just enter some script like this

    Code:
     
    <script>  
    Ext.onReady(Ext.Msg.show({title:'Hello',msg:'This is a message',
               buttons:Ext.Msg.YESNO,
               fn:javascriptFunctionToCallWithResponse}));
    
    function javascriptFunctionToCallWithResponse(btn)
    {
      if (btn == 'yes')
      {
          alert('you pressed YES!  Why do I care?  hmmm......');
      }
    }
    
    </script>
    a Popup should appear when the page loads because Ext will be ready shortly after the page loads.

  7. #7
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,353
    Vote Rating
    77
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    Quote Originally Posted by simcityfreak4 View Post
    Is there a way to do that in v1.1? I was looing through the documentation thing and didn't see anything called that for v1.1.
    it's all over the place

  8. #8
    Ext User
    Join Date
    Oct 2007
    Posts
    4
    Vote Rating
    0
    simcityfreak4 is on a distinguished road

      0  

    Default


    Thanks, thats what I needed!

  9. #9
    Ext User
    Join Date
    Oct 2007
    Posts
    7
    Vote Rating
    0
    moleouf is on a distinguished road

      0  

    Red face


    I know this can be an annoying question to a trained person but can you please give me an example of an onload message box prompt with two text boxes to fill.

    Regards,

    P.S : This is what i want to show when the page loads :
    Code:
    Ext.onReady(function(){
    					 
        Ext.MessageBox.prompt('Name', 'Please enter your name:');
    
    });
    The thing is I want two text boxes in the dialog.