FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » json testing suggestions
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: json testing suggestions [message #184545 is a reply to message #184541] Wed, 08 January 2014 06:39 Go to previous messageGo to previous message
jnorth.au is currently offline  jnorth.au
Messages: 5
Registered: January 2014
Karma:
Junior Member
On Tue, 07 Jan 2014 20:33:21 -0500, BobMCT <r(dot)mariotti(at)fdcx(dot)net> wrote:

> Pls help jolt my old memory with this? Trying to work on some old php
> progs that output using the json_encode function on a NEW install of
> Ubuntu 13.10. I'm NOT getting any output. If I dump the array I'm
> using as the source for the json_encode it looks just fine. However,
> firebug is showing non response.

In php you should have the code looking like:

$myVar = json_encode( $arr );
echo $myVar;
?>

In firebug:
place a breakpoint at the first line of code in the callback function.
The returning data is actually the error message from php and can not processed correctly.

>
> I checked with phpinfo and it shows that I do have json installed and
> active and when I try to run the target program I also receive just
> errors.
>
> So my question is: can someone recommend some ways to properly debug
> the ajax/json process? I seem to remember firebug once having some
> features available to examine the response from a js call but I don't
> see it now.
>
> BTW - having just recently upgraded from 10.04 to 13.10 I've run into
> other issues with compatibiity. Hopefully they are getting resolved
> and this is just one of them.
>
> Thanks for any advice/suggestions.
>
> ---
> This email is free from viruses and malware because avast! Antivirus protection is active.
> http://www.avast.com

---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Math Formula Question - Need Ideas
Next Topic: how did I wind up with double headers?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Sep 20 04:37:51 GMT 2024

Total time taken to generate the page: 0.03525 seconds