PS - if you're using double quotes in your JSON, you don't need to escape the
single quotes.
[Note: Typo assistance courtesy of iPhone]
> On Nov 19, 2013, at 1:02 AM, Jon Clausen wrote:
>
>
> Are you specifying the return type in your function call or are you pulling
> it out of the default
Are you specifying the return type in your function call or are you pulling it
out of the default WDDX Packet?
Your output looks like itÂ’s being returned as javascript escaped JSON. For
example, the following using returntype=json, yields the correct raw JSON
array:
URL: http://localhost/te
It looks double prefixed/escaped.
http://www.petefreitag.com/item/720.cfm
You really want it to come back as:
//["Miami Area Geriatric Education Center","Miami Children's Hospital","Miami
Research Associates","Miami University (Oxford, Ohio)","Miami Valley
Hospital","Miami, FL-546","Universit
This is what my response looks like:
//"\/\/[\"Miami Area Geriatric Education Center\",\"Miami Children's
Hospital\",\"Miami Research Associates\",\"Miami University (Oxford,
Ohio)\",\"Miami Valley Hospital\",\"Miami, FL-546\",\"University of
Miami\\\/Jackson Health System\"]"
~~
I put my json response in at http://jsonlint.com/ and this is what I got:
Parse error on line 1:
//"\/\/[\"Miami Area
^
Expecting '{', '['
I tried adding the serialization to my code and it still isn't working:
~|
> Does your CF return an array ?
> Jquery autocomplete is driven by an array as far as I know. You
> should have returntype="array" access="remote" in your CFC
> This is a complete CFC that works for me:
> access="remote">
>
>
>
>
> SELECT productName
>
I did it once long ago when I was still a developer, it was probably on CF5
or 6.
I will presume Windows is used here, if not, just translate tot he Unix
equivalents.
It is basically just a file server, network attached storage, a SAN or
whatever you have available.
You MAP a drive on your web ser
>If you use a centralised storage for all servers in your cluster then it is
>easy.
Russ, thanks a lot for your response (somehow I missed it last week). I read
the article you linked to about client variables (good read). Are you aware of
any resources which discuss how one might implement a "
> The JQUI autocomplete requires a JSON array of objects, with each
> object
> representing an individual record, in name/value pair format. This is
>
> not the normal JSON response for a ColdFusion query. CF creates an
> object with two arrays: a "column" array of the column names, and an
>
Does your CF return an array ?
Jquery autocomplete is driven by an array as far as I know. You should have
returntype="array" access="remote" in your CFC
This is a complete CFC that works for me:
SELECT productName
FROMproducts
The JQUI autocomplete requires a JSON array of objects, with each object
representing an individual record, in name/value pair format. This is
not the normal JSON response for a ColdFusion query. CF creates an
object with two arrays: a "column" array of the column names, and an
array of arrays
11 matches
Mail list logo