I am using a JavaScript plugin to upload files to a ColdFusion application. It uses AJAX to communicate with the server and expects JSON to return. (pretty standard) I have two cfm scripts.
The first contains a form for the plugin.
The second handles the actual downloads, deletions, list of returned files, etc.
The second script returns JSON as plain text for the plugin process.
The second script does not display HTML and JSON sent back to the first script is fed directly to the js plugin.
Everything works perfectly. I got it for uploading files and returning file lists.
my problem: As the second script code gets more complex, it becomes much harder to debug.
It does not display code, so cfdump is useless.
I am shaking in the dark without error messages or other information to tell me why something is not working.
my limitations: The plugin is large and complex, and I do not want to mess with it if I do not need it. And I didn’t have to bother with it because it works fine, this is my cf code, which is the problem.
I also do not have access to the administration area for this project.
But I need to somehow register or debug this code.
my solutions: I do cfdump in the third file, but this is not an ideal solution, since I spend half my time coding and half the time I change cfdump's solution to meet new needs. And also to develop my cfdump logger to handle various situations. I don't want to reinvent the wheel by writing my own journal, but I just want to code. I got my administrator to install the AJAX logger, not realizing that it is designed to register JavaScript, not ColdFusion. So it does not work.
I know that people worked with ColdFusion for AJAX. I cannot be the only one who has this problem. Any help is appreciated.