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

The Archive Base Latest Questions

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

If I have a bad statement, the entire block of script is disabled. Other

  • 0

If I have a bad statement, the entire block of script is disabled. Other blocks of script are not disabled. I don’t get a script error. I’ve spent hours fumbling around with this code. It’s on a Coldfusion 9 server and I use Eclipse to edit and format. If I comment out the line ->alert($(e.target).is(“:checked”)); the code works. I’m wondering why I don’t get me javascript errors anymore.

<script type="text/javascript">

    $(document).ready(function () {

      $('.StartOver').live('click', function () {
        var ReInitAnswer = confirm('Are you sure you want TO DELETE ALL temp dupe records AND start over FROM SCRATCH? \nIt may take a couple OF hours.');
        if (ReInitAnswer) {
          // submit the form TO BEGIN re-creating the temp table
          document.forms["dupeIndivs"].submit();
          //return true; 
        } else {
          alert('canceled');
          return false;
        }
      });

      $('.notdupe').live('click', function (e) {
        alert("indivNum=" + $(e.target).val() + "&SetValue=" + $(e.target).is(":checked"));
        $.ajax({
          type: "POST",
          url: "cfc/basic.cfc?method=SetNotDupe",
          data: "indivNum=" + $(e.target).val() + "&SetValue=" + $(e.target).is(":checked"),
          error: function (xhr, textStatus, errorThrown) {
            // show error alert(errorThrown); 
          }
        });
        alert($(e.target).is(":checked"));
        if $(e.target).is(":checked" == 'True') {
            $firstTD = $(this).parent().siblings().first()
            alert($firstTD.text());
            $.ajax({
                type: "GET",
                url: "cfc/basic.cfc?method=CheckDupeGroup",
                data: "dupegrouptocheck" + $firstTD.text(),
                error: function (xhr, textStatus, errorThrown) {
                    // show error alert(errorThrown); 
                },
                success: function (response, textStatus, jqXHR) {
                    alert(response);
                }   
            });
        }
      });
    });
</script> 
  • 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-30T08:06:29+00:00Added an answer on May 30, 2026 at 8:06 am

    Should:

    if $(e.target).is(":checked" == 'True') {
    

    be:

    if ( $(e.target).is(":checked") ) {
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've put in a finally statement, but I get Syntax error, I don't have
I have the following SQL statement which has a very bad performance: SELECT frmInstLastModifiedDate
Is it bad practice to have a custom cursor on a website? Not just
I get an EXC_BAD_ACCESS error at a place that doesn't have anything to do
I don't know what is wrong with that statement because I have exactly the
I am getting an error that this has an illegal continue statement. I have
Maybe I have a bad design but I am currently trying to get an
I have a SQL SELECT statement which will not be known until runtime, which
i hat one task, and know i have to continue but have a bad
I need help getting git extensions to run with msysgit. I have had bad

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.