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

Set Parent Window Variable from Radwindow

2 Answers 126 Views
Window
This is a migrated thread and some comments may be shown as answers.
Avinash
Top achievements
Rank 1
Avinash asked on 15 May 2009, 07:18 AM
Hi ,

I am using a radscheduler and the appointment form is opened in a radwindow. Now i want to set a hidden variable in parent window(radscheduler page) from the client javascript function of the radwindow page. I tried GetRadWindow().BrowserWindow.getElementByID("hiddenValue1") but it didnt work.

Can any one help me with this?

Thanks in advance.



cheers,
avinash koyyana

2 Answers, 1 is accepted

Sort by
0
Accepted
Svetlina Anati
Telerik team
answered on 18 May 2009, 09:12 AM
Hi Avinash,

By using the  GetRadWindow().BrowserWindow syntax you reference the window object on the main page and the getElementById method is a method of the document object. This being said, I suggest  to try the following syntax and test again:

GetRadWindow().BrowserWindow.document.getElementByID("hiddenValue1")


Best wishes,
Svetlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Avinash
Top achievements
Rank 1
answered on 19 May 2009, 05:17 AM
Thank u very much. I spent long time browsing for this. Thanks svetlina


Cheers,
Avinash
Tags
Window
Asked by
Avinash
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Avinash
Top achievements
Rank 1
Share this question
or