Need ajax to make user wait until server has performed task.
Admittedly I'm a total noob to ajax AND somewhat even javascript and have in fact been avoiding it, despite having been a CF dev for nearly ten years. But here I am wondering if someone would be gracious to help point me in the right direction since I can't seem to escape it this time.
Here's the scenario. This is for an ecommerce site that sells downloads. Once the purchase clears, the application begins the creation and placement of the purchased files. The user is given the success page with a link to the download area. They click into the download area. Now the creation of their files may or may not yet be complete. SO what I must do is load the page which then displays *wait, this file is being created* images next to the link of each file until the file is complete. Then the link becomes active.
I've created my cfc that receives the ID of the record to check and returns its status (1 or 0).
Well, now what? I know I need to put some code on the page so it can display the wait image, make those calls to the database until it gets a 1 then change the image to a link but ?!?!? I'm at a total dead stop here. I can't even find any similar apps on the net to work off of.
Can you help me know the steps/tags to use?
I have CF8 Enterprise and own the server/site so have complete control over any all setttings.
TIA!
