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
    Sencha User
    Join Date
    Jul 2011
    Posts
    12
    Vote Rating
    0
    spurcell is on a distinguished road

      0  

    Default Ext.DomHelper is undefined

    Ext.DomHelper is undefined


    Running a simple example from the Learning Ext JS book but in 4.0 not 3.2. Anyway, must be doing something incorrectly as when I run the below code, firebug is telling me the following: I am thinking maybe I am not including the correct js libaries?


    Ext.DomHelper is undefined
    [IMG]chrome://firebug/content/blank.gif[/IMG] Ext.DomHelper.applyStyles('...images/fire.png) 0 100% repeat-x'});



    <html>
    <head>
    <style>
    .milton-icon { background: url(images/milton-head-icon.png) no-repeat; }
    .ext-el-mask { background-color:#FFF; }
    </style>
    <title>Hello Message</title>

    <link rel="stylesheet" type="text/css" href="extjs/resources/css/ext-all.css">
    <script type="text/javascript" src="extjs/ext-debug.js"></script>
    <script type="text/javascript" src="extjs/ext-all-debug.js"></script>
    <script>
    Ext.onReady(function() {
    Ext.Msg.show({
    title: 'Have you seen my stapler?',
    icon: 'milton-icon',
    buttons: Ext.Msg.YESNOCANCEL,
    fn: function(btn) {
    switch(btn) {
    case 'yes':
    Ext.Msg.prompt('Milton', 'Where is it?', function(btn,txt) {
    if (txt.toLowerCase() == 'the office') {
    Ext.get('my_id').dom.innerHTML = 'Work Sucks';
    }else{
    Ext.get('my_id').dom.innerHTML = txt;
    }
    Ext.DomHelper.applyStyles('my_id',{background: 'transparent url(images/stapler.png) 50% 50% no-repeat'});
    });
    break;
    case 'no':
    Ext.Msg.alert('Milton', 'Im going to burn the building down!', function() {
    Ext.DomHelper.applyStyles('my_id',{'background': 'transparent url(images/fire.png) 0 100% repeat-x'});
    Ext.DomHelper.applyStyles(Ext.getBody(),{'background-color': '#FF0000'});
    Ext.getBody().highlight('FFCC00',{endColor:'FF0000', duration: 6});
    });
    break;
    case 'cancel':
    Ext.Msg.wait('Saving tables to disk...','File Copy');
    break;

    }
    }
    });
    });

    </script>
    </head>
    <body>
    hello
    <div id='my_id' style='width:200px; height:200px;'>Test</div>
    </body>

    </html>

  2. #2
    Sencha User
    Join Date
    Mar 2011
    Location
    Germany
    Posts
    198
    Vote Rating
    1
    Nickname is on a distinguished road

      0  

    Default


    Ext.DomHelper does not exists in 4.0.2a, but Ext.core.DomHelper does

    From the src/core/src/dom/DomHelper.js file:

    Ext.ns('Ext.core');
    Ext.core.DomHelper = function(){
    var tempTableEl = null,


    The Online Docs source :
    // http://docs.sencha.com/ext-js/4-0/so...#Ext-DomHelper
    Ext.ns('Ext.core');
    Ext.core.DomHelper = Ext.DomHelper = function(){
    var tempTableEl = null,

    I will report this in the Api Docs Bug Thread. Seems the Online Docs are not for 4.0.2a as they should...

    So you need to use Ext.core.DomHelper instead of Ext.DomHelper

    Edit: Bug Report : http://www.sencha.com/forum/showthre...l=1#post626412

  3. #3
    Sencha User
    Join Date
    Jul 2011
    Posts
    12
    Vote Rating
    0
    spurcell is on a distinguished road

      0  

    Default


    Thanks for the response. That worked, and was confusing.

  4. #4
    Ext JS Premium Member
    Join Date
    Sep 2009
    Posts
    29
    Vote Rating
    2
    allardp is on a distinguished road

      0  

    Default core

    core


    Thanks, it worked for me too. The online documentation is incorrect at : http://docs.sencha.com/ext-js/4-0/#/api/Ext.DomHelper

    It says Ext.DomHelper, but should be Ext.core.DomHelper. (also in the samples)

Thread Participants: 2