I think you need to add more than '[]' to the json response. When you use the
"...callback=?" parameter, jQuery automatically generates a 
http://bob.pythonmac.org/archives/2005/12/05/remote-json-jsonp/ JSONP 
callback value and substitutes it for the '?'. So, the parameters that get
sent to your php script will include something like:

   ...&callback=jsonp12126279...

You need to capture that generated value in your php script:

   $jsonp = $_GET['callback']

And prepend it to your json response:

   echo $jsonp.'('.$json->encode($job_data).')';

Your json response should end up looking something like:

   jsonp12126279({"job_Description":"My Job","job_Notes":"My jobs notes are
here."})

Hope that helps,
Michael



jforth-2 wrote:
> 
> 
> Hey thanks for the help...
> 
> I add the [] to the string. I don't get the invalid label error but
> nothing is alerted ? No errors in fire bug.
> 
> 
> On Dec 17, 4:10 pm, "Benjamin Sterling"
> <[EMAIL PROTECTED]> wrote:
>> wrap it in [] like:
>> [{"job_Description":"My Job","job_Notes":"My jobs notes are here."}]
>>
>> On 12/17/07, jforth <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>>
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/jquery-json-and-zend_json-tp14300277s27240p17660046.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to