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
Sdfc devSdfc dev 

Javascript Code appears while generating .xls file from Visualforce Page in mac

Hi,

 

Could anybody help me know, why am I receiving the Javascript Literal - if(!window.sfdcPage){window.sfdcPage = new ApexPage();} UserContext.initialize... on the first cell of the generated excel file only when viewed on Mac and not when viewed on Windows

 

I am not using any apex:pageBlock or apex:pageBlockTable.

 

I am using apex:repeat tag and apex:outputField? 

 

Could someone let me know how do i get rid of this error?

 

 

Thanks,

 

 

GunishGunish

Hello,

 

It seems like, the issue might be with the browser that you are using ? Are you using Safari or chrome ?

 

 

- Gunish Rai Chawla

Please mark my answer as a solution if it was helpful so it is available to others as a proper solution.
If you felt I went above and beyond, please give me Kudos by clicking on the star icon.

 

Satish_SFDCSatish_SFDC
Might be some script related settings in Safari. Is it possible to reset settings on your safari just like we do in IE.

Regards,
Satish Kumar