1. #1
    Sencha User
    Join Date
    Apr 2010
    Posts
    9
    Vote Rating
    0
    tiagoadp is on a distinguished road

      0  

    Exclamation FormPanel error

    FormPanel error


    Hi i will show the code, so any1 of you can help me... i am a litle lost with ext 4.0...

    Code in LoginWindow.js

    Code:
    Ext.define('GUI.LoginWindow', {
        extend: 'Ext.window.Window',
    	
    	alternateClassName: 'LoginWindow',
    	
        initComponent: function() {
            
    		this.form = Ext.create('Ext.form.FormPanel',{
    			frame			:	true
    			,hideBorders	:	true
    			,scope			:	this
    			,standardSubmit	:	true
    			,labelWidth		:	80
    			,autoHeight		:	true
    			,autoWidth		:	true
    			,url			:	'login.php'
    			,defaultType	:	'textfield'
    			,items			:	[{
    				fieldLabel	:	'Login',
    				name		:	'login',
    				allowBlank	:	false
    			},{
    				fieldLabel	:	'Senha',
    				name		:	'password',
    				inputType	:	'password',
    				allowBlank	:	false
    			}]
    			,buttons			:	[{
    				text		:	'Acessar',
    				formBind	:	true,
    				scope		:	this,
    				handler		:	function(){ 
    					this.form.getForm().submit({ 
    						method		:	'POST'
    					}); 
                    }
    			}]
    		});
    		
    		Ext.apply(this, {
                display		:	'fit'
    			,height		:	125
    			,width		:	250
    			,closable	:	false
    			,resizable	:	false
    			,items		:	[this.form]
            });
    		
            GUI.LoginWindow.superclass.initComponent.apply(this, arguments);
        }
    	
    });
    My code on index.php

    Code:
    <link rel="stylesheet" type="text/css" href="_js/_ext/resources/css/ext-all.css" />
    
    <script type="text/javascript" src="_js/_ext/ext-core-debug.js"></script>
    <script type="text/javascript" src="_js/_ext/ext-all-debug.js"></script>
    <script type="text/javascript" src="_js/_ext/ext-Loader.js"></script>
    
    ext-Loader.js -> just defines the paths of the Require and his configs...
    
    <script type="text/javascript" >
    Ext.onReady(function(){
    	Ext.require('GUI.LoginWindow', function () { var login = new LoginWindow(); login.title = '<?php echo $_SESSION['msg']; ?>'; login.show(); });
    });
    </script>
    The window shows but without nothing inside it... any problem on the code, i am missing something????? Please any help wold be really apreaciated...

    Tnx for help people...
    Last edited by tiagoadp; 27 Mar 2011 at 2:01 PM. Reason: Add code tags

  2. #2
    Sencha User
    Join Date
    Apr 2010
    Posts
    9
    Vote Rating
    0
    tiagoadp is on a distinguished road

      0  

    Exclamation Still trying...

    Still trying...


    Hello i am still trying to solve the error... nothing yet... any1 can help me with this? please, any hint will be more than welcome...

    My brain is starting to complain...

  3. #3
    Sencha User
    Join Date
    Apr 2010
    Posts
    9
    Vote Rating
    0
    tiagoadp is on a distinguished road

      0  

    Default


    Solved IT...

    I dont know WHY... But... i missed the LAYOUT propertie and no erros was displayed... only the form was invisible...

    Tnx peopple!

Similar Threads

  1. FormPanel JS error in IE
    By mclovin in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 1 Feb 2011, 5:11 AM
  2. FormPanel JS error in IE
    By mclovin in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 31 Jan 2011, 9:44 AM
  3. Error trying to render formPanel
    By fsa3 in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 2 Apr 2010, 4:49 AM
  4. Error: formpanel , tabpanel and formpanel again
    By newname2008 in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 29 Jun 2009, 12:16 AM
  5. Help me! please -- I have a error with the Ext.FormPanel
    By rburgos in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 13 Apr 2009, 3:34 PM

Tags for this Thread

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