?
Solved

problem with button openning url into same window

Posted on 2005-03-29
2
Medium Priority
?
197 Views
Last Modified: 2010-04-25
I am actually a bit embarassed to ask this one as I know I have done this before, but I need to fix it quickly.  

I have a framed site.  I want to be able to click on a button and load the url into the same frame, but it isn't, it is opening into a new frame.  The mainFrame, is where the button exists and I simply need the file to load into the same frame.      

Here is what I have

      <input name="Submit" type="submit" onClick="MM_goToURL('parent','addperson.php');return document.MM_returnValue" value="test">


Could you please tell me where to specify the target as mainFrame, or a cleaner approach using a button to open the url into a particular frame.

Thank you.
0
Comment
Question by:debbieau1
[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
2 Comments
 
LVL 53

Accepted Solution

by:
Ryan Chong earned 1000 total points
ID: 13658691
for a quick guess, try:

<input name="Submit" type="submit" onClick="MM_goToURL('self','addperson.php');return document.MM_returnValue" value="test">

or:

<input name="Submit" type="submit" onClick="MM_goToURL('mainFrame','addperson.php');return document.MM_returnValue" value="test">

if it's not working, try post the function MM_goToURL here.

regards
0
 
LVL 1

Author Comment

by:debbieau1
ID: 13658712
Thanks
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

For those who don't know, Adobe Dreamweaver is a popular commercial web editor that enables you to design, build and manage complex websites. The editor is a WYSIWYG (What You See Is What You Get) web editor, which means that you can create your web…
I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses
Course of the Month11 days, 16 hours left to enroll

752 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