0
good night Have you tried to get ~ from the address ? everything will depend on the directory that is img if it is in a subdirectory of your web project just put Content/img/loading.gif
0
1
good night Have you tried to get ~ from the address ? everything will depend on the directory that is img if it is in a subdirectory of your web project just put Content/img/loading.gif
It worked, just remove til character. src=\"/Content/img/loading.gif\"
Exactly. Removing the character ~
, the path is relative to the root directory of the application.
Browser other questions tagged javascript
You are not signed in. Login or sign up in order to post.
What do you mean by "in my javascript"? Why the tag
img
would be in your js file and not in HTML? Have you tried using the absolute image path?– Woss
This code above, not in html, is in javascript. Because I am using a plugin and I want to change style... I can only change using js Example:
templates:{ header: "div class="" .......<img clas =....etc ../.> <button class="btn btn-success"}
– Matheus Miranda
And the absolute way, tried?
– Woss
By the absolute way it works, it has how to make it work by the relative way ?
– Matheus Miranda
Try using the root path of the application, so not the user directory.
– Woss