web
You’re offline. This is a read only version of the page.
close
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

I have the same question (0)
  • Damien Profile Picture
    80 on at

    Thanks! Worked perfectly!

  • Community Member Profile Picture
    on at

    what about when we add image web resource in iframe ?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans