• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

parent window form name

 
smitha rai
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Aprreciate if some one help me out with the javascript to get the parent form name into the child window.
Smitha
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the parent form name known?? Is it generated?

basic idea can be something like this if known:
var PForm = opener.document.FormName;
 
smitha rai
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
The parent window's form name is known. I want to retreive its name while I am in child window.
 
Randall Twede
Ranch Hand
Posts: 4467
3
Java Python Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
smitha,
I hate to say this but, your name does not comply with the Javaranch naming guidelines which can be found at http://www.javaranch.com/name.jsp
please register again with a valid name.
 
Garann Means
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Al Ian:

var PForm = opener.document.FormName;

I'm pretty sure this will give you the form object, not the name. My preference would be this:

Assuming you've only got the one form in the parent window.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic