I took a look at the technique discussed at the link and it
is just using BlockUI to put up an overlay which blocks screen
interaction.  However, the problem is, the timing of the disappearance
of the overlay is arbitrary...at least as far as I could tell.

There's no way to start it and stop it precisely as the ajax function
begins and the images processing is complete.

I could throw up an overlay without a problem when my ajax call is
initiated,
but controlling fading out the overlay after the images are processed is the
problem...and there could be 1 to 20 images, so the processing time required
can vary greatly.

Perhaps I may have to rethink using ajax in this situation...or at least
modify the approach somewhat to accommodate the timing needs.

I had high hopes that setting async: false would solve the problem.  But
again,
I don't think async:false has anything to do with CF trying to process
images
in the background.

Rick

-----Original Message-----
From: Rick Faircloth [mailto:[email protected]] 
Sent: Tuesday, September 22, 2009 11:13 PM
To: cf-talk
Subject: RE: CF & jQuery - How to delay ajax completion until images are
processed...


Thanks for the tip, James...

I tried to use the setting "async: false" in the ajax parameters,
but that didn't seem to have any effect.

I wish I could somehow let the image processing continue even if the
"close" button on the success dialog is clicked.  But that causes the
processing to stop.

It might work if I weren't re-writing the property list on the screen
after adding a property, but that defeats the whole purpose of using ajax.

Clients have commented about the length of time it takes for all the
image processing to occur.  I even tried putting the image processing part
of the cfc method into a cfthread, but that didn't seem to help, either.

I'll check out your link...perhaps that's the answer.

Rick

-----Original Message-----
From: James Holmes [mailto:[email protected]] 
Sent: Tuesday, September 22, 2009 11:01 PM
To: cf-talk
Subject: Re: CF & jQuery - How to delay ajax completion until images are
processed...


It sounds like you need a synchronous request e.g.:

http://stackoverflow.com/questions/133310/how-can-i-get-jquery-to-perform-a-
synchronous-rather-than-asynchronous-ajax-req

Of course, if you have to wait for a response, it may be worth simply
doing a normal post rather than using ajax.

mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/



2009/9/23 Rick Faircloth <[email protected]>:
>
> Got a combination CF & jQuery question for those of you who use
> both.usually, I can get
>
> a better response from folks who use CF & jQuery than I can from those who
> use only jQuery.
>
>
>
> I've got an ajax call (not AJAX call.) that inserts property data into a
> database then processes from 1 to usually
>
> no more than around 10 images, creating multiple sizes, etc.
>
>
>
> The problem I'm having is that the ajax call, being asynchronous, returns
> back to the calling
>
> page and continues executing instructions before the images are all
> processed.





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326525
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to