Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

set jquery identifier from popup window to parent window

Posted on 2013-06-26
6
Medium Priority
?
526 Views
Last Modified: 2013-06-28
I have a popup window from my page and after the user finishes what they did, the popup window closes.
is there anything I can script in javascript or jquery on the popup box to make something happen to a selector on the parent window?
0
Comment
Question by:rivkamak
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 19

Expert Comment

by:Albert Van Halen
ID: 39280601
refer to jquery object in the parent window via
window.opener.$

Open in new window

0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 39280603
same origin?

$("#someDiv", window.opener.document).html("some html");
0
 

Author Comment

by:rivkamak
ID: 39282132
Let's say I don't use jquery.

window.opener.form1["cancelreason" + dsrow].value="test";
window.opener.form1["status" + dsrow].style.visibility = "hidden";


the first line works,  the second one doesn't
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 39282408
Does

window.opener.form1["cancelreason" + dsrow].style.visibility = "hidden";
?
0
 

Author Comment

by:rivkamak
ID: 39285307
visibility works.
how can I change the background-color?
does it make a difference that I am working off a select box?
0
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 2000 total points
ID: 39285832
.style.backgroundColor

no that should not make a difference
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question