[progress Communities] [progress Openedge Abl] Forum Post: Re: Issue With...

  • Thread starter Thread starter Mani Kumar
  • Start date Start date
Status
Not open for further replies.
M

Mani Kumar

Guest
Hi Ishak, Thank you for sharing the app.xml. I’m now able to figure out the issue and below are my recommendations: rb.newui.util.addEventListener is something, which will attach the Listener on page canvas element and as Siraj mentioned in his earlier comment, rb.newui.util.customEvents.rbs_pageRender fires on both update and refresh of pages and these listeners will be removed automatically on each page refresh. However, it is not in case of $(document). $(document).on will attach handlers to document root node and will not get automatically removed when doing update. The reason behind why you were seeing incremental pop-ups was that, each time we try to load the same page or move to other page instead of refresh, a new handler gets added but the old one is not removed. Hence it is not suggested to use $(document).on in Ajax based pages. To fix this, here is a simplified solution: When using in custom side bar: 2. On Ajax based pages: Also, if you would like to use in both pages and custom sidebar, please make sure that function names are distinctly named, else, you will end up having multiple pop-ups again. I’ve made the above changes in the application you’ve provided and re-attached it. Please try and let me know if it works at your end? Regards, Mani. (Please visit the site to view this file)

Continue reading...
 
Status
Not open for further replies.
Back
Top