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

Calling a page's Javascript function from a RadWindow using Frames

1 Answer 85 Views
Window
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 20 Aug 2008, 02:10 AM
Hi

I am using Telerik controls 2008 Q2.

Our website is built with a frameset that has frames (menu, content page, etc).

The content page frame always holds our page.

Unfortunately when using...

    GetRadWindow().BrowserWindow.CalledFn();

It goes to the top frameset and there seems to be no way to access the content frame calling page (when trying to do so it always points to the RadWindow).

As a work-a-round I noticed that GetRadWindow().Top is never being used. So I am currently setting this to the content page, and now my RadWindow can call Javascript functions by:

    GetRadWindow().Top.CalledFn();


My question is, is this safe? I.e could Telerik one day remove/use this Top parameter in the future and therefore destroy my functionality?

If there is a preferred way please let me know.


Kind regards

Mark Eaton

1 Answer, 1 is accepted

Sort by
0
Accepted
Georgi Tunev
Telerik team
answered on 20 Aug 2008, 09:05 AM
Hi Mark,

Top will always point to the topmost page - the frameset in your case, so there will be no problems, even if you remove the GetRadWindow() function before that.
As for recommended approach, if you send me a small sample project that reproduces your exact setup along with detailed description of the desired behavior, I will check it and get back to you with the most appropriate suggestion for your scenario. Just open a new support ticket and attach the project there along with a reference to this forum thread - I will check it right away.


Greetings,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Window
Asked by
Mark
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or