?
Solved

Target _parent not working in form

Posted on 2003-10-24
3
Medium Priority
?
3,449 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 2000 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

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 …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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…
Suggested Courses

764 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