Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

227
Visualizações
Extjs one level up icons directory

We have an existing icons directory in c++ which we would like to use for our extjs application also. As per our requirement, we want the icons directory outside of the Extjs App directory. So I referred to my icons like below. Example of button config:

 { "id": "Open1", "icon": "./../COMMON/Resources/icons/T1Icon1.ico", "scale": "medium" }

But the icon is not visible in html.

In dev tools it shows as :

background-image: url("./../COMMON/Resources/icons/T1Icon1.ico");

On clicking on the link it goes to:

http://127.0.0.1:5501/COMMON/Resources/icons/T1Icon1.ico

which is incorrect.

What mistake I'm doing? Console shows the image not found errors. If I move the COMMON directory into the Extjs App directory then all icons are shown.

EDITED:

My directory structure

enter image description here

I'm a beginner in using Extjs framework and also Js/Css. Kindly excuse, If I could not provide the relavent information.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Your server shows the base path:

// folder equivalent
127.0.0.1:5501/ === vejsui
// You start the app at
127.0.0.1:5501/index.html

If you start a local server you cannot go beyound the base path. You would have to start your server at ExtJS in order to be able to go into COMMON.

That way you start the app with:

127.0.0.1:5501/vejsui/index.html
about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda