Coldfusion Scheduled Task for HTML files with javascript ajax call to web service
I have a plain html file, content of which are dynamically generated (on accessing it) over a few seconds (about 7-10 second) like some tables, rows of which are added through javascript after doing some processing and this process takes about said 7-10 seconds.
Using settimeout(), after 15 seconds (to ensure that content has been populated correctly), I am running a web service (.cfc with function having cfmail tag in it) through javascript ajax call which captures all html content of page and sends to marked email ids – which in normal course works fine – when page is accessed in web browser and left open for desired time of about 15-20 seconds.
However, the same page when I schedule in CF admin (even with timeout of 60 second), it never fires the sending email part.
Can I have some advise, where I am doing wrong!
