RE: [jQuery] Re: Ajax forms help

2010-01-11 Thread Dave Maharaj :: WidePixels.com
;:"6186d5 5b8f0","profile_id":"4b40eea7-2608-4a3b-9c24-7cb04adcd75b"},"status":true,"h tml":"this is a good test<\/p>\r\n"} Now to display the HTML but without all the <\/p>\r\n Dave ____________ From: John Arr

RE: [jQuery] Re: Ajax forms help

2010-01-11 Thread Dave Maharaj :: WidePixels.com
#x27;] = true; //$response['html'] = $this->render('dummy'); $this->header('Content-Type: application/json'); echo json_encode($response); return; } ____ From: John Arrowwood [mailto:jarro...@gma

RE: [jQuery] Re: Ajax forms help

2010-01-11 Thread Dave Maharaj :: WidePixels.com
ot;year_rec":{"year":"2010"},"description":"","id":"4ff9c8 f01b8","profile_id":"4b40eea7-2608-4a3b-9c24-7cb04adcd75b"},"status":true} And alert(response.data.id); => 4ff9c8f01b8 So its just the darn HT

RE: [jQuery] Re: Ajax forms help

2010-01-11 Thread Dave Maharaj :: WidePixels.com
-Original Message- From: Michael Geary [mailto:m...@mg.to] Sent: January-11-10 4:36 PM To: jquery-en@googlegroups.com Subject: Re: [jQuery] Re: Ajax forms help The JSON part of your server response looks fine if you take out the two line breaks - I assume those are just an artifact of posting

Re: [jQuery] Re: Ajax forms help

2010-01-11 Thread John Arrowwood
Your problem looks like it may be on the back-end. Send the code that generates the JSON. On Mon, Jan 11, 2010 at 11:41 AM, Dave Maharaj :: WidePixels.com < d...@widepixels.com> wrote: > My response comes back from the server looking like this: (don’t think its > right to begin with) > > > {"dat

Re: [jQuery] Re: Ajax forms help

2010-01-11 Thread Michael Geary
The JSON part of your server response looks fine if you take out the two line breaks - I assume those are just an artifact of posting with Outlook, and your actual JSON response is all on one line. But why does it have the HTML content repeated after the last } that closes the JSON data? You don't

RE: [jQuery] Re: Ajax forms help

2010-01-11 Thread Dave Maharaj :: WidePixels.com
Right on...looks easy enough. Is response.html saying to display it as html? I tried making an array to pass as json from php then json_encode it so my arrr was $response = array('status' => true , 'view' => 'all my html code went here') But when I returned my view data from the array it was all