I am new to ionic/angularjs , I am developing an application in which I am integrating with a salesforce backend. I am launching a visualforce page (external link) , but I want to show the sidemenu of the application when I launch external link . Please suggest me how can I achieve this .
How do you want to show it - permanently on the same screen? Or do you want the Salesforce page in a âcontainerâ that is set under a header from which you can open the sidemenu?
I want the salesforce page in a container that is set under a header through which I can open sidemenu , If you share some example that would be really helpful.
I donât have any examples, but one option could be to just include an iFrame in the content area of the page that loads a URL that is changed depending on which page/state the user is on. But this depends heavily on how good Salesforce is in rendering a mobile pageâŚ
I tried using iFrame , but it seems salesforce page cannot be loaded using iFrame I am getting the below error
Refused to display ââ in a frame because it set âX-Frame-Optionsâ to âDENYâ.
Yep, then they donât like that and try to disable it. X-Frame-Options can be a b**ch.
See if you can change this option in Salesforce (ask their support) or build a little ârequest proxyâ on your server (using node or PHP) that requests the Salesforce content, strips these headers/options and just outputs it back (Be aware that this can get complicated fast, with images and other JS code being loaded where they could have other checks).
I ll try that , referring to your first comment âpermanently on the same screen?â how could I do this ?
[quote=âpradeepnr, post:7, topic:37827â]
âpermanently on the same screen?â how could I do this ?
[/quote]This would be no usecase of Ionic, but Cordova directly - and then modify it so it doesnât load it index.html but the external file (by changing the native code parts of Cordova).