Need ajax to make user wait until server has performed task.


admittedly i'm total noob ajax , javascript , have in fact been avoiding it, despite having been cf dev ten years.  here wondering if gracious point me in right direction since can't seem escape time.

 

here's scenario.  ecommerce site sells downloads.  once purchase clears, application begins creation , placement of purchased files.  user given success page link download area.  click download area.  creation of files may or may not yet complete.  must load page displays *wait, file being created* images next link of each file until file complete.  link becomes active.

 

i've created cfc receives id of record check , returns status (1 or 0).

 

well, what?  know need put code on page can display wait image, make calls database until gets 1 change image link ?!?!? i'm @ total dead stop here.  can't find similar apps on net work off of.

 

can me know steps/tags use?

 

i have cf8 enterprise , own server/site have complete control on setttings.

 

tia!

hi,

 

welcome exciting , painful world of asynchronous code ! worth pain, though!

 

in op, noted that:

once purchase clears, application begins creation , placement of purchased files. user given success page link download area.

 

when purchase clears, user being sent cfm page (success page), true? download area part of success page or link cfm page, download?

 

sorry questions, ask b/c ajax(y) approach take differ based on application flow point of order completion/purchase clearing. can steps , ideas but, me, knowing flow helps in giving better suggestions , advice.



More discussions in ColdFusion


adobe

Comments

Popular posts from this blog

Error compiling for board Arduino/Genuino Uno.

Installation database is corrupt

RFID-RC522 with Arduino Pro Micro project. Error on the code?