Set Parent Window Variable from Radwindow

3 posts, 1 answers
  1. Avinash
    Avinash avatar
    6 posts
    Member since:
    Mar 2009

    Posted 15 May 2009 Link to this post

    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. Answer
    Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 18 May 2009 Link to this post

    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.
  3. Avinash
    Avinash avatar
    6 posts
    Member since:
    Mar 2009

    Posted 19 May 2009 Link to this post

    Thank u very much. I spent long time browsing for this. Thanks svetlina


    Cheers,
    Avinash
Back to Top