Solved

Need help overriding / bypassing a "base target" within an iframe

Posted on 2008-10-30
3
747 Views
Last Modified: 2012-06-22
On our companies website I am integrating a web portal from one of our software providers that links our customers to data housed within a non web based server. I have this portal loading into an iframe. Everything works fine until someone does not log in correctly. The response page to a failed login contains a "base target='_top'" reference. This page is being served by a 3rd party server and we have no control or option of modifying this tag or removing it. My problem is once this page is encountered and someone logs in through it, this tag loads all the following pages out of the iframe and the integration is lost. Is there any way through the iframe or through some sort of script to tell the iframe or the webpage as a whole to ignore that base command. Any suggestions or ideas are greatly appreciated.

Andrew
0
Comment
Question by:asb987
  • 2
3 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 22844221
can you please post the corresponding tag verbatime with all it's attributes
0
 

Author Comment

by:asb987
ID: 22844407
This is the <iframe> that is originally called:

<iframe name="accountsframe" target="_self" width="892" height="500" align="top" scrolling="auto" src="acctlogin.asp" style="border:0; background-color:#FFFFFF"></iframe>

This is the base tag that is causing the problems:
<base target="_top">

I cannot modify or change the page that contains that base tag as its not being served from our servers.
0
 
LVL 51

Accepted Solution

by:
ahoffmann earned 500 total points
ID: 22844455
if the iframe is on top of base it should not be a problem
otherwise you trapped in a ugly bug all browser have, IIRC
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

758 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

19 Experts available now in Live!

Get 1:1 Help Now