Redirection with CF

I think this is a simple one but I am not finding the tag that helps.  In ASP we have the ability to redirect to another page.  This basically would allow the page designer to mimic a back and forward or jump to a specific page automatically.  

What I am REALLY trying to accomplish should be simple.  I have a Post page that does some data base work and if no errors occur, I want to automatically jump to another page.
LVL 1
beregothAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

bigbadbCommented:
You can do this 2 ways in coldfusion you can use the CFLOCATION Tag.  THis will redirect the page on the coldfusion side.  

<CFLOCATION URL="url" ADDTOKEN="Yes/No">

url --> url destination
addtoken --> if you want the client var to be appended to the url string


or you can do the redirection through javascript

<script language="javascript">
location.href = "urlpath";
</script>

Keep in mind that the JS if used will be executed after all the other coldfusion tags have been parsed and excuted

Hope this helps
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
beregothAuthor Commented:
Just what I was looking for...thanks for both solutions...I knew it was something simple.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Servers

From novice to tech pro — start learning today.