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.

Threaded View

  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

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