I have a function that is outside of the require portion of the dojo functions.
This function needs to call a function that resides within the dojo require block.
How do i call a function that is within the require code block from a function that resides outside the dojo require block?
Perhaps a little more application flow will demonstrate the need
- Main window application spawns a child window
- Main window sends a message to the child window that has a global function that will receive the message
- Child window receives the message
- The external function parses the message and determines that the map needs to be updated (The child window that is spawned is the mapping window and loads a lot of ESRI modules in the require section)
- the child window function needs to call a function that is within the require code block of dojo to do the actual ESRI related tasks
Talk about a hack... here is what i did to get the results i needed.
I created a hidden button on the form, bound the click event to fire off the function.
When the message was received and processed, I fired off the button click event - and viola!!
thanks everyone for the help.