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

Iframe applicatiion and bug in the URL

Hi Friends, I have integrated salesforce with do net application.So as part of the integration I am calling dot net application in Iframe. When I run application in an Iframe,it gives an error and give me broken link Basically in the browser I see two URL's,one is the salesforce URl and I have no idea from where that URL is coming whereas the other URL is the URl which I need." Can somebody throw some light on this.?Is this a known bug? Thanks, Trick

You may have written the src attribute of the iframe incorrectly. Can you post the source for the iframe (e.g. <apex:iframe src=...> or <iframe src=...>)?


Hi SfdcFox,

As per me there is nothing wrong with the Iframe.However,let me explain you the whole scenario.In salesforce, I have written Rest based services,through that service in the JSon Format ,I am sending portal users logged in information such as firstname ,lastname and token which has been hardcoded which was given to me by the application vendor to whose application we are integrating with.This token will inform them that request has come from salesforce.Now that application after receiving all the parameters gives me back response and that reponse is nothing but the secured URL(Https with the same parameters attached to the URL,This is all happening in the class,as of now page hasn't done anything.)Now ,on the page IFRAME gets executed with the returned URL with all the parameters attached to it.If i mention returned response directly in the Iframe such as given below then I get the error which I have mentioned before. If I pull out the returned URL from the returned respoinse and hard code URL in Iframe and pass the same parameters back dynamically to the hard coded URL then It works fine. I do not know the reason why I see two URL's in the browser.Could that be bug in salesforce One which doesn't works:-


One which doesn't works:-

<iframe src="{!callWebserviceNet}" height="700px" width="600%"/>


One which works:-

<iframe src="{!callWebserviceNet}" height="700px" width="600%"/>