xSlok xSlok - 1 year ago 105
Javascript Question

Eclipse image assets not being found?

I'm having some trouble with assets in eclipse, how to I access them in javascript?

this is my project's structure:

enter image description here

Already tried "/assets/images/spinner.gif", "/assets/spinner.gif" and "/images/spinner.gif"
What am I missing?


Answer Source
loading.src = "/YOURAPPNAME/assets/spinner.gif";

Although I prefer to have that gif in a div a then only show/hide that div and don't mess with paths.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download