Give it your best shot

Posted on 1999-01-20
Medium Priority
Last Modified: 2010-04-09
This one should be somewhat fun.   Im trying to link to http://www.adobe.com/homepage.shtml from within a frame in my website, but they have running a javascript which makes sure that the page loads into the entire window (not a new window, Im talking the target="_top" window).

If anyone can come up with a way to "beat" this, and enable me to keep www.adobe.com within one of my frames, Ill be very grateful.
Question by:chilcote
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
  • 3

Expert Comment

ID: 1845502
Oh no..darn frame..escape!! escape!!

Here is one way to do it.

If you can run cgi/server side script, you can load the page off screen (thru the cgi, strip the javacript part and reassemble the html page and then output it from the buffer to the client side.  EZ, eh?


Expert Comment

ID: 1845503
COULD U Please write the frameset lines u are using ?
( target = .......)


Author Comment

ID: 1845505

Do you have a script-example of somekind?


Its just your generic frameset.   The user will click on a link in the nav frame, and Id like Adobe's site to come up in the "main" frame.



  <frame SRC="2.html" NAME="nav" target="main" marginwidth="0" marginheight="0" scrolling="vertical" frameborder="0" noresize>
  <frame SRC="3.html" NAME="main" target="main" marginwidth="0" marginheight="0" scrolling="vertical" frameborder="0" noresize>


Video: Liquid Web Managed WordPress Comparisons

If you run run a WordPress, you understand the potential headaches you may face when updating your plugins and themes. Do you choose to update on the fly and risk taking down your site; or do you set up a staging, keep it in sync with your live site and use that to test updates?


Expert Comment

ID: 1845506
chilcote: nope, never really done it myself, but it's the same concept when you "steal" a feed from another site, say for a stock ticker update.

I might try it someday just to know if I can do it :) in my case, I'll be using VB Internet Transfer Protocol component, with this thing, I believe I can read another website into a string buffer, parse the buffer looking for specific part and just get what I want.  It's kinda like a filter system.  get your input and get the desired output.

I think this is the only way to do it (using server side help).  I can't think of any way to do it purely in client side scripting.

Hehe, frame escaper killer - chuckle


Author Comment

ID: 1845507
Okay, I suppose that helps.....but Id really like to get my hands on a code example or two...or at least find a site which does what Im looking for.    But yes, I agree...server side scripting seems to be the only way to do it.


Accepted Solution

PBall earned 1200 total points
ID: 1845509
Here is a sample code on how to use Internet Transfer Protocol from inside ASP:

Set Inet = Server.CreateObject("InetCtls.Inet.1")
    Inet.Url = "http://www.yahoo.com"

    //retrieve the web page into a string buffer.
    Content = Inet.OpenURL

    //you can parse the value of Content string here..
    //and take out the script parts.
    NewContent = filter(Content)

    //output the filtered content to the client
    Response.Write NewContent

Author Comment

ID: 1845510

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
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…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

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