Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

How to execute javascript function on popup from opener

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
http://radio.javaranch.com/pascarello/2005/01/18/1106063002000.html

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

Eric
reply
    Bookmark Topic Watch Topic
  • New Topic