View Full Version : Ext.form load from cross domain
gkassyou
26 May 2007, 9:54 AM
How to set the forms proxy to use ScripTagProxy for loading from another domain.
Animal
26 May 2007, 10:39 AM
It doesn't use Proxies, it uses Ext.lib.Ajax directly, ie an XHR.
You'll have to look at the source code, and extend the Ext.form.Action class yourself. You'll enjoy the mental escercise.
gkassyou
26 May 2007, 11:04 AM
what are other options to read JSON from another domain in order to manipulate the data.
Animal
26 May 2007, 1:22 PM
You have to use a ScriptTagProxy. It's not that difficult.
gkassyou
26 May 2007, 6:13 PM
Is there a way to use the ScriptTagProxy as a standalone call. Any examples. Can't seem to find one.
Thx
kubens
27 May 2007, 4:32 AM
In this conjunction it is important to know, that Ext.data.ScriptTagProxy sends a parameter 'callback' and that you must ensure that this parameter is part of your returned json string:
Ext.data.HttpProxy
({"totalCount":"1", "demo":[{"id":"1","text":"demo1"}]})
Ext.data.ScriptTagProxy
stcCallback1001({"totalCount":"1", "demo":[{"id":"1","text":"demo1"}]})
Br
Wolfgang
gkassyou
27 May 2007, 5:08 AM
Thanks for your input wolfgang as some users may not know that.
I have used ScriptTagProxy with grid, combobox, tree with Animal's mod but I'm looking to use it with a Form, or as a standalone AJAX call to retreive JSON from another domain for manipulation.
Thx
Animal
27 May 2007, 7:27 AM
Do some work then! You have the code I wrote to allow TreeLoader to use a DataProxy. Get on with it!
gkassyou
27 May 2007, 7:48 AM
Yes Chief!!
Animal
27 May 2007, 7:55 AM
Good man!
;)
I'm a bit crotchety today, not feeling well..
lukemc
23 Sep 2011, 6:14 AM
I was also looking for a standalone (not connected to a store) example and am confused by gkassyou's post asking for one, and then immediately after Animal's post saying he has the TreeLoader code, did I miss something? I'm looking to implement it inside a Sencha app.
L
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.