Solved

Target _parent not working in form

Posted on 2003-10-24
3
3,432 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
3 Comments
 
LVL 33

Expert Comment

by:knightEknight
Comment Utility
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
Comment Utility
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
Comment Utility
what is happening? Please detail
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
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…

763 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now