cross web request

12 views
Skip to first unread message

herry

unread,
Dec 5, 2011, 12:28:30 PM12/5/11
to ExtDirectHandler
My Question:

.My extJs application is accessed through other gateway so page is in
different domain call https:\gatewayurl\application and
when it tries to get data it send request to http:\localserverurl
\application\rpc.

XmlHttpRequest.Open doesnt support this so i wanted to use JsonP as
described here http://dev.sencha.com/deploy/ext-4.0.7-gpl/docs/index.html#!/api/Ext.data.proxy.JsonP.
can i still use ExtDirectHandler at server side for this? or is there
any change will
be needed to done to make it compatible to work with JsonP.

Please guide me i am very new to ExtJs and extdirect framework.
harinpatel and gimmi are participating in this issue.

-gimmi commented
2 days ago
AFAIK Ext.Direct standard doesn't consider JSONP and this makes sense
to me, because JSONP parameters must be passed via querystring and
then the support would be limited only to a subset of cases.

Please use the users group https://groups.google.com/group/extdirecthandler
to as questions in the future

-My Comment:
So current ExtDirectHandler doesnt support cross web requests and to
make it work my application do i need to change ExtDirectHandler
server side code to use JSONP?

i tried to set configuration at client side as per sencha
documentation but it doesnt work.

i need cross web request because my application is accessed through
other application while it tries to
get data calling request to sever where it is hosted means , url in
web browser is different then the one is
called to access extdirect handler . is it any way i can change the
url of extdirect router to the same as web browser page concated with /
rpc where rpc is handler?

please let us know if the issue is not clearly explained so i can give
more information.
i like extJs a lot and this implimentation but if its not designed for
my framework then please guide me
so i can alter or abandon this solution.

Reply all
Reply to author
Forward
0 new messages