• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 543
  • Last Modified:

set jquery identifier from popup window to parent window

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
rivkamak
Asked:
rivkamak
  • 3
  • 2
1 Solution
 
Albert Van HalenAnalyst developerCommented:
refer to jquery object in the parent window via
window.opener.$

Open in new window

0
 
Michel PlungjanIT ExpertCommented:
same origin?

$("#someDiv", window.opener.document).html("some html");
0
 
rivkamakAuthor Commented:
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
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.

 
Michel PlungjanIT ExpertCommented:
Does

window.opener.form1["cancelreason" + dsrow].style.visibility = "hidden";
?
0
 
rivkamakAuthor Commented:
visibility works.
how can I change the background-color?
does it make a difference that I am working off a select box?
0
 
Michel PlungjanIT ExpertCommented:
.style.backgroundColor

no that should not make a difference
0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now