aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes How to execute javascript function on popup from opener Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How to execute javascript function on popup from opener" Watch "How to execute javascript function on popup from opener" New topic
Author

How to execute javascript function on popup from opener

Homer Hill
Greenhorn

Joined: May 25, 2005
Posts: 3
Hi there,

I'm a javascript newbie so be gentle.

I basically need to open a popup window and then execute a javascript function on the popup. The popup can not have a call to the javascript function -- the function must be executed ON the popup FROM the opener.

Here is an example of what I want to do.

On the opener window, if a user clicks a button, a window pops up. This popup could be a registration form for a forum. Once the popup has fully loaded, I need to execute a javascript function that will fill in some fields of the form (such as the e-mail address of the user if it is already known).

This is fairly simple if I put the function call in the BODY tag of the popup, but I'd like to avoid doing this.

Thanks for any help! Please let me know if any clarification is required.
Homer
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
http://radio.javaranch.com/pascarello/2005/01/18/1106063002000.html

BUT you are not going to be able to do this across domains.

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to execute javascript function on popup from opener
 
Similar Threads
Referesh main window when you close a pop up window
Popups, actions and javascript OH MY!
reload openr window after calling servlet
pass parameter from jsp to jsp
reload opner window javascript