Re: CFAjax Problem (parseJSON)

2008-03-02 Thread Leon Chalnick
Rob - I'm working on someone else's site (i.eit's not my code) and was trying to do some cfajaxproxy stuff and ran into the same problem. It turns out, that there's a gotcha you need to look out for: if the application.cfm (or anything else) is returning any HTML or content, it can screw up

Re: CFAjax Problem (parseJSON)

2008-01-30 Thread Raymond Camden
If you use Firebug to monitor the XHR requests, what do you in the server response? Is it valid JSON? On Jan 29, 2008 11:58 PM, RobG [EMAIL PROTECTED] wrote: I was over at learncf.com and am trying to run their CFAjax tutorial on one of my servers. When I click on either of the buttons, such

Re: CFAjax Problem (parseJSON)

2008-01-30 Thread RobG
Raymond Camden wrote: If you use Firebug to monitor the XHR requests, what do you in the server response? Is it valid JSON? Hi Ray! I just installed firebug, but I don't quite understand what I'm looking for. I found the XHR section under the Net tab, but it doesn't really select. I see

Re: CFAjax Problem (parseJSON)

2008-01-30 Thread Raymond Camden
You should see one line item per Ajax request. If you click to expand it, there is a 'Result' tab I believe. This shows you what the server returned. On Jan 30, 2008 10:52 AM, RobG [EMAIL PROTECTED] wrote: Raymond Camden wrote: If you use Firebug to monitor the XHR requests, what do you in the

Re: CFAjax Problem (parseJSON)

2008-01-30 Thread RobG
Okay, if I did it right, here's what I see... On my local system (which works), the Response tab simply contains the Server Time that is sent back. On my live server (Windows) that isn't working right and returning that weird error message, I get this: === script

Re: CFAjax Problem (parseJSON)

2008-01-30 Thread RobG
I did some more investigating and got it to work... though I don't understand why. Basically, I had to comment out all JavaScript on the site... not that there was much. I had this: cfoutput script language=JavaScript if (self.parent.frames.length != 0)

CFAjax Problem (parseJSON)

2008-01-29 Thread RobG
I was over at learncf.com and am trying to run their CFAjax tutorial on one of my servers. When I click on either of the buttons, such as Server Time, I get this error: Error: [Exception... 'SyntaxError: parseJSON' when calling method: [nsIOnReadyStateChangeHandler::handleEvent] nsresult: