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 XML as a result
i followed th steps from the developers page tutorials;
it says give a parameter with a name of callback and set the callback func.name ;
and according to the tutorial it shows that the response has to be some thing like GivenCallBackName([ JsonResults ])
Hi thanks for the information,i have done what you have told,and here is the code;unfirtunety unable to recieve the results ?
__gwt_jsonp__.P2.onSuccess({"responseHeader":{"status":0,"QTime":1,"params":{"json.wrf":"__gwt_jsonp__.P2.onSuccess","q":"TUR","wt":"json"}},"response":{"numFound":2,"start":0,"docs":[{"co":["Turkey"],"id":"1000017194","name":"TUR INN HOTEL","lvl2":"Kuşadası","lvl1":"Aydın","_version_":1419004459433852929},{"co":["Turkey"],"id":"1000019294","name":"HAL-TUR HOTEL","lvl2":"Denizli Merkez","lvl1":"Denizli","_version_":1419004459561779201}]}})
any other suggestions for me without JSONPRequestBuilder class this is really important for me AsyncCallback abc= new AsyncCallback <JavaScriptObject> {}
and this way i set the object name with the parameter name
jsonp.setCallbackParam("json.wrf=abc");