473,387 Members | 1,517 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

EXT.js 4 - How can I view data using json with a url to grid

Exequiel
288 256MB
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?

Expand|Select|Wrap|Line Numbers
  1. Ext.create('Ext.data.Store', {
  2.     storeId:'listofUsers',
  3.    fields: ['username','password'],
  4.     data:{'items':[
  5.          { 'username': 'zick',  "password":"123456"},
  6.         { 'username': 'ikki',  "password":"654321" },
  7.     ]},
  8.     proxy: {
  9.         type: 'memory',
  10.         reader: {
  11.             type: 'json',
  12.             root: 'items'
  13.         }
  14.     }
  15. });
  16.  
  17. Ext.create('Ext.grid.Panel', {
  18.     title: 'List of Users',
  19.     store: Ext.data.StoreManager.lookup('listofUsers'),
  20.     columns: [
  21.         { text: 'Username',  dataIndex: 'username',  flex: 1},
  22.         { text: 'Password', dataIndex: 'password' },
  23.     ],
  24.     height: 200,
  25.     width: 400,
  26.     renderTo: Ext.getBody()
  27. });
  28.  
Jul 22 '13 #1
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.
Jul 22 '13 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
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...
1
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...
1
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 =...
2
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...
7
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
2
slapshock
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 ...
8
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...
1
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...
0
by: mohit818 | last post by:
how to perform updation in xml through grid view without using any id of text box
0
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...
0
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...
0
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
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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...
0
marktang
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,...
0
Oralloy
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,...
0
jinu1996
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.