1. #1
    Sencha User
    Join Date
    Feb 2008
    Posts
    84
    Vote Rating
    0
    danellison is on a distinguished road

      0  

    Question Ext.ux.ColorPicker ... is not a constructor

    Ext.ux.ColorPicker ... is not a constructor


    Greetings all. I am trying to implement a bit of code using the ColorPicker extension published by Amon. A) I can't get the included example code to run right when embedded within my examples tree. When I try to implement a solution I get the message "ColorPicker is not a constructor." Firefox says the the code and css files are loaded so doesn't seem to be a path issue. Anybody else seen this behavior? Couldn't find any references in the forums. Anybody got any ideas?

    I thank you in advance,
    Dan

  2. #2
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,353
    Vote Rating
    79
    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 could be an issue of timing. is your stuff run via ext.onReady()?

  3. #3
    Sencha User
    Join Date
    Feb 2008
    Posts
    84
    Vote Rating
    0
    danellison is on a distinguished road

      0  

    Default yes, inside Ext.onReady block

    yes, inside Ext.onReady block


    Hi J. Thanks for responding and your thoughts. I unpacked the colorpicker zip file into my working extjs base directory so that the "examples" fall ino the examples directory, css falls into resources/css , the ux direcxtory is created and contains color-picker subdirectory that contains the actial .js files. I have "link/script"ed both the css and js files in my main document as well....

    And, yes, the code is contained within an Ext.onReady block as follows:

    Code:
    <script type="text/javascript">
    
    function testPickColor(p, hexa) {
        Ext.get( 'result' ).update(' &nbsp;'+hexa+'&nbsp;' );
        Ext.get( 'result' ).setStyle({backgroundColor: '#'+hexa });
    }
    
    Ext.onReady( function(){
        var picker = new Ext.ux.ColorPicker( 'colorPicker', {
                hidePanel: false,
                captions: {
                    red: 'red',
                    green: 'grn',
                    blue: 'blue',
                    hue: 'hue',
                    saturation: 'sat',
                    brightness: 'val',
                    hexa: 'col.',
                    websafe: 'Safe'
                },
                animate: true
            });
    
            var pickerDialog = new Ext.ux.ColorDialog( 'colorDialog', {
                title: 'Pick a Color!',
                resizable: false,
                hidepanel: false,
                hsv: {h:120, s:20, v:50},
                shadow: true
            });
            pickerDialog.addButton( 'Ok' );
            pickerDialog.addButton( 'Cancel' );
        });
    </script>
    HTML Code:
    <div id="colorPicker"></div>
    <div id="colorDialog"></div>

Thread Participants: 1

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