Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
quote:
Originally posted by: craigkaminsky
Hi, Min,
I do not know of a way offhand to do this in CF7 but you might look into using an Ajax library, such as jQuery, to handle this task for you.
With jQuery (or one of the many other solid Ajax frameworks), you can submit the form data to an XMLHttpRequest, which runs asynchronously in the background. While the XMLHttpRequest is running, you can use jQuery to display a message to the user (a loading icon, add some text to the DOM/page so that the user knows the site is working on their order, and then provide a confirmation screen (or redirect to the transaction complete page) when it's done.
If you haven't used an Ajax library (or Ajax in general), it can be a bit intimidating but it is a great way to improve the user experience. If this might be of help, I can certainly provide an example or two for you on how ColdFusion and jQery work together on processes such as these.
Best,
Craig
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
quote:
Originally posted by: Newsgroup User
> I am on a shared CF7 hosting with cfschedule disabled. Is there an
> alternative way to tell CF to run a script in the background?
If you can get an async CFML gateway configured, then you can make async CF
requests.
Read up on sendGatwayMessage() -
http://livedocs.adobe.com/coldfusion/8/functions_s_02.html - and the
various other links from that page.
--
Adam
Copy link to clipboard
Copied
Copy link to clipboard
Copied