Answered by:
Creating an Iframe in CRM 2011

Question
-
I am trying to create an Iframe on the Contact form. As a test, I have been trying to have the Iframe look up to www.bing.com. However, all I get is "The Webpage Cannot be Found."
To create the Iframe:
1. On the form in the solution, I clicked IFrame in the Insert tab.
2. I gave the Iframe a generic name: Iframe_test
3. In the field URL, I entered: www.bing.com
4. I kept all the check boxes as is.
5. I also entered the following code to the Iframe event OnReadyStateComplete:
{
var AccountURL = crmForm.all.websiteurl.DataValue;
if (AccountURL != null)
{
crmForm.all.IFRAME_WebSite.src = AccountURL;
}
}Does anyone have any suggestions?
Thursday, January 26, 2012 5:28 PM
Answers
-
In the field URL, try enter: http://www.bing.com (missed http:// in your example).
This should work
Ray Zhao- Proposed as answer by JayshriP Friday, January 27, 2012 8:46 AM
- Marked as answer by CRMQuestion Monday, January 30, 2012 9:42 PM
Thursday, January 26, 2012 11:37 PM
All replies
-
In the field URL, try enter: http://www.bing.com (missed http:// in your example).
This should work
Ray Zhao- Proposed as answer by JayshriP Friday, January 27, 2012 8:46 AM
- Marked as answer by CRMQuestion Monday, January 30, 2012 9:42 PM
Thursday, January 26, 2012 11:37 PM -
Thanks! That did work.
I just have one more question:
- When I open up the form with the Iframe, a popup always appears that says - "Only secure content is displayed."
- I have to then click Show Content for the Iframe to appear.
How do I fix this?
Monday, January 30, 2012 9:42 PM -
Try adding that site to the trusted sites in Internet Explorer and see if that helps.
The reason you get the warning is because you are mixing 2 different sites on the same page in CRM. It's letting the user know that he is accessing a site outside CRM.
Jason Peterson- Proposed as answer by Farhan Syed Tuesday, December 25, 2012 11:51 AM
Tuesday, January 31, 2012 4:15 PM