Date:  11/27/2007 06:02:30 PM Msg ID:  003603
From:  FoxWeb Support Thread:  003600
Subject:  Re: JSon Write Problem
What do you mean by "my javascript program won't accept it?"  Are you getting an error message?  What's the text?

The reason why it works in the second case may be completely unrelated to the fact that you are pasting the text in a string literal instead of generating it on the fly via the fwJSON object.  Is everything else equal?  Could it be that you are sending a different content type, or charset HTTP header?
FoxWeb Support Team email
Sent by G Barfield on 11/25/2007 02:07:04 PM:
I am trying to use JSon(WriteCursor) to write a JSon string back to a javascript program for a AutoComplete feature in a form.   I finally got my JSON string formatted correctly (with the help of Pandelis) and thought it was working but my javascript program won't accept it.

Wierd part is, when I cut and paste the string contents out and put it directly into Response.Write("String Content") the program works, but will not work "on the fly".   String content must be in quotes for it to work but of course you can't put the function in quotes or it is literally translated.

Does anyone have any ideas?