Anyone know how I can display a <cfcatch> me...
# cfml-general
m
Anyone know how I can display a <cfcatch> message on screen for a few seconds before executing a redirection using <cflocation> ?
a
I suspect this can't really be done, as the cflocation will run before anything goes to the client, and what will go to the client will be a 302, which won't have any body.
🙏 1
I'd also think about the UX of having a message that is clearly of some importance that is only displayed for a few seconds, without any user intervention to indicate that they have seen the message and have made an informed decision as to what to do about it.
Maybe back up a bit and discuss the problem you are trying to solve, rather than diving into the implementation of said solution...
m
Yeah your right - Im just reloating them to login with an aid passed in to excplain the error on the login page,. This will do 🙂
🙏 1
a
In that case I'd display the message on the login page once they get there.
m
Legacy system so they dont want to spend too much time on it
🙏 1
a

https://i.paste.pics/0e8b564902c595b6e1b5361ee72dcd6d.png

👍 1
m
Perfect:-) 🙏
1
a
Legacy system so they dont want to spend too much time on it
I think it's more they don't want to spend too much MONEY on it. No point spending money at all if it's gonna be a bad & unhelpful solution. They should be prepared to pay for a minimum VIABLE solution. One that does the job, and nothing fancier than that. But it needs to do the job. Otherwise it's not a good use of money (or time).
m
I totally agree - Im battling this with them at the moment
1