I don't know how to view data came from my php file to this grid, i'm using this url to use in json or ajax.
url: '<?php echo base_url();?>index.php/process/saveme',
can anybody help me to view some kind of data came from my php file? - Ext.create('Ext.data.Store', {
-
storeId:'listofUsers',
-
fields: ['username','password'],
-
data:{'items':[
-
{ 'username': 'zick', "password":"123456"},
-
{ 'username': 'ikki', "password":"654321" },
-
]},
-
proxy: {
-
type: 'memory',
-
reader: {
-
type: 'json',
-
root: 'items'
-
}
-
}
-
});
-
-
Ext.create('Ext.grid.Panel', {
-
title: 'List of Users',
-
store: Ext.data.StoreManager.lookup('listofUsers'),
-
columns: [
-
{ text: 'Username', dataIndex: 'username', flex: 1},
-
{ text: 'Password', dataIndex: 'password' },
-
],
-
height: 200,
-
width: 400,
-
renderTo: Ext.getBody()
-
});
-
1 1654 gits 5,390
Expert Mod 4TB
the easiest way is to look in Chrome's or Firefox's developer tools an inspect the XHR-requests in the network panels.
it shows you what u posted and what the request returns.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: erlend.dalen |
last post by:
Hi all!
I'm a newbie to C# and .NET and I'm playing around in Visual C# 2005
Express Edition. I tried to use the wizards to create a table in SQL
2005 Express Ed. and displaying that data in a...
|
by: John |
last post by:
Hi all,
I know the above subject heading may seem stupid but I really would like to
know what the most common (and I'm assuming the most-common would mean the
best way) method is to present data...
|
by: Andrew Poulos |
last post by:
There's an object:
foo = new Object();
and a property called 'bar' with a value of 1 is to be added to it using
JSON. If I try the following it only demonstrates my ignorance:
var str =...
|
by: Daz |
last post by:
Hi everyone. Sorry for the confusing subject, I couldn't think how best
to word it.
What I would like to know, is if there is an equivilant to this code,
in using JSON.
<script...
|
by: BillE |
last post by:
What is the best way to add data using a DataGridView in a multi-tier
application (data entry is handled in a data access layer using stored
procedures)?
Thanks
Bill
|
by: slapshock |
last post by:
hi!!!!
i am new in vb.net...
i want to know how to add, delete, search and view data using vb.net....
please help me on how to do it...
hope you can help me
...
|
by: phpmel |
last post by:
Hi guys,
I would like some help please. I have a grid view and an sql datasource that returns results of a search from a database using a stored procedure. I did all of this by drag and drop, not...
|
by: buntyindia |
last post by:
hi,
I have some data in JSON form. I have to create a Tree structure using that..
Firstly by default all the main headings section will get load like follows.
+Head1
+Head2
+Head3
When...
|
by: mohit818 |
last post by:
how to perform updation in xml through grid view without using any id of text box
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |