PDA

View Full Version : How to get requested url from JsonStore when ScriptTagProxy is used



pAq85
18 Nov 2010, 1:49 AM
Hi,
I use something like this to get the data using json


var gridStore = new Ext.data.JsonStore({
root: 'usages',
totalProperty: 'totalCount',
idProperty: 'id',
remoteSort: true,
autoLoad: {params:{start: 0, limit: 20}},
baseParams: {storeId:"RealtimeFeatureUsage",searched:"feature_id",pattern: "12"},
fields: [
'user_name', 'host_name',
{name: 'license_used', type: 'int'},
'license_time_used',
'license_checked_out',
'license_borrow_expire'
],

proxy: new Ext.data.ScriptTagProxy({
url: 'http://somedomain.com/action.php'
})
});
It all works great with the grid. To retrieve the data request like

http://somedomain.com/action.php?start=0&limit=20&sort=user_name&dir=ASC&storeId=RealtimeFeatureUsage&searched=feature_id&pattern=12&_dc=1290068808083&callback=stcCallback1002is done.

Now I would like to get the whole url that request was done.

When I use


gridStore.proxy.url
// or
gridStore.proxy.buildUrl()
I get only

http://somedomain.com/action.php
but I want all the rest.

How to do that?