Refresh Parent Page with CFCONTENT

We open a page with a HREF - <A HREF="mylist.cfm?type=iapr&RequestTimeout=3000" target="_blank">

I run some coldfusion scripts to update the db to reflect the user request - then I need to refresh the parent page before generating the excel file that the user requested.

<script language="javascript">

Open in new window

<cfcontent type="application/msexcel">
<cfheader name="Content-Disposition" value="filename=#filename#.xls">

Open in new window

It isn't refreshing the parent page.  If I do a cfabort, it works just fine.   Is there something else I can do to facilitate this process?
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.

(no points.. )

It can't be done in the same page. With a few exceptions, a page can only contain a single type of content. So your download page can either return an excel file ie "application/msexcel" or "text/html" (ie javascript, css...) . Not both. The cfcontent causes the javascript code to be ignored. That's why it's not firing.

I don't have an example handy, but you could do it with jquery. In the parent page, create a function that calls your download script via ajax. Then in the "success" or "done" function, refresh the current page.

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
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
ColdFusion Language

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.