I have a grid with a timer to force an AJAX refresh. I have an external JS page with a function to open a pop up. This all works fine.
I have added the following to stop the timer on pop up
var AjaxTimer = $find('<%= tmrGridRefresh.ClientID %>');
'pop up code here...
This doesn't work. The problem is the Var AjaxTimer is always null.
If I copy the function out of the external file into the actual page it works OK.
Why is the $find('<%= tmrGridRefresh.ClientID %>'); not working when its in the external fle