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://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 ])
>

The docs are outdated, there's JsonpRequestBuilder now.

And to ask Solr to return JSON-P, there's a json.wrf parameter: 
http://wiki.apache.org/solr/SolJSON#JSON_specific_parameters
This is the value to pass to JsonpRequestBuilder's setCallbackParam method.

-- 
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/-/BsdY4tOEHkYJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to