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

The Archive Base Latest Questions

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

To reproduce this error, please kindly go to here . Select Color and Size

  • 0

To reproduce this error, please kindly go to here.

Select “Color” and “Size” and click “Add to Cart”, when the “loading…” dialog box appears AND before it turns into the “added to cart” dialog box, click anywhere in the shade to cancel the dialog box, and then click any link on the page as fast as you can.

If you are fast enough, you can reproduce this alerted error:

Exception : TypeError: $("j2t-temp-div").down(".j2t_ajax_message") is undefined

(Firefox 9)

Exception : TypeError: Cannot read property 'innerHTML' of undefined

(Chrome 17)

No alerted error for IE 8.

My question is how do I suppress this error. I have accidentally stepped on it several times and I’m sure my users would do that as well by chance. And it doesn’t look pretty on a production site.

Is there any way to disable this exception while keeping the AJAX adding to cart feature?

Any idea would be appreciated. Thanks!

  • 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-30T16:06:12+00:00Added an answer on May 30, 2026 at 4:06 pm

    To suppress it, you can use typeof:

    if (typeof variableHere != 'undefined'){
      // your further code
    }
    

    For example if you do:

    alert(someVar);
    

    where someVar isn’t defined before, you will receive:

    someVar is not defined
    

    But when you do:

    if (typeof someVar == 'undefined'){ ... }
    

    It will suppress the error.


    So you have to figure out which variable is causing that error after which you need to use typeof check to suppress the message.

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

Sidebar

Related Questions

Here's the simple test to reproduce the issue, this is the single class in
I hope someone can help me out with this. I can't reproduce this error
Please, put this data structure into R in order to reproduce my example: dX
I have very little to go on here. I can't reproduce this locally, but
Unfortunately I cannot reliably reproduce this error but infrequently I get it and occasionally
Does anyone know how I can reproduce this SQL Query as a SubSonic Query?
is there any way I can reproduce this ruby function: def Password.hash(password,salt) Digest::SHA512.hexdigest(#{password}:#{salt}) end
I'm trying to reproduce the heatmap presented on this blog by following their tutorial,
I am trying to reproduce a simple jquery slider example that works on this
I'm trying to reproduce the effect our friend @Dr. Molle told us on this

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.