Solved

Target _parent not working in form

Posted on 2003-10-24
3
3,447 Views
Last Modified: 2008-03-10
test.cfm:

<a href="searchTest1.cfm" target="_blank">search</a>

searchTest1.cfm:

<form action="records.cfm" method="post" target="_parent">
<input type="submit" value="Search">
</form>

Problem: The form should open up in test.cfm when you hit submit....but it doesn't.  Any help is appreciated.
0
Comment
Question by:jkellum
[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 Comments
 
LVL 33

Expert Comment

by:knightEknight
ID: 9615644
I'm not sure why that doesn't work, but you could try this:

<form action="records.cfm" method="post"
   onsubmit='if(opener.name="")opener.name="theParent";this.target=opener.name;return true;'>
0
 
LVL 25

Accepted Solution

by:
devic earned 500 total points
ID: 9615664
you can in the target window write:

<script>
window.name="somename"
</script>

and then in the form:

<form action="records.cfm" method="post" target="somename">
<input type="submit" value="Search">
</form>
0
 
LVL 12

Expert Comment

by:ahosang
ID: 9616119
what is happening? Please detail
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Avoid defining the variables in the global scope; trying to define them in a local function scope. Because:   • Look-up is performed every time a variable is accessed.   • Variables are resolved backwards from most specific to least specific scope…
This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
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…

726 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