• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 210
  • Last Modified:

How To Redirect a URL in an Iframe?

I am using Dreamweaver to edit and update a dynamic table.
I have a webpage with a two column table.
Column A has the dynamic table with all the records.
Column B has an iframe that displays the webpage to be updated with a submit/update button.

Column A has a hyperlink that when clicked opens the record to be updated in the iframe in Column B
When I click the Submit/udate button in the iframe, the record gets updated and the requested redirect URL
opens in the iframe. I do not want it to open in the iframe. I want it to redirect it to the webpage that I am on
OR (refresh the page?) Is this possible to do?

I attached the code for the update page that appears in the iframe and high-lighted in yellow
where the redirect URL is supposed to go.

Any help will be greatly appreciated.

Thank you...
Rick
Redirect.doc
0
ES-Components
Asked:
ES-Components
  • 2
1 Solution
 
dpearsonCommented:
I think you can set the window.parent.location from within the iframe.  Something like this:

window.parent.location.href = newURL ;

This would be in JavaScript - not sure how you enter that within DreamWeaver, but I'm sure it's possible.

Doug
0
 
Michel PlungjanIT ExpertCommented:
Just add target="_top" or target="_parent" to the hyperlinks that need to open in the parent window
0
 
ES-ComponentsAuthor Commented:
I've requested that this question be deleted for the following reason:

This feature we were looking for is no longer needed.
0
 
ES-ComponentsAuthor Commented:
Thank you...
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now