Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8857877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T14:41:48+00:00 2026-06-14T14:41:48+00:00

I’m using a JavaScript plugin to upload files to a ColdFusion app. It uses

  • 0

I’m using a JavaScript plugin to upload files to a ColdFusion app.
It uses AJAX to communicate with the server and expects JSON in return. (pretty standard)
I have two cfm scripts.

The first contains the form for the plugin.

The second handles the actual uploading, deleting, returning file lists, etc.

The second script returns JSON as plain text for the plugin to process.

The second script renders no HTML and the JSON sent back to the first script is fed straight into the js plugin.

Everything works perfectly actually.
I’ve gotten it to upload files and return file lists.

my problem:
As the second script’s code gets more complicated it’s getting much harder to debug.

It renders no code, so cfdump is useless.

I’m poking around in the dark with no error messages or other info to let me know why something isn’t working.

my limitations:
The plugin is large and complicated and I don’t want to mess with it if I don’t have to.
And I shouldn’t have to mess with it because it works perfectly, it’s my cf code that’s the problem.

I also don’t have access to the admin area for this project.

But I need some way to log or debug this code.

my solutions:
I’ve been doing cfdump to a third file, but this is a less than ideal solution as I’m spending half my time coding and half my time changing the cfdump solution to suit new needs. And also evolving my cfdump logger to handle different situations. I don’t want to reinvent the wheel by writing my own logger though, I just want to code.
I got my admin to install the AJAX logger not realizing it’s meant to log JavaScript, not ColdFusion. So that’s not working either.

I know that people have worked with ColdFusion for AJAX. I can’t be the only one having this problem. Any help is appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T14:41:49+00:00Added an answer on June 14, 2026 at 2:41 pm

    Don’t forget the simple and powerful <cflog> tag. You can dump variables at any point in your code and if you want to dump a structure, you can use serializeJSON(someStruct) to see the entire structure (or object converted to a structure) in your logs. Combine that with the tail view in Eclipse/CFBuilder, and you have a real-time stream of the inner workings of your non-HTML generating code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Paperclip to handle profile photo uploads in my app. They upload
I am reading a book about Javascript and jQuery and using one of the
We're building an app, our first using Rails 3, and we're having to build
I have thousands of HTML files to process using Groovy/Java and I need to
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I used javascript for loading a picture on my website depending on which small
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have a small JavaScript validation script that validates inputs based on Regex. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.