0

I have a library picture called "pictures" on it there is a picture "test" (.png)

I searched how to display this picture inside a webpart, i read that Javascript is perfect for it but i didn't find the pefect way to do it. I looked on this post (Display Images from sharepoint library in table)

At the end i just want to insert the picture on a tag

<img src="" />

Hope i was clear, thanks in advance

1 Answer 1

0

There are a couple ways to do this.

  • There should be a Image WebPart. All you do is just find the image that you want to use in it and you click OK: https://support.office.com/en-us/article/Image-Web-Part-5427941b-10bc-4e5f-8c3f-68637608034d
  • You can also use the Content Editor Webpart and just click inside the content, and insert an image there, using Insert -> Image
  • You can also just use the Content Editor Webpart and paste in your img tag in order to manipulate any parameters. Just click the "Edit Source" at the top.
1
  • i'm doing a site template on visual studio , that's why i need to do something in javascript directly on my default.aspx. So i'm only working on visual studio
    – NoobieJS
    Mar 31, 2016 at 12:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.