PDA

View Full Version : when div(or container) element can be available in DOM structure of the page?



bforbhavin
21 Jun 2014, 5:54 AM
I am integrating ExtJS code with ArcGIS JS API (https://developers.arcgis.com/javascript/jstutorials/) to show map in my code. To display map, I need to keep one div element in my code. I use container and passing id of the container with afterLayout event as per instructions of ArcGIS JS API. That way it works fine. But I am trying to find any better way. Instead of afterLayout, I am trying to use other event so, container element can be available in DOM at early stage. I tried afterrender but that time container is not available in the DOM. Is there any other event between afterrender and afterLayout is being called and container can be available in DOM?