the data every time the web page is opened, you can set a refresh option. I am suspecting that onclick does something that I am unaware of, or there is some differences with clearing the cache. Technically, the app is hosted within an iframe element that is embedded on. In both instances, both functions are called according to the logs. I am confused as to why calling the refreshIframe function from within another function does not grab the updated comment, but when invoking from an onclick, it works perfectly fine. ![]() However, when I call the refreshIframe() function from an onclick button, it successfully fetches the feed with the comment: There is definitely a 'reloading' animation, but the DML update doesn't appear. The issue I'm encountering is that the refreshIframe() function does not fetch the newly inserted comment. Var iframe = document.getElementById('iframe') InsertComment(comment) //Insert the comment into the chatter feed through Apexĭocument.getElementById("comment").value = '' //clearing comment fieldĪfter updating the feed element with the comment, I'm trying to refresh the iframe using a javascript function: Var comment = document.getElementById("comment").value //get comment input field Then, I'm grabbing an input text field from the page, passing it to Apex to DML update the chatter:feed component by inserting a comment (I'm doing this instead of just posting a comment within the iframe so I can do some text sanitizing). ![]() I'm displaying an iframe of a chatter:feed component on my visualforce page. RE: refreshing iframe crazyboybert (Programmer) 23 Jan 04 13:58 When you do a history.back call this is client side and the page doesn't get refreshed by the server. I'm trying to figure out why my iframe is not refreshing after a DML update even when explicitly calling a reload function.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |