[jQuery] Re: jQuery $.get callback function not being called

2009-11-09 Thread ArnieML
Hello Michel, Thank you very much for your help. I've used Firebug to verify that json_encode($tweets) outputs json data. But on another php discussion thread, they suggested to really verify that only json data is being encoded, without spaces before and after the data. So I'm going to go through

Re: [jQuery] Re: jQuery $.get callback function not being called

2009-11-08 Thread Michel Belleville
Well no, no-store, no-cache, must-revalidate is exactly what you need here. If you had cache your problem could have been that the cache was keeping a former result from when you didn't output the result. You should check wether you get something in the reply, and if not ask yourself why your PHP s

[jQuery] Re: jQuery $.get callback function not being called

2009-11-08 Thread ArnieML
I tried echo json_encode($tweets); and still no callback function. The XMLhttp response header looks like this: DateMon, 09 Nov 2009 00:57:25 GMT Content-Typetext/html Connection close Server Apache X-Powered-ByPHP/5.2.1 Expires Thu, 19 Nov 1981 08:52:00 GMT Cache-Control no-st

Re: [jQuery] Re: jQuery $.get callback function not being called

2009-11-08 Thread Michel Belleville
Well the doc suggests that json_encode doesn't change the variable passed as a parameter but returns the encoded string so you've got to do something like this : echo json_encode($tweets); To get a jason encoded serialisation of your data output i

[jQuery] Re: jQuery $.get callback function not being called

2009-11-08 Thread ArnieML
Hi Michel, I added the following statement after json encoding: echo $tweets; to the PHP, but the callback function still isn't getting called. Any other ideas? Thanks for the help. On Nov 7, 11:20 pm, Michel Belleville wrote: > It's been a long time since my last PHP days but shouldn't you