Click here to Skip to main content
15,917,618 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hello Everyone.

I Faced One Error,which can't solved by myself. I Have Searched a lot about it.
But Can't Find Solution. Please Help to Solve this bug.

Thanks In Advance.
Viral

Here's My Code.

PHP
<?php require "_header.php" ?>

<script language="javascript" type="text/javascript">

Ext.onReady(function(){
	
	  var demoform = new Ext.FormPanel({
		  
		      id:'demoform',
			  url:'save_demo2.php',
			  method:'post',
			  autoHeight:true,
			  frame:true,
			  layout:'form',
			  labelWidth:100,
			  items:[{
				        columnWidth:1,
						xtype:'fieldset',
					    items:[
						     {
							     xtype:'hidden',
								 id:'id',
								 name:'id',
								 hidden:true	 
							 } 
							 ,
							 {
						          xtype:'textfield',
								  fieldLabel:'Firstname',
								  id:'Firstname',
								  name:'Firstname',
								  allowBlank:'false'	     
							},
							{
							      xtype:'textfield',
								  fieldLabel:'Lastname',
								  id:'Lastname',
								  name:'Lastname',
								  allowBlank:false	
							},
							{
							      xtype:'textfield',
								  fieldLabel:'Address',
								  id:'Address',
								  name:'Address',
								  allowBlank:false	
							},
							{
							      xtype:'datefield',
								  fieldLabel:'Birthdate',
								  id:'Birthdate',
								  name:'Birthdate',
								  allowBlank:false	
							},
							{
							      xtype:'numberfield',
								  fieldLabel:'Mobile Number',
								  id:'Mobilenumber',
								  name:'Mobilenumber',
								  allowBlank:false	
							},
							{
							     xtype:'datefield',
								 fieldLabel:'Join Date',
								 id:'Joindate',
								 name:'Joindate',
								 allowBlank:false	
							}
							,
							{
							     xtype:'numberfield',
								 fieldLabel:'Salary',
								 id:'Salary',
								 name:'Salary',
								 allowBlank:false
								 	
							}]
				  }]
		 });
var demowindow = new Ext.Window({
		       title:'Registration',
			   autoHeight:true,
			   width:500,
			   items:demoform,
			   buttons:[{
				      text:'Register',
					  iconCls:'icon-save',
					  handler:function()
					  {
						  demoform.getForm().submit({
							  waitMsg:'Saving......'
						});  
					  }
				  }]
			});
	  var varwidth = (screen.width - demowindow.width)/2;
	  demowindow.show();
	});
</script>
<?php require "_footer.php" ?>
Posted
Updated 5-Oct-14 16:15pm
v4
Comments
Kornfeld Eliyahu Peter 5-Oct-14 5:50am    
It's a nice code dump - but can you show us the line with the error (and maybe some other relevant code), as the current code is seems to be totally irrelevant...
Sergey Alexandrovich Kryukov 5-Oct-14 22:15pm    
The post makes no sense by one simple reason: "r.innerText" never appears in the code you show. Find out the real code which causes the problem.
—SA
[no name] 6-Oct-14 0:31am    
where is "r.innerText" in your code block?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900