javascriptdojoesri-javascript-api

Scoping issue - calling an internal dojo function from external function


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


Solution

  • 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.