This is a migrated thread and some comments may be shown as answers.

RadAjax controls removing iframe and refreshes the url

2 Answers 45 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Umesh
Top achievements
Rank 1
Umesh asked on 12 Oct 2018, 11:15 AM

Hi ,

I have an application(say - MyApp) which has an aspx page with RadAjaxManager and multiple rad controls in it.  I am trying to access this hosted  application in other html page on my desktop (say an html page with an iframe src = 'url of MyApp'). The problem i am facing here is when the page with the radcontols is loaded, the iframe of the html page disappears and even the url in the window refreshes/changes from "C:\\users\Abc\Desktop\Iframe.html" to the "Url of the MyApp" as if the application is run directly without the iframe. We are mostly using the 2014 version of RadControls

2 Answers, 1 is accepted

Sort by
0
Accepted
Marin Bratanov
Telerik team
answered on 14 Oct 2018, 08:12 PM
Hi Umesh,

This indicates that the page from MyApp has a form of a frame buster that causes this. Our controls do not have such behaviors built-in, so I would suggest looking at the application scripts and/or markup for such code. Calls like window.top.location.href = window.location.href are characterstic of basic frame busters, and things like <a href="#" target="_top"> can also be used to have their .click() method called so the browser puts the current page in the topmost frame.


Regards,
Marin Bratanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Umesh
Top achievements
Rank 1
answered on 15 Oct 2018, 01:47 PM
Thanks Marin, you were correct about the frame buster. There was a location.href which was being set and refreshing the whole page
Tags
Ajax
Asked by
Umesh
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Umesh
Top achievements
Rank 1
Share this question
or