R
R
Roman Polovinkin2017-11-20 14:40:08
JavaScript
Roman Polovinkin, 2017-11-20 14:40:08

HP LaserJet M1212nf printer pinging but not printing?

Good afternoon,
tell me if anyone has encountered such problems:
There are two network printers HP LaserJet M1212nf and Samsung SCX4623 that are on the 192.168.1.0/24 network and have static ip.
There is computer #1 with Windows 7, which is on the network 10.1.140.0/24, and it needs to connect to these printers.
There is a computer number 2 with Windows 7, which is on the network 192.168.1.0/24
The path from the printers goes like this Printer (HP LaserJet M1212nf or Samsung SCX4623) --> Switch (Cisco SF300-24) --> Gateway (UniFi Security Gateway 4P) -->Switch(Cisco SF300-24)-->Computer.
You send a document from computer #1 for printing to the HP LaserJet M1212nf printer, it does not print and the web page of the printer is not available, although the ping is stable.
Printing from computer #2 is fine, ping is fine, and the printer's web page is also always available.
But I noticed such a feature, when you change the network settings for the HP LaserJet M1212nf printer and apply them, then on computer No. 1, both printing and scanning and the web page start working, but this lasts a maximum of a minute, then again the printer does not work, although the ping continues to go stable.
Concerning the second Samsung SCX4623 printer, on these two computers both pings and the web page is available and prints. Although the network settings for these printers are the same.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
X
xonar, 2019-08-30
@as_viper

Here is the correct code. You didn't specify a Classlist, and why use add and remove if it's correct to use toggle in this case?
Demo - https://codepen.io/ruslan-lysenko/pen/QWLMvya

const accordeonTwo = () => {

  const accordeonTwoParent = document.querySelector('#accordion-two'),
accordeonPanelHeading = accordeonTwoParent.querySelectorAll('.panel-heading'),
accordeonPanelContent = document.querySelector('.collapse');

        accordeonPanelHeading.forEach((elem) => {
            elem.addEventListener('click', (event) => {
                event.preventDefault();
                let target = event.target;
                
                if (target.closest('.panel-heading')) {
                    accordeonPanelContent.classList.toggle('in');
                }
            });
        });
  };

  accordeonTwo();

R
Roman Misyurev, 2017-11-20
@Sudo

Have you changed the SNMP settings on your HP?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question