How do you output a query from a .cfm page using jQuery AJAX in JSON format?

后端 未结 3 1870
失恋的感觉
失恋的感觉 2021-01-28 13:36

I am trying to output a query from a .cfm page using jquery with json format. Can someone tell me what I am dong wrong?

Edit: Answer here

Edit: Just posted my cf

3条回答
  •  青春惊慌失措
    2021-01-28 14:16

    You can also have CF return the query from the CFC in json format: (this might be the same as putting the serialize function on it)

    ie

    
    
    
    SELECT * FROM subcategory
    WHERE topCatID = #Arguments.catID#
    ORDER BY subcat
    
    
    
    

提交回复
热议问题