mv_suresh
asked on
CFHeader/CFContent Problem
I have used the following code for downloading a file to the client machine..
<cfheader name="Content-Disposition" value="attachment; filename=#URLDecode(URL.fi le)#">
<cfcontent type="application/octet-st ream" file="#fn#" deletefile="No">
This is working fine in IE 5.5,
But in IE 6.0
I am getting two open dialog box'es while trying to open the file.
I will be grateful if someone can help me out of this problem.
Thanks in advance..
Suresh.
<cfheader name="Content-Disposition"
<cfcontent type="application/octet-st
This is working fine in IE 5.5,
But in IE 6.0
I am getting two open dialog box'es while trying to open the file.
I will be grateful if someone can help me out of this problem.
Thanks in advance..
Suresh.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
CJ,
I didn't get you, can you explain in detail, How can I handle this, Is there any way that I could control the setting of the browser through Cold Fusion or Javascript, If so how can I do that.
Thanks,
Suresh.
I didn't get you, can you explain in detail, How can I handle this, Is there any way that I could control the setting of the browser through Cold Fusion or Javascript, If so how can I do that.
Thanks,
Suresh.
you can detect the browser by searching for IE 6's user agent string in the CGI.HTTP_USER_AGENT var.. then use a if then else accordingly.
CJ
CJ
ASKER
CJ,
Okay, but how can I control the File download dialog from the code.
I could able to save the file with the single click.
But when I select the 'Open' button, then
It is agiain popping up the same dialog box, and then
when I click on 'open' button then the file is opening on the browser.
Is there any way that I could restrict the second popup dialog when I clicked on 'Open'
All this thing is happening in IE 6.0. whereas in IE5.5 this is working perfectly fine.
I think I have to control some browser setting through the code.
Hope you could understand what I am trying to convey..
Thanks,
suresh.
Okay, but how can I control the File download dialog from the code.
I could able to save the file with the single click.
But when I select the 'Open' button, then
It is agiain popping up the same dialog box, and then
when I click on 'open' button then the file is opening on the browser.
Is there any way that I could restrict the second popup dialog when I clicked on 'Open'
All this thing is happening in IE 6.0. whereas in IE5.5 this is working perfectly fine.
I think I have to control some browser setting through the code.
Hope you could understand what I am trying to convey..
Thanks,
suresh.
What is the type of file you want to download?
any updates mv_suresh?
ASKER
CJ,
I didn't get any solution so far.. I think it could be a problem with IE 6.0.
Thanks,
I didn't get any solution so far.. I think it could be a problem with IE 6.0.
Thanks,
Conversely, I have the problem with IE 5.5 but NOT with IE 6.
My code is very similar...
<CFHEADER name="content-disposition" value="attachment;filename =#filename #">
<CFCONTENT file="#filepath#" type="text/csv" deletefile="no" reset="yes">
Strange!
My code is very similar...
<CFHEADER name="content-disposition"
<CFCONTENT file="#filepath#" type="text/csv" deletefile="no" reset="yes">
Strange!
No comment has been added lately, so it's time to clean up this question.
I will leave the following recommendation in the Cleanup topic area:
Split jimmy282 & cheekycj
Please leave any comments here within the next four days.
mrichmon
EE Cleanup Volunteer
I will leave the following recommendation in the Cleanup topic area:
Split jimmy282 & cheekycj
Please leave any comments here within the next four days.
mrichmon
EE Cleanup Volunteer
ASKER