Link to home
Start Free TrialLog in
Avatar of bfuchs
bfuchsFlag for United States of America

asked on

How to figure out where is my JS error?

Hi Experts,

My page is not functioning the way is supposed to, by looking at a screen like the attached, how can I figure out what is the cause?
Tried clicking on the red icon showing 2 errors but nothing comes up. (wondering why not...)
Besides I had those two errors before, so they're not the cause.

Thanks
Capture.PNG
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

What are the errors?
Where are the errors?

You need to give us something to shoot at here.
Avatar of bfuchs

ASKER

Hi,

We are supposed to see a draft button (see attached), which gets created by the code below and its not there.

// DRAFT
    $('.draft-container').show();
    $('.draft-container .draft-btn').click(function(event) {
      // set status to draft
      $('input[name$="Status"]').val('Draft');
      
      // set other fields to required = false 
      setRequired(false);

      // set required field for draft
      setDraftRequired();

      // set Signature
      setSignatureDraft();

      // submit the form
      $('input[name="Submit"]').click();
    });

Open in new window


Thanks,
Ben
Capture.PNG
Check on the developer console
For example for this current page, I've an error, check at the bottom of the screenshot.
If I click on the link on the right of the error, it point me the faulty code

User generated image
I understand - look at your first image again at the top right of the console there is a message there that says "2 hidden" - go to your console settings and make sure you are not hiding console messages.
Avatar of bfuchs

ASKER

Hi,

If I click on the link on the right of the error, it point me the faulty code
By Me it doesn't.

go to your console settings and make sure you are not hiding console messages.

Don't see such option on attached.

Thanks,
Ben
Capture.PNG
left of the "no entry" icon, click on that icon to reduce this left panel, you will see your errors
Avatar of bfuchs

ASKER

Hi,
I have clicked all over the place, nothing brings up those errors.
Perhaps one of you can connect to my pc and show me how to do it.
Will be on vacation next few days, will resume upon return.
Have a nice weekend!
Thanks,
Ben
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.