Discussion
Gadget manager doesn't identify Pega Gadgets dynamically included in web page using AJAX
Dear All,
I'm working with Pega Web Mashup. I have two Pega Gadgets on my web page. One gadget is included from the beginning which Gadget Manager identifies. However, it doesn't identify other gadget dynamically included at run time using AJAX.
My understanding is that Gadget Manager only scans the web page for Pega Gadgets once at the time the page is loaded. It doesn't scan the page after it is updated using AJAX. Is there a way to make gadget manager re-scan the web page for gadgets added at runtime?
Would appreciate some advise here.
***Updated by moderator: Lochan to add Categories***
The API - pega.web.api.addGaget('divId', window)
will help you add the gadget after the initial load. Here:
'divid' is string to identify the gadget div in the page that is created by the AJAX call
window is the window object of the host page