Sharepoint - "Page not found page" not supporting IFrame, when we call the some borken link pages


i calling sharepoint pages html file using  iframe tag.

<!doctype html>

<html>

<body>

<iframe src="http://*******" width="400" height="400"></iframe>

 </br>

</body>

</html>

i have used the iframe tag in masters pages  <webpartpages:allowframing runat="server" />

to call pages html pages in iframe tag.

existing pages working fine.  supose if call 1 non existing file(in library) iframe . page not redirecting page not found page.  displaying error msg.

"this content cannot displayed in frame

to protect security of information enter website, publisher of content not allow displayed in frame. "

expected result page not found should display in iframe.

please give guidence.

thanks

deva

cheraideva2@yahoo.com

                                    

hi deva,

a suggestion that, can apply custom javascript in html file, work detecting content of iframe tag. once there non existing page loaded in iframe tag, redirect default error page(pagenotfounderror.aspx) provided sharepoint.

about how content of iframe tag using javascript:

https://manikandanmv.wordpress.com/2009/11/06/getting-iframe-content-in-javascript/

about default error page in sharepoint 2013:

http://www.learningsharepoint.com/2012/12/07/http-404-page-not-found-error-pages-in-sharepoint-2013/

how change url in iframe using javascript:

http://www.dyn-web.com/tutorials/iframes/load/

thanks 

technet community support
please remember mark replies answers if help, , unmark answers if provide no help. if have feedback technet support, contact tnmff@microsoft.com.



SharePoint  ,  Apps for Office and SharePoint  >  Developing Apps for SharePoint 2013



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'