Solved

Target _parent not working in form

Posted on 2003-10-24
3
3,441 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
assigning javascript variable to php variable 8 68
Slush on text 2 25
Check for Numeric Phone Field 14 45
Global version website variable for clearing cache 10 29
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 …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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…

739 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