Hi Ryszard,
If you want to query external URLs you will need to proxy the requests. The
"url" parameter is limited by browsers same origin policy. To proxy the request
you can have a result page with a groovy script that makes the HTTP requests to the
external URL and outputs it. It has a performance cost, though, since it means 2 requests
where you would do only one with an internal URL.
Another alternative is to make the livetable support JSON with padding technique
(
http://en.wikipedia.org/wiki/JSON#JSONP) ; it's not very complex, it just needs an
alternative method to fetch the data (instead of AJAX request) + an option to activate
this method. Though it's a bit touchy security-wise, not sure we would want to have
this available by default (but could be discussed).
Jerome.
----- "Ryszard Łach" <rylach(a)gmail.com> wrote:
Hi!
Does anybody know how to display some external data using LiveTable
macro? I
can see in doc, that there is an 'url' alternative datasource
(alternative
to className and resultsPage), but I cannot find any examples using
it.
I've tried to write to the text file the JSON output used by the
macro, then
I put the file on some http server and try to use its url in macro
invocation, but it does not work.
TIA,
R.
--
"First they ignore you. Then they laugh at you. Then they
fight you. Then you win." - Mohandas Gandhi.
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users