Are you using an NUI callback to tell the NUI to have focus? If so, make sure that the resource has the same name, as you will know to make the HTTP request to post data back to your client file, you need to have the resource name in the URL.