Re: [xwiki-users] Strange ajax + json issue

2010-03-02 Thread Marius Dumitru Florea
Hi Jeremie, Jeremie BOUSQUET wrote: Hello thx Sergiu, I changed to json content-type, and responseJSON as you proposed. I checked that my GET request is 200 OK, and in the response the JSON tab in Firebug shows well formed JSON. But still my json variable is empty at execution time !

Re: [xwiki-users] Strange ajax + json issue

2010-03-02 Thread Marius Dumitru Florea
Marius Dumitru Florea wrote: Hi Jeremie, Jeremie BOUSQUET wrote: Hello thx Sergiu, I changed to json content-type, and responseJSON as you proposed. I checked that my GET request is 200 OK, and in the response the JSON tab in Firebug shows well formed JSON. But still my json variable is

Re: [xwiki-users] Strange ajax + json issue

2010-03-02 Thread Sergiu Dumitriu
On 03/02/2010 01:15 AM, Jeremie BOUSQUET wrote: Hello, This is for something I'm trying to develop ... And I'm not sure it has something to do with XWiki, but who knows ? In a page I call a particular init() function like this : Event.observe(window, load, init); This init() aims at

Re: [xwiki-users] Strange ajax + json issue

2010-03-02 Thread Jeremie BOUSQUET
Yes, the purpose was to use json var after the Ajax.Request() block ... Understood, I will make a function of the rest of the code and pass in the onSuccess, thanks. I tried the asynchronous:false with no different result, but I would have to test again to be sure. Thx, Jeremie 2010/3/2 Sergiu

Re: [xwiki-users] Strange ajax + json issue

2010-03-02 Thread Jeremie BOUSQUET
Great thank you, you were right - executing everything in onSuccess() solved my issue ! :) I'm working on integrating JavaScript InfoVis Toolkit http://thejit.org/with XWiki - at least some graphs. So now I can successfully display an hyperbolic tree in a wiki page with json data provided from

[xwiki-users] Strange ajax + json issue

2010-03-01 Thread Jeremie BOUSQUET
Hello, This is for something I'm trying to develop ... And I'm not sure it has something to do with XWiki, but who knows ? In a page I call a particular init() function like this : Event.observe(window, load, init); This init() aims at loading some JSON data from another page using Ajax. I was

Re: [xwiki-users] Strange ajax + json issue

2010-03-01 Thread Sergiu Dumitriu
On 03/02/2010 01:15 AM, Jeremie BOUSQUET wrote: Hello, This is for something I'm trying to develop ... And I'm not sure it has something to do with XWiki, but who knows ? In a page I call a particular init() function like this : Event.observe(window, load, init); This init() aims at

Re: [xwiki-users] Strange ajax + json issue

2010-03-01 Thread Jeremie BOUSQUET
Hello thx Sergiu, I changed to json content-type, and responseJSON as you proposed. I checked that my GET request is 200 OK, and in the response the JSON tab in Firebug shows well formed JSON. But still my json variable is empty at execution time ! By the way if I breakpoint on or before the

Re: [xwiki-users] Strange ajax + json issue

2010-03-01 Thread PERINAUD Christophe
2 mars 2010 08:30 À : XWiki Users Objet : Re: [xwiki-users] Strange ajax + json issue Hello thx Sergiu, I changed to json content-type, and responseJSON as you proposed. I checked that my GET request is 200 OK, and in the response the JSON tab in Firebug shows well formed JSON