Reloading ExtJS panel data

Posted on 2008-06-18
Medium Priority
Last Modified: 2012-08-14

I have a simple page that has two input fields created in PHP/HTML and also an ExtJS Panel.  What I am trying to achieve is the data entered in the two input fields being shown in the ExtJS Panel area dynamically without the page being refreshed.

The input fields are simply "First Name" and "Second Name".  However, when the name fields are populated the data is not appearing in the ExtJS panel.

I believe its because the ExtJS panel has run and I need to find a way to make it reload or become active again so that it can refresh the data store and retrieve the information being sent over.

I have attached a code snippet of the relevant ExtJS panel and dataview window.  Can anyone suggest how to make this refresh once the fields have been populated please.

// ExtJS code snippet
        myData = [
        store = new Ext.data.Store({
		        proxy: new Ext.data.MemoryProxy(myData),
		        reader: new Ext.data.ArrayReader({}, [
                       {name: 'firstname'},
                       {name: 'secondname',},
		var tpl1 = new Ext.XTemplate(
   		'<tpl for=".">',
				'<table class="char_select_template" width="100%" cellpadding="0" cellspacing="0" border="0">',
					'<td class="char_select_profile_title">',
						'Name: <br>',
						'Race: <br>',
					'<td class="char_select_profile_stats">',
						'<b>{firstname} {secondname}</b><br>',
    	'<div class="x-clear"></div>'
	charView = new Ext.DataView({
       		id: 'details-panel',
	    	store: store,
        	tpl: tpl1,
        	multiSelect: true,
	var panel = new Ext.Panel({
    	title:'Character Details:',
    	items: charView 
    store.load();       // Load the data

Open in new window

Question by:ParadyneDesigns
1 Comment

Accepted Solution

ParadyneDesigns earned 0 total points
ID: 21831555
I have solved this problem using an update function with a setstore to change the store data being passed to the dataview.  Please can this be closed.

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
It’s a season to be thankful, and we’re thankful for users like you who engage on site, solve technology problems, and network with others in the industry. What tech are we most thankful for? Keep reading.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

619 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question