Ram:
I'm not going to write the code for you - that wouldn't serve either of us very well. You'd end up with something you couldn't support and I'd be spending time I'd never get back.
As I pointed out in my original post about this method, it's "hacky". The ids in the InfoPath form can change, etc.
I think you need to do some debugging on your end to see where the bottlenecks are. You don't need timeouts other than upon the initial page load to cover the asynchronous nature of InfoPath forms.
M.
I'm not going to write the code for you - that wouldn't serve either of us very well. You'd end up with something you couldn't support and I'd be spending time I'd never get back.
As I pointed out in my original post about this method, it's "hacky". The ids in the InfoPath form can change, etc.
I think you need to do some debugging on your end to see where the bottlenecks are. You don't need timeouts other than upon the initial page load to cover the asynchronous nature of InfoPath forms.
M.