Solved

Can I open a persistent conection using cfhttp?

Posted on 2009-04-14
3
253 Views
Last Modified: 2013-12-24
If I use cfhttp tag in coldfusion to output data from an oracle database, can I maintain a persistent connection so that when the database values change in oracle, the page is updated without refreshing the page?

If not, is there another tag that will do this?
0
Comment
Question by:steveweems
3 Comments
 
LVL 19

Expert Comment

by:Jones911
ID: 24142979
No you will have to poll.
0
 

Author Comment

by:steveweems
ID: 24143109
Can you explain polling?  Is there a coldfusion tag for that?
0
 
LVL 36

Accepted Solution

by:
SidFishes earned 125 total points
ID: 24143448
just to elaborate... an http call can never be "persistent" by designs its a get and forget method. A call to a server happens once, and then server knows nothing about later calls (session variables were invented for this reason..to maintain state)

cfhttp is doing exactly what a browser would do so therefore, it can only do what a browser can do (and less in fact as it doesn't handle javasacript or other things like flash well)

You could use cfschedule to do a cfhttp call every x minutesand but you'd still have to handle screen updates but this probably won;t do what you want

You can "simulate" a persistent connection by doing an ajax call using a JS timer and updating behind the scenes but these are distinct calls to the server/db. This is the way most screen updates are handled in the web 2.0 world but they only look like they're not hitting the server/db... they actually do.
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a guide to setting up a new WHM/cPanel Server to be used for web hosting accounts. It is intended for web hosting company administrators and dedicated server owners. For under $99 per month (considering normal rate of Big Data Cetnters like …
Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question