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
Bryan Leaman 6Bryan Leaman 6 

sforce.one access from VF page inside an iframe in a custom lightning component

I need to access sforce.one in javascript inside a visualforce page that I'm including in a lightning component via iframe.

If I use the native "VisualForce" component then sforce.one is defined for me. But I'm short on vertical space and don't want to waste any on an extraneous title line and also I need to control the iframe height dynamically. So I created a simple component that includes the VF page in my own iframe, but sforce.one is NOT defined when I do it that way.

 
Arjun Singh 24Arjun Singh 24
Hi Bryan,
Did you find any solution for this.
Bryan Leaman 6Bryan Leaman 6
No. I rewrote one item as a lightning component, used native lightning VF container when I needed sforce.one and a custom lighting iframe for another where I didn't need sforce.one. I haven't checked back to see if it would work any other way since then.