Re: GWT cross-site request

2013-04-13 Thread Alfredo Quiroga
http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/jsonp/client/JsonpRequestBuilder.html Might help Sent from my iPhone On Apr 13, 2013, at 8:36 PM, Robson Braga wrote: > I get it! The following line was missing: > > var script = document.createElement("script"); > > My

Re: GWT cross-site request

2013-04-13 Thread Robson Braga
I get it! The following line was missing: var script = document.createElement("script"); My bad... Em sábado, 13 de abril de 2013 21h27min29s UTC-3, Robson Braga escreveu: > > Hi folks, > > I have a webservice that returns a JSONP. The URL of the webservice is > this: > > http://user:password

GWT cross-site request

2013-04-13 Thread Robson Braga
Hi folks, I have a webservice that returns a JSONP. The URL of the webservice is this: http://user:password@localhost:8080/project/api/clientByEmail?email=u...@domain.com&callback=callback1 The result of that URL is this: callback1({"personId":"1","email":"u...@domain.com","password":"5f4dcc3b5

Re: GWT Cross-site request for autocomplete box

2012-11-19 Thread Alp Yilancioglu
Thank you for your time and informatiom Best Regards.. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/iT0jDIhCg5wJ. To post to this group,

Re: GWT Cross-site request for autocomplete box

2012-11-19 Thread Alp Yilancioglu
i found my problem By creating the callback function outside the requestObject() > not like requestObject(new Async...(..) ) *AsyncCallback* abc= new *AsyncCallback* {} and this way i set the object name with the parameter name jsonp.setCallbackParam("json.wrf=abc"); -- You

Re: GWT Cross-site request for autocomplete box

2012-11-19 Thread Alp Yilancioglu
The JS function names seems to be the same this is the request : http://localhost:8080/solr/collection1/select?q=TUR&wt=json&json.wrf= __gwt_jsonp__.P2.onSuccess this is the response : __gwt_jsonp__.P2.onSuccess ({"responseHeader":{"status":0,"QTime":1,"params":{"json.wrf":"__gwt_jsonp__ .P2.o

Re: GWT Cross-site request for autocomplete box

2012-11-19 Thread Thomas Broyer
On Monday, November 19, 2012 3:40:45 PM UTC+1, Alp Yilancioglu wrote: > > i looked from firebug, Gwt sets a dynamic onSuccess function name to > the parameter name i have set as "json.wrf" which seems okey > > Unfortunetly both , onSuccess and onFailure functuions are not get > called;

Re: GWT Cross-site request for autocomplete box

2012-11-19 Thread Alp Yilancioglu
i looked from firebug, Gwt sets a dynamic onSuccess function name to the parameter name i have set as "json.wrf" which seems okey Unfortunetly both , onSuccess and onFailure functuions are not get called; What should i do at this point? -- You received this message b

Re: GWT Cross-site request for autocomplete box

2012-11-19 Thread Thomas Broyer
On Monday, November 19, 2012 3:02:08 PM UTC+1, Alp Yilancioglu wrote: > > Hi thanks for the information, > > i have done what you have told, > and here is the code; > unfirtunety unable to recieve the results ? > What do you mean? onSuccess is not called or you don't know what to do with the

Re: GWT Cross-site request for autocomplete box

2012-11-19 Thread Alp Yilancioglu
Hi thanks for the information, i have done what you have told, and here is the code; unfirtunety unable to recieve the results ? Client Side Code; JsonpRequestBuilder jsonp = new JsonpRequestBuilder(); String url = "http://localhost:8080/solr/select?q=TUR&wt=json";; jsonp.set

Re: GWT Cross-site request for autocomplete box

2012-11-19 Thread Thomas Broyer
On Monday, November 19, 2012 12:06:29 PM UTC+1, Alp Yilancioglu wrote: > > Hi > i am trying to create a autosuggest box which take data from my apacge > solr server which is going to be in another domain for production > i just simply need to request a query with the address " > http://localhos

GWT Cross-site request for autocomplete box

2012-11-19 Thread Alp Yilancioglu
Hi i am trying to create a autosuggest box which take data from my apacge solr server which is going to be in another domain for production i just simply need to request a query with the address "http://localhost:8080/solr/select?q=ABC&callback=handleJsonResponse i can get JSON as a result or an

Re: Cross Site Request

2012-08-16 Thread Michael Allan
Padding the response with a function call - e.g. callback( ... ) - is what makes it readable by pages from other domains. If that's what you need and the source domain provides only JSON: [{"symbol": "ABC","price": 87.86,"change": -0.41}] then one solution (I've heard) is to create a

Cross Site Request

2012-08-16 Thread Muhammad Muaz
I am trying this tutorial ,it is working fine if server specify the call back object, like if server prints like this, callback125([{"symbol":"DDD","price":10.610339195026,"change":0.053085447454327}]); But my requirements

Re: GWT cross-site request without JSNI..?

2012-06-18 Thread kim young ill
thanx On Mon, Jun 18, 2012 at 11:14 PM, Jens wrote: > is the request done by post or get ? >> > > JSONP is always a GET request. > > -- J. > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To view this discussion on the web visit >

Re: GWT cross-site request without JSNI..?

2012-06-18 Thread Jens
> > is the request done by post or get ? > JSONP is always a GET request. -- J. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/8-8M9x-umF4J.

Re: GWT cross-site request without JSNI..?

2012-06-18 Thread kim young ill
; Am Montag, 18. Juni 2012 20:11:53 UTC+2 schrieb Carsten: > >> Hi, >> >> is it possible to do a cross-site request with very little JSNI or none >> at all? >> >> I am a beginner and followed this tutorial: >> https://developers.google.com/**web-toolkit/doc

Re: GWT cross-site request without JSNI..?

2012-06-18 Thread Jens
Sure you can do the same thing with JsonpRequestBuilder (http://google-web-toolkit.googlecode.com/svn/javadoc/2.4/com/google/gwt/jsonp/client/JsonpRequestBuilder.html). -- J. Am Montag, 18. Juni 2012 20:11:53 UTC+2 schrieb Carsten: > > Hi, > > is it possible to do a cross-site reque

GWT cross-site request without JSNI..?

2012-06-18 Thread Carsten
Hi, is it possible to do a cross-site request with very little JSNI or none at all? I am a beginner and followed this tutorial: https://developers.google.com/web-toolkit/doc/latest/tutorial/Xsite Is it possible to do the same without ever writing native JS code? Cheers, Carsten -- You

Re: Making a cross site request to a service returning back XML

2011-02-25 Thread Jeff Chimene
On Fri, Feb 25, 2011 at 9:28 AM, ialexei wrote: > I have a legacy middleware application that returns back XML. > It has lots of methods and is doing well in a stable production > environment. > I would like my GWT app (running on a different domain) to consume > this data with minimal changes to

Re: Making a cross site request to a service returning back XML

2011-02-25 Thread ialexei
My question was, Is there an option #3 ? On Feb 25, 11:28 am, ialexei wrote: > I have a legacy middleware application that returns back XML. > It has lots of methods and is doing well in a stable production > environment. > I would like my GWT app (running on a different domain) to consume > this

Making a cross site request to a service returning back XML

2011-02-25 Thread ialexei
I have a legacy middleware application that returns back XML. It has lots of methods and is doing well in a stable production environment. I would like my GWT app (running on a different domain) to consume this data with minimal changes to the middleware. The way I see it I have these 2 options 1.

Re: GWT Login/ Logout/ Remember Me (with concern in preventing Cross-Site Request Forgeries) Example

2010-04-21 Thread lineman78
> doesn't have XSS (cross site scripting) or CSRF (cross site request forgery) > loopholes. Additionally, you must use a SSL certificate (https) to protect > the cookie from a man-in-the-middle attack. > > Some suggestions for XSS and CSRF from a GWT perspective - > > *Cros

Re: GWT Login/ Logout/ Remember Me (with concern in preventing Cross-Site Request Forgeries) Example

2010-04-07 Thread Sripathi Krishnan
s important that your website doesn't have XSS (cross site scripting) or CSRF (cross site request forgery) loopholes. Additionally, you must use a SSL certificate (https) to protect the cookie from a man-in-the-middle attack. Some suggestions for XSS and CSRF from a GWT perspective - *Cros

Re: GWT Login/ Logout/ Remember Me (with concern in preventing Cross-Site Request Forgeries) Example

2010-04-07 Thread Manuel Carrasco Moñino
eature, using GWT, with concern on Cross-Site Request > Forgeries. > > My plan is to use HttpOnly : > http://www.codinghorror.com/blog/2008/08/protecting-your-cookies-httponly.html > > However, I am not sure whether that will be sufficient enough. > > Thanks. > > -- > Yo

GWT Login/ Logout/ Remember Me (with concern in preventing Cross-Site Request Forgeries) Example

2010-04-07 Thread yccheok
Does anyone have a good code example, on how to implement login/logout/ remember me feature, using GWT, with concern on Cross-Site Request Forgeries. My plan is to use HttpOnly : http://www.codinghorror.com/blog/2008/08/protecting-your-cookies-httponly.html However, I am not sure whether that

cross-site request in StockWatcher not working for me

2010-02-28 Thread fredrik
Hi, I have followed the StockWatcher tutorial from the start and all works fine until "Making cross-site requests". After the very last step I still get an "Error: Couldn't retrieve JSON". I am running from Eclipse, with the python script as "server". (Windows7+Chrome/Firefox). I have tried to res