Pesquisar no site de suporte

Evite golpes de suporte. Nunca pedimos que você ligue ou envie uma mensagem de texto para um número de telefone, ou compartilhe informações pessoais. Denuncie atividades suspeitas usando a opção “Denunciar abuso”.

Saiba mais

Esta discussão foi arquivada. Faça uma nova pergunta se precisa de ajuda.

I have an application with multiple pane loading in parallel. I am intermittently getting this error message: init: $(...)[0] is undefined

  • 4 respostas
  • 1 tem este problema
  • 18 visualizações
  • Última resposta de djmontag

more options

I am loading a an application web site that has loads multiple panes of related information and one pane of the other will not load and this error message appears: init: $(...)[0] is undefined. Then one of the panes will not display the information as desired. I click the refresh button, and sometimes this clears the issue and both panes display correctly. If I repeatedly click on the refresh page, the error will appear again and one side will not display again. Then I click again it may or may not clear the issue an both panes may appear as expected. The issue is about 50 - 50, display good no errors and 50% of the time on a refresh action the error will appear and one pane will not display.

I am loading a an application web site that has loads multiple panes of related information and one pane of the other will not load and this error message appears: init: $(...)[0] is undefined. Then one of the panes will not display the information as desired. I click the refresh button, and sometimes this clears the issue and both panes display correctly. If I repeatedly click on the refresh page, the error will appear again and one side will not display again. Then I click again it may or may not clear the issue an both panes may appear as expected. The issue is about 50 - 50, display good no errors and 50% of the time on a refresh action the error will appear and one pane will not display.

Todas as respostas (4)

more options

When you say an application website, do you mean an application on a local server or your own machine?

multiple panes sounds like it may be using iFrames, the error is a 'promise' that is not being fulfilled, in modern web programming we can use variables before we have actually declared them, i.e. a 'promise' to the webpage that we will declare them later on, but if this doesnt happen for some reason, then the 'promised variable' is 'never defined' and so we have an error.

the fact it happens intermittently could be for a myriad of reasons, if its a remote website it could be dropped information causing it.

without using the browser console or digging into the code its hard to tell, more information please!

more options

This is a web application running on a networked Linux server. It is a Java based running as a TomEE Java virtual machine using an Apache platform for hosting ssl config. Let me know if this helps or if you would like more information.

more options

I wonder if this has anything to do with it?

https://java.com/en/download/faq/firefox_java.xml

more options

Thank you for the follow up. If the issue was related to Mozilla discontinued Suppot for NPAPI I would expect to see this same experience with Chome and Edge. Although we are not seeing the same issue with these browsers.

Thsnks