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)

Dynamics CRM 2013 - Web Resources and the browser 'back' button

(0) ShareShare
ReportReport
Posted on by 360

Has anyone else experienced this or knows if this is a 2013 bug? If I add a web resource to a form, open the form, then click the browser's 'back' button the form unloads the web resource.

This seems to stack up, so if I have 3 web resources on a form, and click 'back' 4 times the first 3 times will unload the web resources and the 4th will actually take me back.

I've tested this out on IE, Firefox and Chrome and it seems to be happening only to IE and Chrome.

*This post is locked for comments

I have the same question (0)
  • Diana Birkelbach Profile Picture
    140 Most Valuable Professional on at

    I have the same issue. It must be a bug.

  • Sunil J. Albuquerque Pai Profile Picture
    40 on at

    Same issue here. Has anyone opened a ticket with Microsoft by any chance?

  • Community Member Profile Picture
    on at

    The shared liability in this behavior lies with both the browser and CRM.  No amount of JavaScript or server-side code can tell your browser how to behave when you hit the "back" button.  Simply put, you cannot restrict the browser from going wherever it wants.  You can act on the total "unload" event, but you really can't prevent the browser from actually unloading your page.  Additionally, you cannot intercept the actual clicking of the Back button, from within the context of the JavaScript running the form.  So, Dynamics CRM would be unable to make it behave differently.

    That said, it's CRM's dependence on Iframes to embed Web Resources that's really at fault here.  Effectively, every contained Iframe must also be controlled by the browser's "Back" button--else navigating an encapsulated page would be downright improbable.  Though few (if any) Web Resources actually require this, the only thing to "back" out of is the Web Resource itself (since the Iframe's "src" attribute is dynamically declared by the form, depending on whether it is visible to the user).

    So, the way I see it, there are but two options:  log a bug against your browser (which I'm fairly confident will be dismissed as "by design"), or submit (or up-vote) a feature change/enhancement request to Microsoft Connect (http://connect.microsoft.com) asking Microsoft to break away from Iframe-based Web Resources.  I'm not sure either will be successful, so in the meantime, I'd chalk this up to behaviors that are by design.

  • Rekisu Profile Picture
    360 on at

    While I agree with you that this is a combination of browser based behavior and the CRM 2013 application itself, the problem is not just "web resources use iframes" , the problem lies with the way Dynamics CRM 2013 is loading iframes on a form.

    On "normal" HTML page, opening a page with an iframe and clicking back does not cause the iframe to unload - it causes the web browser to go back. Clicking inside an iframe and clicking back causes the iframe to go back, but never unloads the iframe. I tried reproducing the problem in Dynamics CRM 2011 and found that the iframes don't unload, page just goes back as expected.

    To me it suggests that this problem is caused by the way Dynamics CRM 2013 loads its iframes.

  • Verified answer
    Diana Birkelbach Profile Picture
    140 Most Valuable Professional on at

    I've confirmed that this is a bug. In the meantime you can vote this issue on connect.

    connect.microsoft.com/.../backspacre-unloads-form-elements

  • Community Member Profile Picture
    on at

    Thank you for following up with this thread, Diana, and for sharing the Connect item.  I've upvoted and hope a fix for this behavior comes soon.  Rekisu, please accept my apologies for any incorrect information.  My hypothesis was obviously incorrect.

  • quite_dynamic Profile Picture
    855 on at

    Hi,

    We are experiencing the same issue as others in this post and are quite interested with MS tackling the problem.

    Unfortunately, the hyperlink provided to the logged issue on MS Connect to upvote does not seem to work. Moreover, on Connect, CRM Dynamics only seems to accept suggestions, rather than bugs and suggestions...

    Do anyone have any information on how to track / follow / vote for this issue?

    Many thanks

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