I have a web page with dojo code on it, including a function passed to dojo.addOnLoad with the following code:
laborDetailHandler.RevenueTotalInput = dojo.byId('#{id:LaborRevenueTotal}');
if (!laborDetailHandler.RevenueTotalInput) {
console.warn('RevenueTotalInput not found.')
}
If this code is in-line, even if it's above the LaborRevenueTotal inputbox, it works.
If this code is moved out to a script library, I get the 'RevenueTotalInput not found.' message, which tells me that dojo.addOnLoad receives the function and executes it, but for some reason the function isn't working.
I'm completely stumped here. Anyone have any ideas?