function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Cool_DevloperCool_Devloper 

Issue with viewing Attachment in VF screen in IE

Hello Friends,

 

I am facing a strange issue with opening attachments from a custom VF screen in IE.

 

It's working fine in Mozilla(Firefox) but giving me nightmares in IE :(

 

Code is pasted below:

 

<apex:outputLink onclick="window.open('https://cs2.salesforce.com/servlet/servlet.FileDownload?file={!act.CostAttachmentId}','Attachments');" rendered="{!IF(act.CostAttachmentId <> null,true,false)}"> View</apex:outputLink>

 

Its running fine in Mozilla(FireFox) but somehow, in IE the link of the main VF page gets broken when this new window is opened.

 

I have no clue as to why is this happening :(

 

Can anyone please help me out??

 

Thanks,

Cool_D

Vipin  PulinholyVipin Pulinholy

Hi ,

 

did you get a solution for this. I do have this same issue

 

Thanks.

Vipin  PulinholyVipin Pulinholy
Giving value="#" will solve this issue.