The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Programming Languages - More
> ColdFusion Development
|
Question about Coldfusion tags for several steps of processing
Discuss Question about Coldfusion tags for several steps of processing in the ColdFusion Development forum on Dev Shed. Question about Coldfusion tags for several steps of processing ColdFusion Development forum discussing CFML coding practices, tips on CFML, and other CFML related topics. Find out why ColdFusion is the tool of choice for many e-commerce developers.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

November 3rd, 2011, 02:51 PM
|
|
Registered User
|
|
Join Date: Nov 2011
Posts: 4
Time spent in forums: 14 m 22 sec
Reputation Power: 0
|
|
|
Question about Coldfusion tags for several steps of processing
I'm am generally a beginner in ColdFusion programming and I have an application I'm working on that requires several steps of data processing. In one CFM page it is too long and times out, so I separated it into several pages that run one after another using re-direct codes to load next and that has problems.
Which CF tags do I need to use to have this in one CFM page, and have one process run, then next process, then next process. I don't need to have it made decisions such as <CFIF> tag but just a tag that has it run first process alone, so it doesn't run them all and time out, then when finished, run the second, and I think there are about 35 processes I'll run but simply run them in order, 1,2,3 etc. until all are done.
Can anyone make sense of what I'm talking about and give me some suggestions on which tags I can use to do this?
Thanks,
Dean
|

November 3rd, 2011, 04:22 PM
|
|
Moderator
|
|
Join Date: Jun 2002
Location: Raleigh, NC
|
|
|
Well you can do it by having them move through separate pages, since each request has a separate timeout. You could look into using AJAX if you need to keep them on the same page while all of the separate requests run (check out jQuery). Or you may be able to use CFTHREAD to split the processes into separate threads and run them simultaneously, but if you're a beginner that's probably going to be somewhat complex for you.
|

November 3rd, 2011, 07:03 PM
|
|
Registered User
|
|
Join Date: Nov 2011
Posts: 4
Time spent in forums: 14 m 22 sec
Reputation Power: 0
|
|
|
Another question
Thanks for the response. If I keep them on separate pages, whc is best way to have each page automatically load the next after it completes? Right now I"m using:
<body onLoad="parent.location='URL HERE';" >
on each page and sometimes that just decides it doesn't want to work or at least it seems to do that.
Thanks,
Dean
Quote: | Originally Posted by kiteless Well you can do it by having them move through separate pages, since each request has a separate timeout. You could look into using AJAX if you need to keep them on the same page while all of the separate requests run (check out jQuery). Or you may be able to use CFTHREAD to split the processes into separate threads and run them simultaneously, but if you're a beginner that's probably going to be somewhat complex for you. |
|

November 4th, 2011, 09:26 AM
|
|
Moderator
|
|
Join Date: Jun 2002
Location: Raleigh, NC
|
|
|
Actually, can you just increase the timeout for this one page and do it all on one page? <cfsetting requestTimeOut = "value in seconds" />
|

November 4th, 2011, 12:20 PM
|
|
Registered User
|
|
Join Date: Nov 2011
Posts: 4
Time spent in forums: 14 m 22 sec
Reputation Power: 0
|
|
|
Thanks I'll try that and report back on how it works.
Dean
|

November 6th, 2011, 07:08 PM
|
|
Registered User
|
|
Join Date: Nov 2011
Posts: 4
Time spent in forums: 14 m 22 sec
Reputation Power: 0
|
|
|
That worked
it worked, thanks.
Dean
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|