Click here to Skip to main content
       

JavaScript

 
GeneralRe: copy one file from a folder to another folder with JS Pinmemberryanb3121-Feb-13 1:51 
GeneralRe: copy one file from a folder to another folder with JS PinmvpSandeep Mewara21-Feb-13 2:15 
GeneralRe: copy one file from a folder to another folder with JS Pinmemberdusty_dex27-Feb-13 14:14 
Questionjavascript PinmemberNAVNEET KUMAR SINGH18-Feb-13 18:45 
AnswerRe: javascript PinmvpRahul Rajat Singh18-Feb-13 23:52 
AnswerRe: javascript Pinmemberryanb3119-Feb-13 2:37 
QuestionJavaScript run slow with Ipad iOS 6 Pinmemberkornkimhour13-Feb-13 22:59 
QuestionJavaScript: How to reference user control inside content page? PinmemberTesic Goran12-Feb-13 20:36 
Hi,
 
I use ASP.NET.
 
This is structure I have:
 
Master page -> Content page -> User control -> Telerik grid with its context menu, hidden field.
 
This means: Master page contains content page, content page contains user control, user control contains Telerik grid with its context menu and hidden field.
 
I open popup window by clicking option in Telerik grid's context menu. After I choose some option in combo box in that popup window I press OK and close it. But I don't know how to reference opener that should be user control with Telerik grid and hidden field. I want to set hidden field to some value.
 
This is JavaScript code I use:
 
<script language="javascript" type="text/javascript">
    function ReturnValue() {
        var choice = document.getElementById("DropDownList1").value;
        if ((window.opener != null) && (!window.opener.closed)) {
            window.opener.document.getElementById("HiddenField1").value = choice;
        }
        window.close();
    }
</script>
 
But, it fails on this line because opener is master page:
 
window.opener.document.getElementById("HiddenField1").value = choice;
 
So, how can I make it work?
 
Thank you in advance.
SuggestionRe: JavaScript: How to reference user control inside content page? PinmemberBlikkies13-Feb-13 2:14 
AnswerRe: JavaScript: How to reference user control inside content page? Pinmemberryanb3114-Feb-13 3:33 
AnswerRe: JavaScript: How to reference user control inside content page? Pinmembertwseitex15-Feb-13 0:02 
Questiongetting rid of  &Nbsp's [modified] PinmemberBrianCampbellMCAD11-Feb-13 3:52 
AnswerRe: getting rid of  &Nbsp's PinmemberBrianCampbellMCAD11-Feb-13 8:17 
QuestionCreate Appointment in yahoo calendar using API Pinmembersrinivasan.p.t29-Jan-13 3:08 
AnswerRe: Create Appointment in yahoo calendar using API Pinmemberryanb314-Feb-13 8:52 
QuestionJava Script is not working in Chrome PinmemberFlex_Query29-Jan-13 2:17 
QuestionRe: Java Script is not working in Chrome Pinmemberryanb314-Feb-13 8:52 
AnswerRe: Java Script is not working in Chrome PinmemberBrisingr Aerowing10-Mar-13 10:19 
QuestionPosting a message from diffrent domain PinmemberAghaKhan28-Jan-13 22:01 
GeneralRe: Posting a message from diffrent domain PinmemberPrasad Khandekar13-Mar-13 23:58 
QuestionProject Help Please Pinmemberjmallen25-Jan-13 4:53 
AnswerRe: Project Help Please Pinmembersarinya_chalat3-Feb-13 16:17 
AnswerMessage Automatically Removed PinmemberMember 822740423-Jan-13 1:30 
Questionproject question Pinmemberjacklyne16-Jan-13 20:04 
AnswerRe: project question PinmvpRichard MacCutchan16-Jan-13 23:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.141022.2 | Last Updated 22 Oct 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid