Hi All,
I have 1 web resource and I show some records in it. Upon creation / deletion of records externally; the web resource will show the current state. So i have added a 'refresh' icon on that web resource that gives call to the below function.
<a title="" class="plus" id="refreshAll" style="margin-right: 5px;" onclick="RefreshWebResource();" href="javascript:;"></a>
function RefreshWebResource() {
var webResourceControl =Xrm.Page.getControl('WebResource_ProductPrice');
var src = webResourceControl.getSrc();
//webResourceControl.setSrc(null);
//webResourceControl.setSrc(src);
src = src + "%26reload%3dyes";
webResourceControl.setSrc(src);
}
but the web resource is not getting refreshed. Upon refreshing the whole page by pressing F5, it works. But I want to only refresh the web resource.
Any pointers please.
Regards,
Prashant
*This post is locked for comments