Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Image Web Resource and SetSrc

(0) ShareShare
ReportReport
Posted on by 80

If I look on the web, looks like previously, it was possible to do display a picture on a form, with the possibility to change the URL in javascript with:

var Attribute = Xrm.Page.getAttribute("RESOURCE_ID");

Attribute.setSrc("http://url.of.picture.jpg");

As of today, this is not working anymore and we get the following error:

"Object doesn't support property or method 'setSrc'"

Is there an other way of doing this?

I've tried with iframe and it's working, but the I have other issues like resizing etc... I'd really like to do it with a web resource.

*This post is locked for comments

  • RE: Image Web Resource and SetSrc

    what about when we add image web resource in iframe ?

  • Damien Profile Picture
    Damien 80 on at
    RE: Image Web Resource and SetSrc

    Thanks! Worked perfectly!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,430 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans