Click here to Skip to main content
11,634,827 members (66,904 online)

JavaScript

 
AnswerRe: html5 and java script Pin
Richard MacCutchan23-Feb-13 2:16
mvpRichard MacCutchan23-Feb-13 2:16 
AnswerRe: html5 and java script Pin
twseitex8-Mar-13 9:12
membertwseitex8-Mar-13 9:12 
QuestionHigh Stock Pin
bahar_Agi20-Feb-13 8:33
memberbahar_Agi20-Feb-13 8:33 
AnswerRe: High Stock Pin
Sandeep Mewara20-Feb-13 16:56
mvpSandeep Mewara20-Feb-13 16:56 
Questioncopy one file from a folder to another folder with JS Pin
hasThisNameBeen19-Feb-13 22:38
memberhasThisNameBeen19-Feb-13 22:38 
AnswerRe: copy one file from a folder to another folder with JS Pin
Sandeep Mewara20-Feb-13 17:10
mvpSandeep Mewara20-Feb-13 17:10 
GeneralRe: copy one file from a folder to another folder with JS Pin
ryanb3121-Feb-13 1:51
memberryanb3121-Feb-13 1:51 
GeneralRe: copy one file from a folder to another folder with JS Pin
Sandeep Mewara21-Feb-13 2:15
mvpSandeep Mewara21-Feb-13 2:15 
GeneralRe: copy one file from a folder to another folder with JS Pin
dusty_dex27-Feb-13 14:14
memberdusty_dex27-Feb-13 14:14 
Questionjavascript Pin
NAVNEET KUMAR SINGH18-Feb-13 18:45
memberNAVNEET KUMAR SINGH18-Feb-13 18:45 
AnswerRe: javascript Pin
Rahul Rajat Singh18-Feb-13 23:52
mvpRahul Rajat Singh18-Feb-13 23:52 
AnswerRe: javascript Pin
ryanb3119-Feb-13 2:37
memberryanb3119-Feb-13 2:37 
QuestionJavaScript run slow with Ipad iOS 6 Pin
kornkimhour13-Feb-13 22:59
memberkornkimhour13-Feb-13 22:59 
QuestionJavaScript: How to reference user control inside content page? Pin
Tesic Goran12-Feb-13 20:36
memberTesic 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? Pin
Blikkies13-Feb-13 2:14
memberBlikkies13-Feb-13 2:14 
AnswerRe: JavaScript: How to reference user control inside content page? Pin
ryanb3114-Feb-13 3:33
memberryanb3114-Feb-13 3:33 
AnswerRe: JavaScript: How to reference user control inside content page? Pin
twseitex15-Feb-13 0:02
membertwseitex15-Feb-13 0:02 
Questiongetting rid of  &Nbsp's Pin
BrianCampbellMCAD11-Feb-13 3:52
memberBrianCampbellMCAD11-Feb-13 3:52 
AnswerRe: getting rid of  &Nbsp's Pin
BrianCampbellMCAD11-Feb-13 8:17
memberBrianCampbellMCAD11-Feb-13 8:17 
QuestionCreate Appointment in yahoo calendar using API Pin
srinivasan.p.t29-Jan-13 3:08
membersrinivasan.p.t29-Jan-13 3:08 
AnswerRe: Create Appointment in yahoo calendar using API Pin
ryanb314-Feb-13 8:52
memberryanb314-Feb-13 8:52 
QuestionJava Script is not working in Chrome Pin
Flex_Query29-Jan-13 2:17
memberFlex_Query29-Jan-13 2:17 
QuestionRe: Java Script is not working in Chrome Pin
ryanb314-Feb-13 8:52
memberryanb314-Feb-13 8:52 
AnswerRe: Java Script is not working in Chrome Pin
Brisingr Aerowing10-Mar-13 10:19
memberBrisingr Aerowing10-Mar-13 10:19 
QuestionPosting a message from diffrent domain Pin
AghaKhan28-Jan-13 22:01
memberAghaKhan28-Jan-13 22:01 
GeneralRe: Posting a message from diffrent domain Pin
Prasad Khandekar13-Mar-13 23:58
memberPrasad Khandekar13-Mar-13 23:58 
QuestionProject Help Please Pin
jmallen25-Jan-13 4:53
memberjmallen25-Jan-13 4:53 
AnswerRe: Project Help Please Pin
sarinya_chalat3-Feb-13 16:17
membersarinya_chalat3-Feb-13 16:17 
AnswerMessage Automatically Removed Pin
23-Jan-13 1:30
memberMember 822740423-Jan-13 1:30 
Questionproject question Pin
jacklyne16-Jan-13 20:04
memberjacklyne16-Jan-13 20:04 
AnswerRe: project question Pin
Richard MacCutchan16-Jan-13 23:45
mvpRichard MacCutchan16-Jan-13 23:45 
GeneralRe: project question Pin
AnalogNerd17-Jan-13 5:21
memberAnalogNerd17-Jan-13 5:21 
AnswerRe: project question Pin
J4amieC17-Jan-13 0:09
memberJ4amieC17-Jan-13 0:09 
QuestionAbout mobile web debugger Pin
tidelgl13-Jan-13 19:18
membertidelgl13-Jan-13 19:18 
QuestionRegular Expression Pin
AB777111-Jan-13 4:10
memberAB777111-Jan-13 4:10 
AnswerRe: Regular Expression Pin
vinodkumarnie18-Jan-13 21:44
membervinodkumarnie18-Jan-13 21:44 
AnswerRe: Regular Expression Pin
AspDotNetDev24-Jan-13 14:09
protectorAspDotNetDev24-Jan-13 14:09 
QuestionHow to put clipboard data into TextBox Pin
Ravindra Bisen10-Jan-13 0:02
memberRavindra Bisen10-Jan-13 0:02 
AnswerRe: How to put clipboard data into TextBox Pin
J4amieC10-Jan-13 2:39
memberJ4amieC10-Jan-13 2:39 
AnswerRe: How to put clipboard data into TextBox Pin
Ravindra Bisen14-Jan-13 21:50
memberRavindra Bisen14-Jan-13 21:50 
GeneralRe: How to put clipboard data into TextBox Pin
itzzmearun29-Jan-13 20:18
memberitzzmearun29-Jan-13 20:18 
GeneralRe: How to put clipboard data into TextBox Pin
DaveAuld31-Jan-13 2:56
mentorDaveAuld31-Jan-13 2:56 
QuestionjQuery: live() function Pin
Phanindra2619-Jan-13 0:27
memberPhanindra2619-Jan-13 0:27 
AnswerRe: jQuery: live() function Pin
J4amieC9-Jan-13 0:39
memberJ4amieC9-Jan-13 0:39 
QuestionGoogle+ login on my website Pin
marcbase8-Jan-13 11:16
membermarcbase8-Jan-13 11:16 
AnswerRe: Google+ login on my website Pin
Sandeep Mewara8-Jan-13 17:45
mvpSandeep Mewara8-Jan-13 17:45 
QuestionQuestion Pin
nth926-Jan-13 6:25
membernth926-Jan-13 6:25 
AnswerRe: Question Pin
Richard MacCutchan6-Jan-13 6:32
mvpRichard MacCutchan6-Jan-13 6:32 
AnswerRe: Question Pin
ProgramFOX6-Jan-13 7:13
member ProgramFOX6-Jan-13 7:13 
AnswerRe: Question Pin
J4amieC8-Jan-13 0:52
memberJ4amieC8-Jan-13 0:52 

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
Web03 | 2.8.150728.1 | Last Updated 29 Jul 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid