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 7562627
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T13:27:19+00:00 2026-05-30T13:27:19+00:00

This has to be a Jquery question. The following code is returning zero. When

  • 0

This has to be a Jquery question. The following code is returning zero. When I test/debug, I can say without a doubt that the cffunction is generating the number 18.
The success alert shows “Dupe Group-2 count=0”. The Firebug response shows;
{“COLUMNS”:[“DUPECOUNTER”],”DATA”:[[“0”]]}

  if ($(e.target).is(":checked")) {
    $firstTD = $(this).parent().siblings().first();
    SaveDupeGroup = $firstTD.text();
        $.ajax({
            type: 'GET',
            url: 'cfc/basic.cfc?method=CheckDupeGroup&returnformat=json',
        dataType: 'json',
        data: 'dupegrouptocheck=' + $firstTD.text(),
            error: function (xhr, textStatus, errorThrown) {
            // show error 
            alert(errorThrown); 
            },
            success: function (response, textStatus, jqXHR) {
            alert('Dupe Group-' + SaveDupeGroup + ' count=' + response.DATA[0]);
            ReInitAnswer = confirm('All of the names in this group have been checked.\nDo you want to remove them from the list?');
        if (ReInitAnswer) {
              alert('continued'); 
                } else {
              alert('canceled');
              return false;
                }
        }
            });
        }

<cffunction name="CheckDupeGroup" output="false" access="remote">
<cfargument name="DupeGroupNumber" required="True" type="string" default="" />
<cfset var qResults = "" />
<cfquery name="qResults" datasource="#request.dsn#">
SELECT COUNT(id) AS DupeCounter 
FROM Temp_Duplicate_Individuals_AddressZipState 
Where dupe_group_number = #val(arguments.DupeGroupNumber)# and isnull(not_dupe_flag,'False') = 'False' 
</cfquery>
<cfreturn (qResults) />
</cffunction>
  • 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-05-30T13:27:20+00:00Added an answer on May 30, 2026 at 1:27 pm

    You’re passing data: 'dupegrouptocheck=' + $firstTD.text(), but the argument name in the function is DupeGroupNumber. Change dupegrouptocheck to DupeGroupNumber.

    The reason this isn’t throwing a required argument error is because you have a default value (an empty string) for the argument, and CF will use the default value rather than throwing an error for not passing in the argument.

    So, you are essentially running:

    SELECT COUNT(id) AS DupeCounter 
    FROM Temp_Duplicate_Individuals_AddressZipState 
    Where dupe_group_number = "" and isnull(not_dupe_flag,'False') = 'False' 
    

    Because you don’t have a dupe_group_number that equals "", the query is correctly returning a count of 0.

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

Sidebar

Related Questions

In this link: http://css-tricks.com/snippets/jquery/jquery-plugin-template/ it has a line of code that says // Add
I am using jQuery 1.7.1. and I have the following question/problem: The code has
http://steph.net23.net/work.php here is my test link. This page has a jquery script in it
Jquery has a great language construct that looks like this: $(document).ready(function() { $(a).click(function() {
i've got the following Problem / Question: I have HTML Code like this: <div
This isn't a jQuery only question as it has to do with events and
This Jquery problem has been bugging me for a while now. I developed a
I don't know if anyone ELSE has noticed this, but I noticed the jQuery
Getting this error with jquery & jquery.form. Site has been live for awhile..upgraded to
Sample page: http://jsbin.com/ohuze/2 This is a simple jQuery UI Accordion. Each accordion panel has

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.